public class PaginationSkin
extends <any>
Pagination
control.Pagination
Type | Property and Description |
---|---|
private DoubleProperty |
arrowButtonGap
The size of the gap between number buttons and arrow buttons
|
private BooleanProperty |
arrowsVisible |
private <any> |
pageInformationAlignment |
private BooleanProperty |
pageInformationVisible |
private BooleanProperty |
tooltipVisible |
Modifier and Type | Class and Description |
---|---|
(package private) class |
PaginationSkin.IndicatorButton |
(package private) class |
PaginationSkin.NavigationControl
*
Support classes *
*
|
private static class |
PaginationSkin.StyleableProperties |
Modifier and Type | Field and Description |
---|---|
private boolean |
animate |
private DoubleProperty |
arrowButtonGap
The size of the gap between number buttons and arrow buttons
|
private BooleanProperty |
arrowsVisible |
private PaginationBehavior |
behavior |
private <any> |
clampAnimationEndEventHandler |
private Rectangle |
clipRect |
private int |
currentAnimatedIndex |
private int |
currentIndex |
private StackPane |
currentStackPane |
private static java.lang.Boolean |
DEFAULT_ARROW_VISIBLE
*
Stylesheet Handling *
*
|
private static Side |
DEFAULT_PAGE_INFORMATION_ALIGNMENT |
private static java.lang.Boolean |
DEFAULT_PAGE_INFORMATION_VISIBLE |
private static java.lang.Boolean |
DEFAULT_TOOLTIP_VISIBLE |
private int |
direction |
private static Duration |
DURATION
*
Static fields *
*
|
private int |
fromIndex |
private boolean |
hasPendingAnimation |
private static Interpolator |
interpolator |
private double |
lastTouchPos |
private long |
lastTouchTime |
private int |
maxPageIndicatorCount |
private PaginationSkin.NavigationControl |
navigation |
private boolean |
nextPageReached |
private StackPane |
nextStackPane |
private int |
pageCount |
private <any> |
pageInformationAlignment |
private BooleanProperty |
pageInformationVisible |
private Pagination |
pagination
*
Private fields *
*
|
private int |
previousIndex |
private boolean |
setInitialDirection |
private double |
startTouchPos |
private long |
startTouchTime |
private static double |
SWIPE_THRESHOLD |
private <any> |
swipeAnimationEndEventHandler
*
Listeners *
*
|
private Timeline |
timeline |
private int |
toIndex |
private BooleanProperty |
tooltipVisible |
private static double |
TOUCH_THRESHOLD |
private int |
touchEventId |
private boolean |
touchThresholdBroken |
private double |
touchVelocity |
Constructor and Description |
---|
PaginationSkin(Pagination control)
Creates a new PaginationSkin instance, installing the necessary child
nodes into the Control
children list, as
well as the necessary input mappings for handling key, mouse, etc events. |
Modifier and Type | Method and Description |
---|---|
private void |
animateClamping(boolean rightToLeft) |
private void |
animateSwitchPage() |
private DoubleProperty |
arrowButtonGapProperty()
The size of the gap between number buttons and arrow buttons
|
private BooleanProperty |
arrowsVisibleProperty() |
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) |
private boolean |
createPage(StackPane pane,
int index) |
void |
dispose() |
private double |
getArrowButtonGap() |
static java.util.List<<any>> |
getClassCssMetaData()
Returns the CssMetaData associated with this class, which may include the
CssMetaData of its superclasses.
|
java.util.List<<any>> |
getCssMetaData() |
private int |
getCurrentPageIndex() |
private int |
getMaxPageIndicatorCount() |
private int |
getPageCount() |
private Side |
getPageInformationAlignment() |
private void |
initializeSwipeAndTouchHandlers() |
private boolean |
isArrowsVisible() |
private boolean |
isPageInformationVisible() |
private boolean |
isTooltipVisible() |
protected void |
layoutChildren(double x,
double y,
double w,
double h) |
private <any> |
pageInformationAlignmentProperty() |
private BooleanProperty |
pageInformationVisibleProperty() |
protected java.lang.Object |
queryAccessibleAttribute(AccessibleAttribute attribute,
java.lang.Object... parameters) |
private void |
resetIndexes(boolean usePageIndex) |
private void |
resetIndiciesAndNav() |
private void |
selectNext()
*
Private implementation *
*
|
private void |
selectPrevious() |
private void |
setArrowButtonGap(double value) |
private void |
setArrowsVisible(boolean value) |
private void |
setPageInformationAlignment(Side value) |
private void |
setPageInformationVisible(boolean value) |
private void |
setTooltipVisible(boolean value) |
private void |
swapPanes() |
private BooleanProperty |
tooltipVisibleProperty() |
private final DoubleProperty arrowButtonGapProperty
private final BooleanProperty arrowsVisibleProperty
private final BooleanProperty pageInformationVisibleProperty
private final <any> pageInformationAlignmentProperty
private final BooleanProperty tooltipVisibleProperty
private static final Duration DURATION
private static final double SWIPE_THRESHOLD
private static final double TOUCH_THRESHOLD
private static final Interpolator interpolator
private Pagination pagination
private StackPane currentStackPane
private StackPane nextStackPane
private Timeline timeline
private Rectangle clipRect
private PaginationSkin.NavigationControl navigation
private int fromIndex
private int previousIndex
private int currentIndex
private int toIndex
private int pageCount
private int maxPageIndicatorCount
private double startTouchPos
private double lastTouchPos
private long startTouchTime
private long lastTouchTime
private double touchVelocity
private boolean touchThresholdBroken
private int touchEventId
private boolean nextPageReached
private boolean setInitialDirection
private int direction
private int currentAnimatedIndex
private boolean hasPendingAnimation
private boolean animate
private final PaginationBehavior behavior
private <any> swipeAnimationEndEventHandler
private <any> clampAnimationEndEventHandler
private final DoubleProperty arrowButtonGap
private BooleanProperty arrowsVisible
private BooleanProperty pageInformationVisible
private <any> pageInformationAlignment
private BooleanProperty tooltipVisible
private static final java.lang.Boolean DEFAULT_ARROW_VISIBLE
private static final java.lang.Boolean DEFAULT_PAGE_INFORMATION_VISIBLE
private static final Side DEFAULT_PAGE_INFORMATION_ALIGNMENT
private static final java.lang.Boolean DEFAULT_TOOLTIP_VISIBLE
public PaginationSkin(Pagination control)
children
list, as
well as the necessary input mappings for handling key, mouse, etc events.control
- The control that this skin should be installed onto.private final DoubleProperty arrowButtonGapProperty()
private final double getArrowButtonGap()
private final void setArrowButtonGap(double value)
private final void setArrowsVisible(boolean value)
private final boolean isArrowsVisible()
private final BooleanProperty arrowsVisibleProperty()
private final void setPageInformationVisible(boolean value)
private final boolean isPageInformationVisible()
private final BooleanProperty pageInformationVisibleProperty()
private final void setPageInformationAlignment(Side value)
private final Side getPageInformationAlignment()
private final <any> pageInformationAlignmentProperty()
private final void setTooltipVisible(boolean value)
private final boolean isTooltipVisible()
private final BooleanProperty tooltipVisibleProperty()
public void dispose()
protected double computeMinWidth(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 computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
protected void layoutChildren(double x, double y, double w, double h)
protected java.lang.Object queryAccessibleAttribute(AccessibleAttribute attribute, java.lang.Object... parameters)
private void selectNext()
private void selectPrevious()
private void resetIndiciesAndNav()
private void initializeSwipeAndTouchHandlers()
private void resetIndexes(boolean usePageIndex)
private boolean createPage(StackPane pane, int index)
private int getPageCount()
private int getMaxPageIndicatorCount()
private int getCurrentPageIndex()
private void animateSwitchPage()
private void swapPanes()
private void animateClamping(boolean rightToLeft)
public static java.util.List<<any>> getClassCssMetaData()
public java.util.List<<any>> getCssMetaData()