java.lang.Object
javafx.scene.control.SkinBase<javafx.scene.control.Pagination>
javafx.scene.control.skin.PaginationSkin
io.github.jmcleodfoss.voluminouspaginationskin.VoluminousPaginationSkin
All Implemented Interfaces:
javafx.scene.control.Skin<javafx.scene.control.Pagination>

public class VoluminousPaginationSkin
extends javafx.scene.control.skin.PaginationSkin
A pagination skin with additional controls for use with Pagination objects which must display a large number of pages. It adds the following controls to the navigation section:
  • ⏮, Jump to first page
  • ⏪, Jump backward by 10%
  • ⏩, Jump forward by 10%
  • ⏭, Jump to last page
This is for JavaFX 8. Later versions should extend javafx.scene.control.skin.PaginationSkin This was inspired by @see Stack Overflow Question 31540001 with code copied from @see OpenJDK implementation of PaginationSkin CSS (including arrow shape definitions) are in @link{resources/css/VoluminousPaginationSkin.css}
  • Constructor Summary

    Constructors 
    Constructor Description
    VoluminousPaginationSkin​(javafx.scene.control.Pagination pagination)
    Create a skin for the given pagination.
    VoluminousPaginationSkin​(javafx.scene.control.Pagination pagination, double jumpFraction)
    Create a skin for the given pagination.
  • Method Summary

    Modifier and Type Method Description
    double getJumpFraction()
    Get the jump fraction value
    javafx.beans.property.DoubleProperty getJumpFractionProperty()
    Get the jump fraction property
    void setJumpFraction​(double newJumpFraction)
    Set the jump fraction to a new value.

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

    computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, dispose, getClassCssMetaData, getCssMetaData, layoutChildren, queryAccessibleAttribute

    Methods inherited from class javafx.scene.control.SkinBase

    computeBaselineOffset, computeMaxHeight, computeMaxWidth, consumeMouseEvents, executeAccessibleAction, getChildren, getNode, getSkinnable, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, registerChangeListener, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners

    Methods inherited from class java.lang.Object

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

    • VoluminousPaginationSkin

      public VoluminousPaginationSkin​(javafx.scene.control.Pagination pagination)
      Create a skin for the given pagination.
      Parameters:
      pagination - The Pagination object to skin
    • VoluminousPaginationSkin

      public VoluminousPaginationSkin​(javafx.scene.control.Pagination pagination, double jumpFraction)
      Create a skin for the given pagination.
      Parameters:
      pagination - The Pagination object to skin
      jumpFraction - The relative amount to jump by for jumpForward and jumpBackward
  • Method Details

    • getJumpFraction

      public double getJumpFraction()
      Get the jump fraction value
      Returns:
      The jumpFraction
    • getJumpFractionProperty

      public javafx.beans.property.DoubleProperty getJumpFractionProperty()
      Get the jump fraction property
      Returns:
      The jumpFraction property
    • setJumpFraction

      public void setJumpFraction​(double newJumpFraction)
      Set the jump fraction to a new value.
      Parameters:
      newJumpFraction - The new jump fraction value