Class ListViewSkin<T>

Type Parameters:
T - the list item type
All Implemented Interfaces:
Skin<ListView<T>>

public class ListViewSkin<T> extends VirtualContainerBase<ListView<T>,ListCell<T>>
Default skin implementation for the ListView control.
Since:
9
See Also:
  • Constructor Details

    • ListViewSkin

      public ListViewSkin(ListView<T> control)
      Creates a new ListViewSkin 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<ListView<T>,ListCell<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<ListView<T>,ListCell<T>>