Class PagingGridTableViewSkin<T>

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

public class PagingGridTableViewSkin<T> extends GemsSkinBase<PagingGridTableView<T>>
Skin for PagingGridTableView.

The skin combines the wrapped GridTableView with PagingControls, optionally places the table inside a scroll pane, and positions the controls above or below the table.

  • Field Summary

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

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

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

    Methods inherited from class javafx.scene.control.SkinBase

    computeBaselineOffset, 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 grid table is wrapped in a scroll pane.
      See Also:
  • Constructor Details

    • PagingGridTableViewSkin

      public PagingGridTableViewSkin(PagingGridTableView<T> pagingGridTableView)
      Creates a skin for the given paging grid table view.
      Parameters:
      pagingGridTableView - the paging grid table 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<PagingGridTableView<T>>
    • computeMinHeight

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

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

      protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computeMinWidth in class javafx.scene.control.SkinBase<PagingGridTableView<T>>
    • computePrefWidth

      protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computePrefWidth in class javafx.scene.control.SkinBase<PagingGridTableView<T>>
    • computeMaxWidth

      protected double computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computeMaxWidth in class javafx.scene.control.SkinBase<PagingGridTableView<T>>