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 theGanttChart
tree table view.
-
-
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
All Methods Instance Methods Concrete Methods 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
-
-
-
-
Constructor Detail
-
GanttChartTreeItem
public GanttChartTreeItem(R row, Node graphic)
Constructs a new tree item.- Parameters:
row
- the wrapped rowgraphic
- a graphic node (e.g. an icon)
-
GanttChartTreeItem
public GanttChartTreeItem(R row)
Constructs a new tree item.- Parameters:
row
- the wrapped row
-
GanttChartTreeItem
public GanttChartTreeItem()
Constructs a new tree item.
-
-
Method Detail
-
filterProperty
public final ObjectProperty<Predicate> filterProperty()
A predicate used to filter the children of this tree item.- Returns:
- the filter predicate
-
getRow
public final R getRow()
Returns the row shown by this tree item.- Returns:
- the row
-
getLevelNumber
public String getLevelNumber()
Returns the level number string for the tree item, e.g. "2.1.7").- Returns:
- the level number
-
-