JavaFX ToggleButton
The ToggleButton widget provides a button which can be in a "checked" or "unchecked" state
with visualization of that state.
JavaFX Tooltip
It isn't clear whether the Tooltip is a component or a container … so for right now, we will consider
it a component until we have a better idea. The notion here is that a tooltip is a popup which will
show additional information about something when the user hovers over an existing item.
JavaFX TreeView
The TreeView is able to display hierarchical data. It is composed of TreeItem objects.
TreeItems can have children as provided by the children property. Other instances of
TreeItem can be added as children to build a tree structure.
The root of the TreeView can be set with the "root" property.
A TreeItem within a TreeView is visualized by a TreeCell instance.
If we wish to hide the root node of the tree, we can use the "showRoot" property. Setting it to
false (default is true) will hide the root node.
The icon to the left of the label can be an instance of an ImageView. It is essential that a new
instance of an ImageView be used for each tree node. You can not share an ImageView
instance between nodes.
See also:
• JavaFX ImageView
• Chapter 14 – Tree View
JavaFX TreeTableView
First, read and understand the TreeView and TableView controls. Once done, then come back.
The TreeTableColumn defines the columns shown in the table. Its type is:
TreeTableColumn<S, T>
where S is the class type for the generic objects in the data and T is the type shown in the column.
See also:
• JavaFX TreeView
• Chapter 15 – Tree Table View
JavaFX WebView
The WebView widget provides an in-place web browser widget. From the WebView we can ask
for a reference to the underlying Web engine being used. It is from this object that we can perform
the browser functions of interest to us such as the loading of a web page.
Page 278
Comentários a estes Manuais