Search in sources :

Example 1 with ObservableBooleanValue

use of javafx.beans.value.ObservableBooleanValue in project NMEAParser by tvesalainen.

the class FXPropertySetter method setDisable.

/**
 * this is run in platform thread
 * @param property
 */
protected void setDisable(String property, boolean disabled) {
    ObservableBooleanValue obv = disabledMap.get(property);
    if (obv instanceof SimpleBooleanProperty) {
        SimpleBooleanProperty sbp = (SimpleBooleanProperty) obv;
        sbp.set(disabled);
    }
}
Also used : SimpleBooleanProperty(javafx.beans.property.SimpleBooleanProperty) ObservableBooleanValue(javafx.beans.value.ObservableBooleanValue)

Example 2 with ObservableBooleanValue

use of javafx.beans.value.ObservableBooleanValue in project NMEAParser by tvesalainen.

the class FXPropertySetter method getDisableBind.

public ObservableBooleanValue getDisableBind(String... properties) {
    ObservableBooleanValue sbp = disabledMap.get(properties[0]);
    for (int ii = 1; ii < properties.length; ii++) {
        ObservableBooleanValue sbpx = disabledMap.get(properties[ii]);
        sbp = Bindings.or(sbp, sbpx);
    }
    return sbp;
}
Also used : ObservableBooleanValue(javafx.beans.value.ObservableBooleanValue)

Aggregations

ObservableBooleanValue (javafx.beans.value.ObservableBooleanValue)2 SimpleBooleanProperty (javafx.beans.property.SimpleBooleanProperty)1