本文整理了Java中javafx.beans.property.Property.isBound()
方法的一些代码示例,展示了Property.isBound()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Property.isBound()
方法的具体详情如下:
包路径:javafx.beans.property.Property
类名称:Property
方法名:isBound
暂无
代码示例来源:origin: com.speedment.tool/tool-config
@Override
public boolean isBound() {
return wrapped.isBound();
}
代码示例来源:origin: org.codehaus.griffon/griffon-javafx
@Override
public boolean isBound() {
return delegate.isBound();
}
代码示例来源:origin: org.controlsfx/controlsfx
@Override
public boolean isSettable(S styleable) {
final Property<T> property = getProperty.apply(styleable);
return property != null && !property.isBound();
}
代码示例来源:origin: com.guigarage/css-helper
@Override
public boolean isSettable(S styleable) {
Property<V> property = getProperty(styleable);
return property == null || !property.isBound();
}
代码示例来源:origin: org.fxmisc.easybind/easybind
@Override
public boolean isBound() {
return boundTo != null ||
(getTargetObservable() != null && getTargetObservable().isBound());
}
代码示例来源:origin: org.jfxtras/jfxtras-common
@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) {
代码示例来源:origin: com.speedment.tool/tool-config
if (property.isBound()) {
throw new SpeedmentConfigException(
"Attempting to set bound " +
代码示例来源:origin: org.jcrom/jcrom
/**
* 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);
}
});
}
}
内容来源于网络,如有侵权,请联系作者删除!