Class TreeViewSkin<T>

Type Parameters:
T - the type of the item contained within the TreeItem value property for all tree items in this TreeView
All Implemented Interfaces:
Skin<TreeView<T>>

public class TreeViewSkin<T> extends VirtualContainerBase<TreeView<T>,TreeCell<T>>
Default skin implementation for the TreeView control.
Since:
9
See Also:
  • Constructor Details

    • TreeViewSkin

      public TreeViewSkin(TreeView control)
      Creates a new TreeViewSkin instance, installing the necessary child nodes into the Control children list, as well as the necessary input mappings for handling key, mouse, etc events.
      Parameters:
      control - The control that this skin should be installed onto.
  • Method Details

    • getItemCount

      protected int getItemCount()
      Returns the total number of items in this container, including those that are currently hidden because they are out of view.
      Specified by:
      getItemCount in class VirtualContainerBase<TreeView<T>,TreeCell<T>>
      Returns:
      the total number of items in this container
    • updateItemCount

      protected void updateItemCount()
      This method is called when it is possible that the item count has changed (i.e. scrolling has occurred, the control has resized, etc). This method should recalculate the item count and store that for future use by the VirtualContainerBase.getItemCount() method.
      Specified by:
      updateItemCount in class VirtualContainerBase<TreeView<T>,TreeCell<T>>