Class PagingListViewSkin<T>

java.lang.Object
javafx.scene.control.SkinBase<PagingListView<T>>
com.dlsc.gemsfx.skins.GemsSkinBase<PagingListView<T>>
com.dlsc.gemsfx.skins.PagingListViewSkin<T>
Type Parameters:
T - the item type displayed by the list view
All Implemented Interfaces:
javafx.scene.control.Skin<PagingListView<T>>

public class PagingListViewSkin<T> extends GemsSkinBase<PagingListView<T>>
Skin for PagingListView.

The skin combines the inner list view with PagingControls, optionally wraps the list in a scroll pane, and overlays the configured placeholder when the current page has no items.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Style class added to the content when the list view is wrapped in a scroll pane.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a skin for the given paging list view.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected double
    computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
     
    protected double
    computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
     
    protected double
    computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
     

    Methods inherited from class javafx.scene.control.SkinBase

    computeBaselineOffset, computeMaxWidth, computeMinWidth, computePrefWidth, consumeMouseEvents, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutChildren, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, registerChangeListener, registerInvalidationListener, registerListChangeListener, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners, unregisterInvalidationListeners, unregisterListChangeListeners

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • USING_SCROLL_PANE

      public static final String USING_SCROLL_PANE
      Style class added to the content when the list view is wrapped in a scroll pane.
      See Also:
  • Constructor Details

    • PagingListViewSkin

      public PagingListViewSkin(PagingListView<T> pagingListView)
      Creates a skin for the given paging list view.
      Parameters:
      pagingListView - the paging list view rendered by this skin
  • Method Details

    • computePrefHeight

      protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computePrefHeight in class javafx.scene.control.SkinBase<PagingListView<T>>
    • computeMinHeight

      protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computeMinHeight in class javafx.scene.control.SkinBase<PagingListView<T>>
    • computeMaxHeight

      protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computeMaxHeight in class javafx.scene.control.SkinBase<PagingListView<T>>