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);
}
}
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;
}
Aggregations