T - the pdo typepublic class PdoTreeItem<T extends org.tentackle.pdo.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 org.tentackle.pdo.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()
public javafx.collections.ObservableList<javafx.scene.control.TreeItem<T>> getChildren()
public <P extends org.tentackle.pdo.PersistentDomainObject<P>> PdoTreeItem<P> getParentPdoItem()
P - the parent PDO typepublic GuiProvider<T> getGuiProvider()
public void expand()
public void collapse()
protected void expand(Set<T> pdoSet)
pdoSet - holds already expanded PDOs to detect recursion loopsCopyright © 2016 Krake Softwaretechnik. All rights reserved.