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

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

Introduction

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

The text is from its open source code.

Subclass

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

Constructor

TreeItem(final T value)
Creates a TreeItem with the value property set to the provided object.
TreeItem()
Creates an empty TreeItem.
TreeItem(final T value, final Node graphic)
Creates a TreeItem with the value property set to the provided object, and the graphic set to the provided Node.

Method

voidaddEventHandler(EventType eventType, EventHandler eventHandler)
Registers an event handler to this TreeItem.
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
BooleanPropertyexpandedProperty()
The expanded state of this TreeItem.
ObservableList>getChildren()
The children of this TreeItem.
TreeItemgetParent()
The parent of this TreeItem.
TgetValue()
Returns the application-specific data represented by this TreeItem.
booleanisExpanded()
Returns the expanded state of this TreeItem.
booleanisLeaf()
A TreeItem is a leaf if it has no children.
voidsetExpanded(boolean value)
Sets the expanded state of this TreeItem.
voidsetGraphic(Node value)
Sets the node that is generally shown to the left of the value property.
voidsetValue(T value)
Sets the application-specific data represented by this TreeItem.