javafx.beans.property.Property.bindBidirectional()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(92)

本文整理了Java中javafx.beans.property.Property.bindBidirectional()方法的一些代码示例,展示了Property.bindBidirectional()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Property.bindBidirectional()方法的具体详情如下:
包路径:javafx.beans.property.Property
类名称:Property
方法名:bindBidirectional

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

相关文章