- java.lang.Object
-
- javafx.scene.control.SkinBase<C>
-
- javafx.scene.control.skin.VirtualContainerBase<GridView<T>,impl.org.controlsfx.skin.GridRow<T>>
-
- impl.org.controlsfx.skin.GridViewSkin<T>
-
public class GridViewSkin<T> extends VirtualContainerBase<GridView<T>,impl.org.controlsfx.skin.GridRow<T>>
-
-
Constructor Summary
Constructors Constructor Description GridViewSkin(GridView<T> control)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected doublecomputeCellWidth()Returns the width of a cellintcomputeMaxCellsInRow()Returns the max number of cell per rowprotected doublecomputeMinHeight(double height, double topInset, double rightInset, double bottomInset, double leftInset)protected doublecomputeRowWidth()Returns the width of a row (should be GridView.width - GridView.Scrollbar.width)intgetItemCount()Returns the number of row needed to display the whole set of cellsprotected voidlayoutChildren(double x, double y, double w, double h)voidupdateGridViewItems()protected voidupdateItemCount()protected voidupdateRows(int rowCount)-
Methods inherited from class javafx.scene.control.skin.VirtualContainerBase
createVirtualFlow, getVirtualFlow, markItemCountDirty
-
Methods inherited from class javafx.scene.control.SkinBase
computeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinWidth, computePrefHeight, computePrefWidth, consumeMouseEvents, dispose, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, registerChangeListener, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners
-
-
-
-
Method Detail
-
updateGridViewItems
public void updateGridViewItems()
-
layoutChildren
protected void layoutChildren(double x, double y, double w, double h)- Overrides:
layoutChildrenin classVirtualContainerBase<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:
getItemCountin classVirtualContainerBase<GridView<T>,impl.org.controlsfx.skin.GridRow<T>>- Returns:
- GridView row count
-
updateItemCount
protected void updateItemCount()
- Specified by:
updateItemCountin classVirtualContainerBase<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:
computeMinHeightin classSkinBase<GridView<T>>
-
-