Class GridViewSkin<T>

java.lang.Object
javafx.scene.control.SkinBase<GridView<T>>
javafx.scene.control.skin.VirtualContainerBase<GridView<T>,impl.org.controlsfx.skin.GridRow<T>>
impl.org.controlsfx.skin.GridViewSkin<T>
All Implemented Interfaces:
javafx.scene.control.Skin<GridView<T>>

public class GridViewSkin<T> extends javafx.scene.control.skin.VirtualContainerBase<GridView<T>,impl.org.controlsfx.skin.GridRow<T>>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected double
    Returns the width of a cell
    int
    Returns the max number of cell per row
    protected double
    computeMinHeight(double height, double topInset, double rightInset, double bottomInset, double leftInset)
     
    protected double
    Returns the width of a row (should be GridView.width - GridView.Scrollbar.width)
    protected javafx.scene.control.skin.VirtualFlow<impl.org.controlsfx.skin.GridRow<T>>
     
    int
    Returns the number of row needed to display the whole set of cells
    protected void
    layoutChildren(double x, double y, double w, double h)
     
    void
     
    protected void
     
    protected void
    updateRows(int rowCount)
     

    Methods inherited from class javafx.scene.control.skin.VirtualContainerBase

    dispose, getVirtualFlow, markItemCountDirty

    Methods inherited from class javafx.scene.control.SkinBase

    computeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinWidth, computePrefHeight, computePrefWidth, consumeMouseEvents, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, 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 java.lang.Object

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

    • GridViewSkin

      public GridViewSkin(GridView<T> control)
  • Method Details

    • createVirtualFlow

      protected javafx.scene.control.skin.VirtualFlow<impl.org.controlsfx.skin.GridRow<T>> createVirtualFlow()
      Overrides:
      createVirtualFlow in class javafx.scene.control.skin.VirtualContainerBase<GridView<T>,impl.org.controlsfx.skin.GridRow<T>>
    • updateGridViewItems

      public void updateGridViewItems()
    • layoutChildren

      protected void layoutChildren(double x, double y, double w, double h)
      Overrides:
      layoutChildren in class javafx.scene.control.skin.VirtualContainerBase<GridView<T>,impl.org.controlsfx.skin.GridRow<T>>
    • getItemCount

      public int getItemCount()
      Returns the number of row needed to display the whole set of cells
      Specified by:
      getItemCount in class javafx.scene.control.skin.VirtualContainerBase<GridView<T>,impl.org.controlsfx.skin.GridRow<T>>
      Returns:
      GridView row count
    • updateItemCount

      protected void updateItemCount()
      Specified by:
      updateItemCount in class javafx.scene.control.skin.VirtualContainerBase<GridView<T>,impl.org.controlsfx.skin.GridRow<T>>
    • computeMaxCellsInRow

      public int computeMaxCellsInRow()
      Returns the max number of cell per row
      Returns:
      Max cell number per row
    • computeRowWidth

      protected double computeRowWidth()
      Returns the width of a row (should be GridView.width - GridView.Scrollbar.width)
      Returns:
      Computed width of a row
    • computeCellWidth

      protected double computeCellWidth()
      Returns the width of a cell
      Returns:
      Computed width of a cell
    • updateRows

      protected void updateRows(int rowCount)
    • computeMinHeight

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