TreeTableRow is an IndexedCell, but
rarely needs to be used by developers creating TreeTableView instances. The only
time TreeTableRow is likely to be encountered at all by a developer is if they
wish to create a custom rowFactory
that replaces an entire row of a TreeTableView.
More often than not, it is actually easier for a developer to customize
individual cells in a row, rather than the whole row itself. To do this,
you can specify a custom cellFactory
on each TreeTableColumn instance.
TreeTableView, TreeTableColumn, TreeTableCell, IndexedCell, Cell
| Modifier and Type | Field and Description |
|---|---|
| private static final PseudoClass | |
| private static final String | |
| private ObjectProperty | |
| private final InvalidationListener | |
| private static final PseudoClass | |
| private final InvalidationListener | |
| private boolean | |
| private final InvalidationListener | |
| private boolean | |
| private final ListChangeListener | |
| private ReadOnlyObjectWrapper | |
| private final InvalidationListener | |
| private ReadOnlyObjectWrapper | |
| private final WeakInvalidationListener | |
| private final WeakInvalidationListener | |
| private final WeakInvalidationListener | |
| private final WeakListChangeListener | |
| private final WeakInvalidationListener |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | cancelEdit()
Overrides javafx. Cancels an edit to the value of the cell. |
| public void | commitEdit(T newValue)
Overrides javafx. Commits an edit to the value of the cell. |
| protected Skin | createDefaultSkin()
Overrides javafx. Create a new instance of the default skin for this control. |
| public final ObjectProperty | Returns: the disclosure node propertyThe disclosure node is commonly seen represented as a triangle that rotates on screen to indicate whether or not the TreeItem that it is placed beside is expanded or collapsed. |
| public void | executeAccessibleAction(AccessibleAction action, Object... parameters)
Overrides javafx. This method is called by the assistive technology to request the action indicated by the argument should be executed. |
| public final Node | Returns: the disclosure nodeReturns the current disclosure node set in this TreeTableCell. |
| public final TreeItem | Returns: the TreeItem currently set in this TreeTableRowReturns the TreeItem currently set in this TreeTableRow. |
| public final TreeTableView | Returns: the tree table viewReturns the TreeTableView associated with this TreeTableCell. |
| pack-priv void | indexChanged(int oldIndex, int newIndex)
Overrides javafx. This method is called whenever the index is changed, regardless of whether the new index is the same as the old index. |
| public Object | queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters)
Overrides javafx. This method is called by the assistive technology to request the value for an attribute. |
| public final void | setDisclosureNode(Node
the disclosure node value)The node to use as the "disclosure" triangle, or toggle, used for expanding and collapsing items. |
| private void | |
| private void | |
| public void | |
| public final ReadOnlyObjectProperty | Returns: the tree item propertyEach TreeTableCell represents at most a single |
| public final ReadOnlyObjectProperty | Returns: the tree table view propertyA TreeTableCell is explicitly linked to a single |
| private void | |
| private void | |
| private void | |
| private void | |
| public final void | updateTreeItem(TreeItem<T>
The new TreeItem that should be associated with this
TreeTableCell.
treeItem)Note This function is intended to be used by experts, primarily by those implementing new Skins. It is not common for developers or designers to access this function directly. Updates the TreeItem associated with this TreeTableCell. |
| public final void | updateTreeTableView(TreeTableView<T>
The new TreeTableView that should be associated with this
TreeTableCell.
treeTable)Note This function is intended to be used by experts, primarily by those implementing new Skins. It is not common for developers or designers to access this function directly. Updates the TreeTableView associated with this TreeTableCell. |
| COLLAPSED_PSEUDOCLASS_STATE | back to summary |
|---|---|
| private static final PseudoClass COLLAPSED_PSEUDOCLASS_STATE | |
| DEFAULT_STYLE_CLASS | back to summary |
|---|---|
| private static final String DEFAULT_STYLE_CLASS | |
| disclosureNode | back to summary |
|---|---|
| private ObjectProperty<Node> disclosureNode | |
| editingListener | back to summary |
|---|---|
| private final InvalidationListener editingListener | |
| EXPANDED_PSEUDOCLASS_STATE | back to summary |
|---|---|
| private static final PseudoClass EXPANDED_PSEUDOCLASS_STATE | |
| focusedListener | back to summary |
|---|---|
| private final InvalidationListener focusedListener | |
| isFirstRun | back to summary |
|---|---|
| private boolean isFirstRun | |
| leafListener | back to summary |
|---|---|
| private final InvalidationListener leafListener | |
| oldExpanded | back to summary |
|---|---|
| private boolean oldExpanded | |
| selectedListener | back to summary |
|---|---|
| private final ListChangeListener<Integer> selectedListener | |
| treeItem | back to summary |
|---|---|
| private ReadOnlyObjectWrapper<TreeItem<T>> treeItem | |
| treeItemExpandedInvalidationListener | back to summary |
|---|---|
| private final InvalidationListener treeItemExpandedInvalidationListener | |
| treeTableView | back to summary |
|---|---|
| private ReadOnlyObjectWrapper<TreeTableView<T>> treeTableView | |
| weakEditingListener | back to summary |
|---|---|
| private final WeakInvalidationListener weakEditingListener | |
| weakFocusedListener | back to summary |
|---|---|
| private final WeakInvalidationListener weakFocusedListener | |
| weakLeafListener | back to summary |
|---|---|
| private final WeakInvalidationListener weakLeafListener | |
| weakSelectedListener | back to summary |
|---|---|
| private final WeakListChangeListener<Integer> weakSelectedListener | |
| weakTreeItemExpandedInvalidationListener | back to summary |
|---|---|
| private final WeakInvalidationListener weakTreeItemExpandedInvalidationListener | |
| TreeTableRow | back to summary |
|---|---|
| public TreeTableRow() Creates a default TreeTableRow instance. | |
| cancelEdit | back to summary |
|---|---|
| public void cancelEdit() Overrides javafx. Doc from javafx. Cancels an edit to the value of the cell. Call this function to transition from an editing state into a non-editing state, without saving any user input.
| |
| commitEdit | back to summary |
|---|---|
| public void commitEdit(T newValue) Overrides javafx. Doc from javafx. Commits an edit to the value of the cell. Call this function when appropriate (based on the user interaction requirements of your cell editing user interface) to do two things:
In general there is no need to override this method in custom cell
implementations - it should be sufficient to simply call this method
when appropriate (e.g., when the user pressed the Enter key, you may do something
like
| |
| createDefaultSkin | back to summary |
|---|---|
| protected Skin Overrides javafx. Doc from javafx. Create a new instance of the default skin for this control. This is called to create a skin for the control if
no skin is provided via CSS
| |
| disclosureNodeProperty | back to summary |
|---|---|
| public final ObjectProperty The disclosure node is commonly seen represented as a triangle that rotates on screen to indicate whether or not the TreeItem that it is placed beside is expanded or collapsed.
| |
| executeAccessibleAction | back to summary |
|---|---|
| public void executeAccessibleAction(AccessibleAction action, Object... parameters) Overrides javafx. Doc from javafx. This method is called by the assistive technology to request the action indicated by the argument should be executed.
This method is commonly overridden by subclasses to implement
action that are required for a specific role.
| |
| getDisclosureNode | back to summary |
|---|---|
| public final Node getDisclosureNode() Returns the current disclosure node set in this TreeTableCell.
| |
| getTreeItem | back to summary |
|---|---|
| public final TreeItem Returns the TreeItem currently set in this TreeTableRow.
| |
| getTreeTableView | back to summary |
|---|---|
| public final TreeTableView Returns the TreeTableView associated with this TreeTableCell.
| |
| indexChanged | back to summary |
|---|---|
| pack-priv void indexChanged(int oldIndex, int newIndex) Overrides javafx. Doc from javafx. This method is called whenever the index is changed, regardless of whether the new index is the same as the old index.
| |
| queryAccessibleAttribute | back to summary |
|---|---|
| public Object queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters) Overrides javafx. Doc from javafx. This method is called by the assistive technology to request the value for an attribute.
This method is commonly overridden by subclasses to implement
attributes that are required for a specific role.
| |
| setDisclosureNode | back to summary |
|---|---|
| public final void setDisclosureNode(Node value) The node to use as the "disclosure" triangle, or toggle, used for expanding and collapsing items. This is only used in the case of an item in the tree which contains child items. If not specified, the TreeTableCell's Skin implementation is responsible for providing a default disclosure node.
| |
| setTreeItem | back to summary |
|---|---|
| private void setTreeItem(TreeItem<T> value) | |
| setTreeTableView | back to summary |
|---|---|
| private void setTreeTableView(TreeTableView<T> value) | |
| startEdit | back to summary |
|---|---|
| public void startEdit() Overrides javafx. Doc from javafx. Starts an edit to the value of the cell. Call this function to transition from a non-editing state into an editing state, if the cell is editable. If this cell is already in an editing state, it will stay in it.
| |
| treeItemProperty | back to summary |
|---|---|
| public final ReadOnlyObjectProperty Each TreeTableCell represents at most a single
| |
| treeTableViewProperty | back to summary |
|---|---|
| public final ReadOnlyObjectProperty A TreeTableCell is explicitly linked to a single
| |
| updateEditing | back to summary |
|---|---|
| private void updateEditing() | |
| updateFocus | back to summary |
|---|---|
| private void updateFocus() | |
| updateItem | back to summary |
|---|---|
| private void updateItem(int oldIndex) | |
| updateSelection | back to summary |
|---|---|
| private void updateSelection() | |
| updateTreeItem | back to summary |
|---|---|
| public final void updateTreeItem(TreeItem<T> treeItem) Updates the TreeItem associated with this TreeTableCell.
| |
| updateTreeTableView | back to summary |
|---|---|
| public final void updateTreeTableView(TreeTableView<T> treeTable) Updates the TreeTableView associated with this TreeTableCell.
| |