Module com.flexganttfx.view
Class GanttChartTreeItem<R extends Row<?,?,?>>
java.lang.Object
javafx.scene.control.TreeItem<R>
impl.com.flexganttfx.skin.treetable.GanttChartTreeItem<R>
- Type Parameters:
R
- the type of the rows shown by the tree table view
- All Implemented Interfaces:
EventTarget
public final class GanttChartTreeItem<R extends Row<?,?,?>> extends TreeItem<R>
A specialization of tree item for use with the
GanttChart
tree table
view.-
Property Summary
Properties Type Property Description ObjectProperty<Predicate>
filter
A predicate used to filter the children of this tree item. -
Nested Class Summary
Nested classes/interfaces inherited from class javafx.scene.control.TreeItem
TreeItem.TreeModificationEvent<T extends Object>
-
Constructor Summary
Constructors Constructor Description GanttChartTreeItem()
Constructs a new tree item.GanttChartTreeItem(R row)
Constructs a new tree item.GanttChartTreeItem(R row, Node graphic)
Constructs a new tree item. -
Method Summary
Modifier and Type Method Description ObjectProperty<Predicate>
filterProperty()
A predicate used to filter the children of this tree item.String
getLevelNumber()
Returns the level number string for the tree item, e.g.R
getRow()
Returns the row shown by this tree item.boolean
isLeaf()
Methods inherited from class javafx.scene.control.TreeItem
addEventHandler, branchCollapsedEvent, branchExpandedEvent, buildEventDispatchChain, childrenModificationEvent, expandedItemCountChangeEvent, expandedProperty, getChildren, getGraphic, getParent, getValue, graphicChangedEvent, graphicProperty, isExpanded, leafProperty, nextSibling, nextSibling, parentProperty, previousSibling, previousSibling, removeEventHandler, setExpanded, setGraphic, setValue, toString, treeNotificationEvent, valueChangedEvent, valueProperty
-
Property Details
-
filter
A predicate used to filter the children of this tree item.
-
-
Constructor Details
-
GanttChartTreeItem
Constructs a new tree item.- Parameters:
row
- the wrapped rowgraphic
- a graphic node (e.g. an icon)
-
GanttChartTreeItem
Constructs a new tree item.- Parameters:
row
- the wrapped row
-
GanttChartTreeItem
public GanttChartTreeItem()Constructs a new tree item.
-
-
Method Details
-
filterProperty
A predicate used to filter the children of this tree item. -
isLeaf
public boolean isLeaf() -
getRow
Returns the row shown by this tree item.- Returns:
- the row
-
getLevelNumber
Returns the level number string for the tree item, e.g. "2.1.7").- Returns:
- the level number
-