T - the pdo typepublic class PdoTreeItem<T extends PersistentDomainObject<T>>
extends javafx.scene.control.TreeItem<T>
| Constructor and Description |
|---|
PdoTreeItem(T pdo)
Creates a tree item for a PDO.
|
| Modifier and Type | Method and Description |
|---|---|
void |
collapse()
Collapses this and all child tree items.
|
protected void |
collapse(Set<T> pdoSet)
Recursively collapses given item and all child items.
|
void |
expand()
Expands this and all child tree items.
|
protected void |
expand(Set<T> pdoSet)
Recursively expands given item and all child items.
|
javafx.collections.ObservableList<javafx.scene.control.TreeItem<T>> |
getChildren() |
GuiProvider<T> |
getGuiProvider()
Lazily gets the GUI provider for the PDO.
|
<P extends PersistentDomainObject<P>> |
getParentPdo(Class<P> parentPdoClass)
Gets the parent item's pdo.
|
<P extends PersistentDomainObject<P>> |
getParentPdoItem()
Gets the parent PdoTreeItem.
|
T |
getPdo()
Returns the PDO represented by this item.
|
boolean |
isLeaf() |
void |
setPdo(T pdo)
Sets the pdo.
Can be used to reload the pdo, for example. |
addEventHandler, branchCollapsedEvent, branchExpandedEvent, buildEventDispatchChain, childrenModificationEvent, expandedItemCountChangeEvent, expandedProperty, getGraphic, getParent, getValue, graphicChangedEvent, graphicProperty, isExpanded, leafProperty, nextSibling, nextSibling, parentProperty, previousSibling, previousSibling, removeEventHandler, setExpanded, setGraphic, setValue, toString, treeNotificationEvent, valueChangedEvent, valuePropertypublic PdoTreeItem(T pdo)
pdo - the pdopublic T getPdo()
public void setPdo(T pdo)
pdo - the pdopublic boolean isLeaf()
isLeaf in class javafx.scene.control.TreeItem<T extends PersistentDomainObject<T>>public javafx.collections.ObservableList<javafx.scene.control.TreeItem<T>> getChildren()
getChildren in class javafx.scene.control.TreeItem<T extends PersistentDomainObject<T>>public <P extends PersistentDomainObject<P>> PdoTreeItem<P> getParentPdoItem()
P - the parent PDO typepublic <P extends PersistentDomainObject<P>> P getParentPdo(Class<P> parentPdoClass)
P - the parent PDO typeparentPdoClass - the entity class of the parent PDOparentPdoClasspublic GuiProvider<T> getGuiProvider()
public void expand()
public void collapse()
protected void expand(Set<T> pdoSet)
pdoSet - holds already expanded PDOs to detect recursion loopsTentackle - distributed, domain- and model-driven