Java javafx.scene.control TreeView fields, constructors, methods, implement or subclass

Example usage for Java javafx.scene.control TreeView fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javafx.scene.control TreeView.

The text is from its open source code.

Subclass

javafx.scene.control.TreeView has subclasses.
Click this link to see all its subclasses.

Constructor

TreeView(TreeItem root)
Creates a TreeView with the provided root node.
TreeView()
Creates an empty TreeView.

Method

voidautosize()
If the node is resizable, will set its layout bounds to its current preferred width and height.
ContextMenugetContextMenu()
doublegetHeight()
TreeItemgetRoot()
Returns the current root node of this TreeView, or null if no root node is specified.
MultipleSelectionModel>getSelectionModel()
Returns the currently installed selection model.
doublegetWidth()
voidlayout()
Executes a top-down layout pass on the scene graph under this parent.
Point2DlocalToScreen(double localX, double localY)
Transforms a point from the local coordinate space of this Node into the coordinate space of its javafx.stage.Screen .
ObjectProperty>rootProperty()
Property representing the root node of the TreeView.
voidscrollTo(int index)
Scrolls the TreeView such that the item in the given index is visible to the end user.
voidsetCellFactory(Callback, TreeCell> value)
Sets the cell factory that will be used for creating TreeCells, which are used to represent items in the TreeView.
voidsetContextMenu(ContextMenu value)
voidsetEditable(boolean value)
voidsetMinWidth(double value)
voidsetOnMouseClicked(EventHandler value)
voidsetRoot(TreeItem value)
Sets the root node in this TreeView.
voidsetShowRoot(boolean value)
Specifies whether the root TreeItem should be shown within this TreeView.
voidsetStyle(String value)
A string representation of the CSS style associated with this specific Node .
BooleanPropertyshowRootProperty()
Property that represents whether or not the TreeView root node is visible.