@Override public boolean isBound() { return wrapped.isBound(); }
@Override public boolean isBound() { return delegate.isBound(); }
@Override public boolean isSettable(S styleable) { final Property<T> property = getProperty.apply(styleable); return property != null && !property.isBound(); }
@Override public boolean isSettable(S styleable) { Property<V> property = getProperty(styleable); return property == null || !property.isBound(); }
@Override public boolean isBound() { return boundTo != null || (getTargetObservable() != null && getTargetObservable().isBound()); }
@Override public boolean isSettable(S n) { Control c = (Control)n; SK s = (SK)c.getSkin(); return !getProperty(s).isBound(); } @Override public StyleableProperty<V> getStyleableProperty(S n) {
if (property.isBound()) { throw new SpeedmentConfigException( "Attempting to set bound " +
/** * Set the value of a JavaFX property in the current thread and then in the JavaFX thread. * Actually, if a visible node of the JavaFX scene graph is bound to the property, it * will be only possible to update its value in the JavaFX thread. * <p/> * If the property is bound, this method does nothing. */ private static void updateProperty(final Object value, final Property finalProperty) { if (finalProperty.isBound()) { System.out.println("Impossible to set the value " + value + " to " + finalProperty.getName() + ". Property is bound."); return; } try { finalProperty.setValue(value); } catch (RuntimeException e) { Platform.runLater(new Runnable() { @Override public void run() { finalProperty.setValue(value); } }); } }