- All Implemented Interfaces:
Skin<MFXPagination>
This is the default skin implementation for
MFXPagination.
The top container and the pane containing the pages are dynamically built
and replaced accordingly to the current MFXPagination.orientationProperty().
The skin is also responsible for building and managing the pages.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuildBar()Responsible for building the pages' container according to the pagination's orientation.protected PaneResponsible for building the top container according to the pagination's orientation.protected voidResponsible for building the pages or updating them if re-building them is not needed.protected doublecomputeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) protected voidsupplyPages(int num) Builds additional pages according to the given number.protected voidAllMFXPages have aNumberRangefield that specifies the range of truncated pages.protected voidComputes the indexes list usingMFXPagination.indexesSupplierProperty()and updates the built pages usingMFXPage.updateItem(Integer).Methods inherited from class javafx.scene.control.SkinBase
computeBaselineOffset, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, consumeMouseEvents, dispose, 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
-
Constructor Details
-
MFXPaginationSkin
-
-
Method Details
-
buildContainer
Responsible for building the top container according to the pagination's orientation. -
buildBar
protected void buildBar()Responsible for building the pages' container according to the pagination's orientation. -
buildPages
protected void buildPages()Responsible for building the pages or updating them if re-building them is not needed.Also, if the pages list is not empty, and to improve performance, if more or less pages are needed
supplyPages(int)is used. -
supplyPages
protected void supplyPages(int num) Builds additional pages according to the given number.If it is less than 0, then pages are removed.
-
updatePages
protected void updatePages()Computes the indexes list usingMFXPagination.indexesSupplierProperty()and updates the built pages usingMFXPage.updateItem(Integer). -
updateBetweens
protected void updateBetweens()AllMFXPages have aNumberRangefield that specifies the range of truncated pages.Truncated pages use this property to show a popup containing the list of hidden pages, making the navigation faster and easier.
This method is responsible for properly updating such property.
-
computeMaxWidth
protected double computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMaxWidthin classSkinBase<MFXPagination>
-
computeMaxHeight
protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMaxHeightin classSkinBase<MFXPagination>
-