本文整理了Java中javafx.beans.property.Property.bindBidirectional()
方法的一些代码示例,展示了Property.bindBidirectional()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Property.bindBidirectional()
方法的具体详情如下:
包路径:javafx.beans.property.Property
类名称:Property
方法名:bindBidirectional
暂无
代码示例来源:origin: speedment/speedment
@Override
protected Node createUndecoratedEditor() {
final ChoiceBox<T> box = new ChoiceBox<>(alternatives);
final T val = currentValue.getValue();
if (alternatives.contains(val)) {
box.setValue(val);
} else {
box.setValue(alternatives.get(0));
}
currentValue.bindBidirectional(box.valueProperty());
return box;
}
}
代码示例来源:origin: com.speedment.tool/tool-config
@Override
public void bindBidirectional(Property<Number> other) {
wrapped.bindBidirectional(other);
}
代码示例来源:origin: org.codehaus.griffon/griffon-javafx
@Override
public void bindBidirectional(Property<T> other) {
delegate.bindBidirectional(other);
}
代码示例来源:origin: com.dlsc.formsfx/formsfx-core
/**
* Binds the given property with the field.
*
* @param binding
* The property to be bound with.
*
* @return Returns the current field to allow for chaining.
*/
public F bind(P binding) {
persistentValue.bindBidirectional(binding);
binding.addListener(externalBindingListener);
return (F) this;
}
代码示例来源:origin: com.speedment.tool/tool-propertyeditor
@Override
protected Node createUndecoratedEditor() {
final ChoiceBox<T> box = new ChoiceBox<>(alternatives);
final T val = currentValue.getValue();
if (alternatives.contains(val)) {
box.setValue(val);
} else {
box.setValue(alternatives.get(0));
}
currentValue.bindBidirectional(box.valueProperty());
return box;
}
}
内容来源于网络,如有侵权,请联系作者删除!