Java 类javafx.scene.control.FocusModel 实例源码

项目:epubfx    文件:EditingTreeCellBehavior.java   
@Override
protected FocusModel<TreeItem<T>> getFocusModel() {
    return getCellContainer().getFocusModel();
}
项目:jutility-javafx    文件:ListViewWrapper.java   
/**
 * The FocusModel provides the API through which it is possible to both get
 * and set the focus on a single item within a ListView. Note that it has a
 * generic type that must match the type of the ListView itself.
 * 
 * @return the focus model property.
 */
public final ObjectProperty<FocusModel<T>> focusModelProperty() {

    return this.getWrappedControl().focusModelProperty();
}
项目:jutility-javafx    文件:ListViewWrapper.java   
/**
 * Sets the FocusModel to be used in the ListView.
 * 
 * @param value
 *            the focus model.
 */
public final void setFocusModel(FocusModel<T> value) {

    this.getWrappedControl().setFocusModel(value);
}
项目:jutility-javafx    文件:ListViewWrapper.java   
/**
 * Returns the currently installed FocusModel.
 * 
 * @return the focus model.
 */
public final FocusModel<T> getFocusModel() {

    return this.getWrappedControl().getFocusModel();
}