- Type Parameters:
N- the node type
- All Known Implementing Classes:
AbstractTreePresentationModel,SimpleTreePresentationModel
public interface TreePresentationModel<N>
The
TreePresentationModel can be used to present a TreeModel
in a TreeView or a TreeTableView.
Maps TreeModel to a TreeItem<E> hierarchy.
Note: for performance reasons we do not expand the tree nodes by default.
- Author:
- Werner Randelshofer
-
Property Summary
Properties -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.control.TreeItem<N> getRoot()@Nullable javafx.scene.control.TreeItem<N> getTreeItem(N value) Returns the tree item associated to the specified node.Gets the value of thetreeModelproperty.booleandefault voidsetTreeModel(TreeModel<N> newValue) Sets the value of thetreeModelproperty.
-
Property Details
-
treeModel
NonNullObjectProperty<TreeModel<N>> treeModelProperty- See Also:
-
-
Field Details
-
MODEL_PROPERTY
The name of the model property.- See Also:
-
-
Method Details
-
getTreeModel
Gets the value of thetreeModelproperty.- Property description:
- Returns:
- the value of the
treeModelproperty - See Also:
-
setTreeModel
Sets the value of thetreeModelproperty.- Property description:
- Parameters:
newValue- the value for thetreeModelproperty- See Also:
-
treeModelProperty
NonNullObjectProperty<TreeModel<N>> treeModelProperty()- Returns:
- the
treeModelproperty - See Also:
-
getRoot
javafx.scene.control.TreeItem<N> getRoot() -
isUpdating
boolean isUpdating() -
getTreeItem
Returns the tree item associated to the specified node.- Parameters:
value- the node value- Returns:
- a TreeItem. Returns null if no tree item has been associated to the node because the tree is not expanded yet.
-