Uses of Class
javafx.scene.control.TreeItem
Packages that use TreeItem
Package
Description
The JavaFX User Interface Controls (UI Controls or just Controls) are
specialized Nodes in the JavaFX Scenegraph especially suited for reuse in
many different application contexts.
The
javafx.scene.control.cell package is where all cell-related
classes are located, other than the core classes such as
Cell, IndexedCell,
ListCell, TreeCell,
and TableCell.-
Uses of TreeItem in javafx.scene.control
Subclasses of TreeItem in javafx.scene.controlModifier and TypeClassDescriptionclassTreeItem subclass that adds support for being in selected, unselected, and indeterminate states.Methods in javafx.scene.control that return TreeItemModifier and TypeMethodDescriptionTreeView.getEditingItem()Returns the TreeItem that is currently being edited in the TreeView, or null if no item is being edited.TreeTableView.TreeTableViewFocusModel.getModelItem(int index)Returns the item at the given index.TreeTableView.TreeTableViewSelectionModel.getModelItem(int index)Returns the item at the given index.TreeItem.getParent()The parent of this TreeItem.TreeTableView.getRoot()Returns the current root node of this TreeTableView, or null if no root node is specified.TreeView.getRoot()Returns the current root node of this TreeView, or null if no root node is specified.TreeTableColumn.CellEditEvent.getRowValue()Convenience method that returns the value for the row (that is, from the TableViewitemslist), for the row contained within theTablePositionreturned inTreeTableColumn.CellEditEvent.getTreeTablePosition().TreeItem.TreeModificationEvent.getSource()Returns the TreeItem upon which this event occurred.TreeCell.getTreeItem()Returns the TreeItem currently set in this TreeCell.TreeItem.TreeModificationEvent.getTreeItem()Returns the TreeItem that this event occurred upon.TreeTablePosition.getTreeItem()Returns theTreeItemthat backs theTablePositionBase.getRow()row}.TreeTableRow.getTreeItem()Returns the TreeItem currently set in this TreeTableRow.TreeTableView.EditEvent.getTreeItem()Returns theTreeItemupon which the edit took place.TreeTableView.getTreeItem(int row)Returns the TreeItem in the given index, or null if it is out of bounds.TreeView.EditEvent.getTreeItem()Returns theTreeItemupon which the edit took place.TreeView.getTreeItem(int row)Returns the TreeItem in the given index, or null if it is out of bounds.TreeTableColumn.CellDataFeatures.getValue()Returns the value passed in to the constructor.TreeItem.nextSibling()Returns the next sibling of the TreeItem.TreeItem.nextSibling(TreeItem<T> afterNode)Returns the next sibling after the given node.TreeItem.previousSibling()Returns the previous sibling of the TreeItem.TreeItem.previousSibling(TreeItem<T> beforeNode)Returns the previous sibling after the given node.Methods in javafx.scene.control that return types with arguments of type TreeItemModifier and TypeMethodDescriptionTreeTableView.comparatorProperty()The comparator property is a read-only property that is representative of the current state of thesort orderlist.TreeView.editingItemProperty()A property used to represent the TreeItem currently being edited in the TreeView, if editing is taking place, or null if no item is being edited.TreeView.focusModelProperty()The FocusModel provides the API through which it is possible to control focus on zero or one rows of the TreeView.TreeItem.TreeModificationEvent.getAddedChildren()Returns the children added to the TreeItem in this event, or an empty list if no children were added.TreeItem.getChildren()The children of this TreeItem.TreeTableView.getComparator()Gets the value of the property comparator.TreeView.getFocusModel()Returns the currently installedFocusModel.TreeItem.TreeModificationEvent.getRemovedChildren()Returns the children removed from the TreeItem in this event, or an empty list if no children were added.TreeView.getSelectionModel()Returns the currently installed selection model.TreeItem.parentProperty()A property that represents the parent of this TreeItem.TreeTableView.rootProperty()Property representing the root node of the TreeTableView.TreeView.rootProperty()Property representing the root node of the TreeView.TreeView.selectionModelProperty()The SelectionModel provides the API through which it is possible to select single or multiple items within a TreeView, as well as inspect which rows have been selected by the user.TreeCell.treeItemProperty()Each TreeCell represents at most a singleTreeItem, which is represented by this property.TreeTableRow.treeItemProperty()Each TreeTableCell represents at most a singleTreeItem, which is represented by this property.Methods in javafx.scene.control with parameters of type TreeItemModifier and TypeMethodDescriptionvoidInstructs the TreeView to begin editing the given TreeItem, if the TreeView iseditable.TreeTableColumn.getCellObservableValue(TreeItem<S> item)Attempts to return an ObservableValue<T> for the given item (which is of type S).static intTreeTableView.getNodeLevel(TreeItem<?> node)Deprecated.This method does not correctly calculate the distance from the given TreeItem to the root of the TreeTableView.static intTreeView.getNodeLevel(TreeItem<?> node)Deprecated.This method does not correctly calculate the distance from the given TreeItem to the root of the TreeView.intReturns the index position of the given TreeItem, assuming that it is currently accessible through the tree hierarchy (most notably, that all parent tree items are expanded).intReturns the index position of the given TreeItem, assuming that it is currently accessible through the tree hierarchy (most notably, that all parent tree items are expanded).intTreeTableView.getTreeItemLevel(TreeItem<?> node)Returns the number of levels of 'indentation' of the given TreeItem, based on how many times getParent() can be recursively called.intTreeView.getTreeItemLevel(TreeItem<?> node)Returns the number of levels of 'indentation' of the given TreeItem, based on how many times getParent() can be recursively called.TreeItem.nextSibling(TreeItem<T> afterNode)Returns the next sibling after the given node.TreeItem.previousSibling(TreeItem<T> beforeNode)Returns the previous sibling after the given node.voidSets the root node in this TreeTableView.voidSets the root node in this TreeView.voidTreeCell.updateTreeItem(TreeItem<T> treeItem)Updates the TreeItem associated with this TreeCell.voidTreeTableRow.updateTreeItem(TreeItem<T> treeItem)Updates the TreeItem associated with this TreeTableCell.Method parameters in javafx.scene.control with type arguments of type TreeItemModifier and TypeMethodDescriptionvoidTreeTableView.TreeTableViewSelectionModel.selectRange(int minRow, TableColumnBase<TreeItem<S>,?> minColumn, int maxRow, TableColumnBase<TreeItem<S>,?> maxColumn)Selects the cells in the range (minRow, minColumn) to (maxRow, maxColumn), inclusive.voidTreeView.setFocusModel(FocusModel<TreeItem<T>> value)Sets theFocusModelto be used in the TreeView.voidTreeView.setSelectionModel(MultipleSelectionModel<TreeItem<T>> value)Sets theMultipleSelectionModelto be used in the TreeView.Constructors in javafx.scene.control with parameters of type TreeItemModifierConstructorDescriptionCellDataFeatures(TreeTableView<S> treeTableView, TreeTableColumn<S,T> tableColumn, TreeItem<S> value)Instantiates a CellDataFeatures instance with the given properties set as read-only values of this instance.EditEvent(TreeTableView<S> source, EventType<? extends TreeTableView.EditEvent> eventType, TreeItem<S> treeItem, S oldValue, S newValue)Creates a new EditEvent instance to represent an edit event.EditEvent(TreeView<T> source, EventType<? extends TreeView.EditEvent> eventType, TreeItem<T> treeItem, T oldValue, T newValue)Creates a new EditEvent instance to represent an edit event.TreeModificationEvent(EventType<? extends Event> eventType, TreeItem<T> treeItem)Constructs a basic TreeModificationEvent - this is useful in situations where the tree item has not received a new value, has not changed between expanded/collapsed states, and whose children has not changed.TreeModificationEvent(EventType<? extends Event> eventType, TreeItem<T> treeItem, boolean expanded)Constructs a TreeModificationEvent for when the TreeItem has had itsexpandedProperty()changed.TreeModificationEvent(EventType<? extends Event> eventType, TreeItem<T> treeItem, List<? extends TreeItem<T>> added, List<? extends TreeItem<T>> removed)Constructs a TreeModificationEvent for when the TreeItem has had its children list changed.Constructs a TreeModificationEvent for when the TreeItem has had itsvalueProperty()changed.TreeTableView(TreeItem<S> root)Creates a TreeTableView with the provided root node.Creates a TreeView with the provided root node.Constructor parameters in javafx.scene.control with type arguments of type TreeItem -
Uses of TreeItem in javafx.scene.control.cell
Methods in javafx.scene.control.cell that return types with arguments of type TreeItemModifier and TypeMethodDescriptionCheckBoxTreeCell.converterProperty()TheStringConverterproperty.CheckBoxTreeCell.getConverter()Returns theStringConverterused in this cell.CheckBoxTreeCell.getSelectedStateCallback()Returns theCallbackthat is bound to by the CheckBox shown on screen.CheckBoxTreeCell.selectedStateCallbackProperty()Property representing theCallbackthat is bound to by the CheckBox shown on screen.Method parameters in javafx.scene.control.cell with type arguments of type TreeItemModifier and TypeMethodDescriptionCheckBoxTreeCell.forTreeView(Callback<TreeItem<T>,ObservableValue<Boolean>> getSelectedProperty)Creates a cell factory for use in a TreeView control.CheckBoxTreeCell.forTreeView(Callback<TreeItem<T>,ObservableValue<Boolean>> getSelectedProperty, StringConverter<TreeItem<T>> converter)Creates a cell factory for use in a TreeView control.CheckBoxTreeCell.forTreeView(Callback<TreeItem<T>,ObservableValue<Boolean>> getSelectedProperty, StringConverter<TreeItem<T>> converter)Creates a cell factory for use in a TreeView control.voidCheckBoxTreeCell.setConverter(StringConverter<TreeItem<T>> value)Sets theStringConverterto be used in this cell.voidCheckBoxTreeCell.setSelectedStateCallback(Callback<TreeItem<T>,ObservableValue<Boolean>> value)Sets theCallbackthat is bound to by the CheckBox shown on screen.Constructor parameters in javafx.scene.control.cell with type arguments of type TreeItemModifierConstructorDescriptionCheckBoxTreeCell(Callback<TreeItem<T>,ObservableValue<Boolean>> getSelectedProperty)Creates aCheckBoxTreeCellfor use in a TreeView control via a cell factory.CheckBoxTreeCell(Callback<TreeItem<T>,ObservableValue<Boolean>> getSelectedProperty, StringConverter<TreeItem<T>> converter)Creates aCheckBoxTreeCellfor use in a TreeView control via a cell factory.CheckBoxTreeCell(Callback<TreeItem<T>,ObservableValue<Boolean>> getSelectedProperty, StringConverter<TreeItem<T>> converter)Creates aCheckBoxTreeCellfor use in a TreeView control via a cell factory.