Class PagingControlBase
- All Implemented Interfaces:
javafx.css.Styleable, javafx.event.EventTarget, javafx.scene.control.Skinnable
- Direct Known Subclasses:
ItemPagingControlBase, PagingControls
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAn enum listing the different ways the control will display or not display controls to quickly go to the first or the last page.static enumA list of possible strategies for showing / hiding the message label. -
Property Summary
PropertiesTypePropertyDescriptionfinal javafx.beans.property.ObjectProperty<javafx.geometry.HPos> The alignment property controls where in the view the paging buttons will appear: left, center, or right.final javafx.beans.property.ListProperty<Integer> A list of available page sizes that will be shown by the page size selector.final javafx.beans.property.ObjectProperty<PagingControlBase.FirstLastPageDisplayMode> Controls how first and last page navigation is displayed by the paging control.final javafx.beans.property.ObjectProperty<javafx.scene.Node> Stores the node that will be placed between the regular page buttons and the page button that represents the "first" page.final javafx.beans.property.StringPropertyThe text that will be shown by the "first page" button.final javafx.beans.property.ObjectProperty<javafx.scene.Node> Stores the node that will be placed between the regular page buttons and the page button that represents the "last" page.final javafx.beans.property.StringPropertyThe text that will be shown by the "last page" button.final javafx.beans.property.IntegerPropertyThe maximum number of page indicators / buttons that will be shown at any time by this control.final javafx.beans.property.ObjectProperty<javafx.util.Callback<PagingControls, String>> A message label provider is used to customize the messages shown by the message label of this control, for example, "Showing items 11 to 20 of a total of 1000 items".final javafx.beans.property.ObjectProperty<PagingControlBase.MessageLabelStrategy> The message label strategy controls whether the message label will appear in certain situations, for example, when there are no items currently in the view that is being controlled by these pagination controls.final javafx.beans.property.StringPropertyThe text that will be shown by the "next page" button.final javafx.beans.property.ReadOnlyIntegerPropertyA read-only property that stores the number of pages that are required for the given number of items and the given page size.final javafx.beans.property.IntegerPropertyThe index of the currently showing page.final javafx.beans.property.IntegerPropertyThe number of items shown per page of the control that is being controlled by the pagination control.final javafx.beans.property.StringPropertyThe text / label shown in front of the page size selector control.final javafx.beans.property.StringPropertyThe text that will be shown by the "previous page" button.final javafx.beans.property.BooleanPropertyA flag used to signal whether the individual page buttons will all have the same width or if their width can be different based on the page number that they are showing (e.g. the button for page "1" would be substantially less wide than the button for page "999").final javafx.beans.property.BooleanPropertyDetermines if the control will show a selector UI for choosing different page sizes.final javafx.beans.property.BooleanPropertyA flag used to determine whether the control will display arrow buttons to go to the next or the previous page.final javafx.beans.property.IntegerPropertyThe total number of items (rows) displayed by the control that utilizes this pagination control for paging.Properties inherited from class javafx.scene.control.Control
contextMenu, skin, tooltipProperties inherited from class javafx.scene.layout.Region
background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, widthProperties inherited from class javafx.scene.Parent
needsLayoutProperties inherited from class javafx.scene.Node
accessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, focusVisible, focusWithin, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, viewOrder, visible -
Field Summary
Fields inherited from class javafx.scene.layout.Region
USE_COMPUTED_SIZE, USE_PREF_SIZEFields inherited from class javafx.scene.Node
BASELINE_OFFSET_SAME_AS_HEIGHT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal javafx.beans.property.ObjectProperty<javafx.geometry.HPos> The alignment property controls where in the view the paging buttons will appear: left, center, or right.final javafx.beans.property.ListProperty<Integer> A list of available page sizes that will be shown by the page size selector.final javafx.beans.property.ObjectProperty<PagingControlBase.FirstLastPageDisplayMode> Controls how first and last page navigation is displayed by the paging control.voidSets the page index to zero.final javafx.beans.property.ObjectProperty<javafx.scene.Node> Stores the node that will be placed between the regular page buttons and the page button that represents the "first" page.final javafx.beans.property.StringPropertyThe text that will be shown by the "first page" button.final javafx.geometry.HPosGets the value of thealignmentproperty.final javafx.collections.ObservableList<Integer> Gets the value of theavailablePageSizesproperty.static List<javafx.css.CssMetaData<? extends javafx.css.Styleable, ?>> Gets theCssMetaDataassociated with this class, which may include theCssMetaDataof its superclasses.List<javafx.css.CssMetaData<? extends javafx.css.Styleable, ?>> Gets the value of thefirstLastPageDisplayModeproperty.final javafx.scene.NodeGets the value of thefirstPageDividerproperty.final StringGets the value of thefirstPageTextproperty.final javafx.scene.NodeGets the value of thelastPageDividerproperty.final StringGets the value of thelastPageTextproperty.final intGets the value of themaxPageIndicatorsCountproperty.final javafx.util.Callback<PagingControls, String> Gets the value of themessageLabelProviderproperty.Gets the value of themessageLabelStrategyproperty.final StringGets the value of thenextPageTextproperty.final intgetPage()Gets the value of thepageproperty.final intGets the value of thepageCountproperty.final intGets the value of thepageSizeproperty.final StringGets the value of thepageSizeSelectorLabelproperty.final StringGets the value of thepreviousPageTextproperty.final intGets the value of thetotalItemCountproperty.final booleanGets the value of thesameWidthPageButtonsproperty.final booleanGets the value of theshowPageSizeSelectorproperty.final booleanGets the value of theshowPreviousNextPageButtonproperty.voidlastPage()Sets the page index to the page count minus one.final javafx.beans.property.ObjectProperty<javafx.scene.Node> Stores the node that will be placed between the regular page buttons and the page button that represents the "last" page.final javafx.beans.property.StringPropertyThe text that will be shown by the "last page" button.final javafx.beans.property.IntegerPropertyThe maximum number of page indicators / buttons that will be shown at any time by this control.final javafx.beans.property.ObjectProperty<javafx.util.Callback<PagingControls, String>> A message label provider is used to customize the messages shown by the message label of this control, for example, "Showing items 11 to 20 of a total of 1000 items".final javafx.beans.property.ObjectProperty<PagingControlBase.MessageLabelStrategy> The message label strategy controls whether the message label will appear in certain situations, for example, when there are no items currently in the view that is being controlled by these pagination controls.voidnextPage()Increments the page index.final javafx.beans.property.StringPropertyThe text that will be shown by the "next page" button.final javafx.beans.property.ReadOnlyIntegerPropertyA read-only property that stores the number of pages that are required for the given number of items and the given page size.final javafx.beans.property.IntegerPropertyThe index of the currently showing page.final javafx.beans.property.IntegerPropertyThe number of items shown per page of the control that is being controlled by the pagination control.final javafx.beans.property.StringPropertyThe text / label shown in front of the page size selector control.voidDecrements the page index.final javafx.beans.property.StringPropertyThe text that will be shown by the "previous page" button.final javafx.beans.property.BooleanPropertyA flag used to signal whether the individual page buttons will all have the same width or if their width can be different based on the page number that they are showing (e.g. the button for page "1" would be substantially less wide than the button for page "999").final voidsetAlignment(javafx.geometry.HPos alignment) Sets the value of thealignmentproperty.final voidsetAvailablePageSizes(javafx.collections.ObservableList<Integer> availablePageSizes) Sets the value of theavailablePageSizesproperty.final voidsetFirstLastPageDisplayMode(PagingControlBase.FirstLastPageDisplayMode firstLastPageDisplayMode) Sets the value of thefirstLastPageDisplayModeproperty.final voidsetFirstPageDivider(javafx.scene.Node firstPageDivider) Sets the value of thefirstPageDividerproperty.final voidsetFirstPageText(String firstPageText) Sets the value of thefirstPageTextproperty.final voidsetLastPageDivider(javafx.scene.Node lastPageDivider) Sets the value of thelastPageDividerproperty.final voidsetLastPageText(String lastPageText) Sets the value of thelastPageTextproperty.final voidsetMaxPageIndicatorsCount(int maxPageIndicatorsCount) Sets the value of themaxPageIndicatorsCountproperty.final voidsetMessageLabelProvider(javafx.util.Callback<PagingControls, String> messageLabelProvider) Sets the value of themessageLabelProviderproperty.final voidsetMessageLabelStrategy(PagingControlBase.MessageLabelStrategy messageLabelStrategy) Sets the value of themessageLabelStrategyproperty.final voidsetNextPageText(String nextPageText) Sets the value of thenextPageTextproperty.final voidsetPage(int page) Sets the value of thepageproperty.final voidsetPageSize(int pageSize) Sets the value of thepageSizeproperty.final voidsetPageSizeSelectorLabel(String pageSizeSelectorLabel) Sets the value of thepageSizeSelectorLabelproperty.final voidsetPreviousPageText(String previousPageText) Sets the value of thepreviousPageTextproperty.final voidsetSameWidthPageButtons(boolean sameWidthPageButtons) Sets the value of thesameWidthPageButtonsproperty.final voidsetShowPageSizeSelector(boolean showPageSizeSelector) Sets the value of theshowPageSizeSelectorproperty.final voidsetShowPreviousNextPageButton(boolean showPreviousNextPageButton) Sets the value of theshowPreviousNextPageButtonproperty.final voidsetTotalItemCount(int totalItemCount) Sets the value of thetotalItemCountproperty.final javafx.beans.property.BooleanPropertyDetermines if the control will show a selector UI for choosing different page sizes.final javafx.beans.property.BooleanPropertyA flag used to determine whether the control will display arrow buttons to go to the next or the previous page.final javafx.beans.property.IntegerPropertyThe total number of items (rows) displayed by the control that utilizes this pagination control for paging.Methods inherited from class javafx.scene.control.Control
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, createDefaultSkin, executeAccessibleAction, getBaselineOffset, getContextMenu, getCssMetaData, getInitialFocusTraversable, getSkin, getTooltip, isResizable, layoutChildren, queryAccessibleAttribute, setContextMenu, setSkin, setTooltip, skinProperty, tooltipPropertyMethods inherited from class javafx.scene.layout.Region
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, insetsProperty, isCacheShape, isCenterShape, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, snapToPixelProperty, widthPropertyMethods inherited from class javafx.scene.Parent
getChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setNeedsLayout, updateBoundsMethods inherited from class javafx.scene.Node
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, focusVisibleProperty, focusWithinProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, getViewOrder, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isFocusVisible, isFocusWithin, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, requestFocusTraversal, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setViewOrder, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visiblePropertyMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javafx.css.Styleable
getStyleableNode
-
Property Details
-
pageSizeSelectorLabel
public final javafx.beans.property.StringProperty pageSizeSelectorLabelPropertyThe text / label shown in front of the page size selector control.- See Also:
-
availablePageSizes
A list of available page sizes that will be shown by the page size selector.- See Also:
-
showPageSizeSelector
public final javafx.beans.property.BooleanProperty showPageSizeSelectorPropertyDetermines if the control will show a selector UI for choosing different page sizes.Can be set via CSS using the
-fx-show-page-size-selectorproperty. Valid values are:true,false. The default value istrue.- See Also:
-
sameWidthPageButtons
public final javafx.beans.property.BooleanProperty sameWidthPageButtonsPropertyA flag used to signal whether the individual page buttons will all have the same width or if their width can be different based on the page number that they are showing (e.g. the button for page "1" would be substantially less wide than the button for page "999").Can be set via CSS using the
-fx-same-width-page-buttonsproperty. Valid values are:true,false. The default value isfalse.- See Also:
-
showPreviousNextPageButton
public final javafx.beans.property.BooleanProperty showPreviousNextPageButtonPropertyA flag used to determine whether the control will display arrow buttons to go to the next or the previous page.Can be set via CSS using the
-fx-show-previous-next-page-buttonproperty. Valid values are:true,false. The default value istrue.- See Also:
-
messageLabelStrategy
public final javafx.beans.property.ObjectProperty<PagingControlBase.MessageLabelStrategy> messageLabelStrategyPropertyThe message label strategy controls whether the message label will appear in certain situations, for example, when there are no items currently in the view that is being controlled by these pagination controls.Can be set via CSS using the
-fx-message-label-strategyproperty. Valid values are:HIDE,SHOW_WHEN_NEEDED,ALWAYS_SHOW. The default value isALWAYS_SHOW.- See Also:
-
firstLastPageDisplayMode
public final javafx.beans.property.ObjectProperty<PagingControlBase.FirstLastPageDisplayMode> firstLastPageDisplayModePropertyControls how first and last page navigation is displayed by the paging control.Can be set via CSS using the
-fx-first-last-page-display-modeproperty. Valid values are:HIDE,SHOW_ARROW_BUTTONS,SHOW_PAGE_BUTTONS. The default value isSHOW_PAGE_BUTTONS.- See Also:
-
firstPageDivider
public final javafx.beans.property.ObjectProperty<javafx.scene.Node> firstPageDividerPropertyStores the node that will be placed between the regular page buttons and the page button that represents the "first" page. This is usually a label showing "...".- See Also:
-
lastPageDivider
public final javafx.beans.property.ObjectProperty<javafx.scene.Node> lastPageDividerPropertyStores the node that will be placed between the regular page buttons and the page button that represents the "last" page. This is usually a label showing "...".- See Also:
-
messageLabelProvider
public final javafx.beans.property.ObjectProperty<javafx.util.Callback<PagingControls, String>> messageLabelProviderPropertyA message label provider is used to customize the messages shown by the message label of this control, for example, "Showing items 11 to 20 of a total of 1000 items".- See Also:
-
totalItemCount
public final javafx.beans.property.IntegerProperty totalItemCountPropertyThe total number of items (rows) displayed by the control that utilizes this pagination control for paging.- See Also:
-
pageCount
public final javafx.beans.property.ReadOnlyIntegerProperty pageCountPropertyA read-only property that stores the number of pages that are required for the given number of items and the given page size.- See Also:
-
maxPageIndicatorsCount
public final javafx.beans.property.IntegerProperty maxPageIndicatorsCountPropertyThe maximum number of page indicators / buttons that will be shown at any time by this control.Can be set via CSS using the
-fx-max-page-indicators-countproperty. Valid values are positive integers. The default value is5.- See Also:
-
page
public final javafx.beans.property.IntegerProperty pagePropertyThe index of the currently showing page.- See Also:
-
pageSize
public final javafx.beans.property.IntegerProperty pageSizePropertyThe number of items shown per page of the control that is being controlled by the pagination control.- See Also:
-
alignment
public final javafx.beans.property.ObjectProperty<javafx.geometry.HPos> alignmentPropertyThe alignment property controls where in the view the paging buttons will appear: left, center, or right.Can be set via CSS using the
-fx-page-alignmentproperty. Valid values are:LEFT,CENTER,RIGHT. The default value isRIGHT.- See Also:
-
firstPageText
public final javafx.beans.property.StringProperty firstPageTextPropertyThe text that will be shown by the "first page" button.- See Also:
-
lastPageText
public final javafx.beans.property.StringProperty lastPageTextPropertyThe text that will be shown by the "last page" button.- See Also:
-
previousPageText
public final javafx.beans.property.StringProperty previousPageTextPropertyThe text that will be shown by the "previous page" button.- See Also:
-
nextPageText
public final javafx.beans.property.StringProperty nextPageTextPropertyThe text that will be shown by the "next page" button.- See Also:
-
-
Constructor Details
-
PagingControlBase
public PagingControlBase()
-
-
Method Details
-
getPageSizeSelectorLabel
Gets the value of thepageSizeSelectorLabelproperty.- Property description:
- The text / label shown in front of the page size selector control.
- Returns:
- the value of the
pageSizeSelectorLabelproperty - See Also:
-
pageSizeSelectorLabelProperty
public final javafx.beans.property.StringProperty pageSizeSelectorLabelProperty()The text / label shown in front of the page size selector control.- Returns:
- the label property for the page size selector
- See Also:
-
setPageSizeSelectorLabel
Sets the value of thepageSizeSelectorLabelproperty.- Property description:
- The text / label shown in front of the page size selector control.
- Parameters:
pageSizeSelectorLabel- the value for thepageSizeSelectorLabelproperty- See Also:
-
getAvailablePageSizes
Gets the value of theavailablePageSizesproperty.- Property description:
- A list of available page sizes that will be shown by the page size selector.
- Returns:
- the value of the
availablePageSizesproperty - See Also:
-
availablePageSizesProperty
A list of available page sizes that will be shown by the page size selector.- Returns:
- a list of available page sizes
- See Also:
-
setAvailablePageSizes
public final void setAvailablePageSizes(javafx.collections.ObservableList<Integer> availablePageSizes) Sets the value of theavailablePageSizesproperty.- Property description:
- A list of available page sizes that will be shown by the page size selector.
- Parameters:
availablePageSizes- the value for theavailablePageSizesproperty- See Also:
-
isShowPageSizeSelector
public final boolean isShowPageSizeSelector()Gets the value of theshowPageSizeSelectorproperty.- Property description:
- Determines if the control will show a selector UI for choosing different page sizes.
Can be set via CSS using the
-fx-show-page-size-selectorproperty. Valid values are:true,false. The default value istrue. - Returns:
- the value of the
showPageSizeSelectorproperty - See Also:
-
showPageSizeSelectorProperty
public final javafx.beans.property.BooleanProperty showPageSizeSelectorProperty()Determines if the control will show a selector UI for choosing different page sizes.Can be set via CSS using the
-fx-show-page-size-selectorproperty. Valid values are:true,false. The default value istrue.- Returns:
- a flag used to determine if the page size selector should be shown or not
- See Also:
-
setShowPageSizeSelector
public final void setShowPageSizeSelector(boolean showPageSizeSelector) Sets the value of theshowPageSizeSelectorproperty.- Property description:
- Determines if the control will show a selector UI for choosing different page sizes.
Can be set via CSS using the
-fx-show-page-size-selectorproperty. Valid values are:true,false. The default value istrue. - Parameters:
showPageSizeSelector- the value for theshowPageSizeSelectorproperty- See Also:
-
isSameWidthPageButtons
public final boolean isSameWidthPageButtons()Gets the value of thesameWidthPageButtonsproperty.- Property description:
- A flag used to signal whether the individual page buttons will all have the same width or if their
width can be different based on the page number that they are showing (e.g. the button for page "1" would
be substantially less wide than the button for page "999").
Can be set via CSS using the
-fx-same-width-page-buttonsproperty. Valid values are:true,false. The default value isfalse. - Returns:
- the value of the
sameWidthPageButtonsproperty - See Also:
-
sameWidthPageButtonsProperty
public final javafx.beans.property.BooleanProperty sameWidthPageButtonsProperty()A flag used to signal whether the individual page buttons will all have the same width or if their width can be different based on the page number that they are showing (e.g. the button for page "1" would be substantially less wide than the button for page "999").Can be set via CSS using the
-fx-same-width-page-buttonsproperty. Valid values are:true,false. The default value isfalse.- Returns:
- a flag to control the width of the page buttons
- See Also:
-
setSameWidthPageButtons
public final void setSameWidthPageButtons(boolean sameWidthPageButtons) Sets the value of thesameWidthPageButtonsproperty.- Property description:
- A flag used to signal whether the individual page buttons will all have the same width or if their
width can be different based on the page number that they are showing (e.g. the button for page "1" would
be substantially less wide than the button for page "999").
Can be set via CSS using the
-fx-same-width-page-buttonsproperty. Valid values are:true,false. The default value isfalse. - Parameters:
sameWidthPageButtons- the value for thesameWidthPageButtonsproperty- See Also:
-
isShowPreviousNextPageButton
public final boolean isShowPreviousNextPageButton()Gets the value of theshowPreviousNextPageButtonproperty.- Property description:
- A flag used to determine whether the control will display arrow buttons to
go to the next or the previous page.
Can be set via CSS using the
-fx-show-previous-next-page-buttonproperty. Valid values are:true,false. The default value istrue. - Returns:
- the value of the
showPreviousNextPageButtonproperty - See Also:
-
showPreviousNextPageButtonProperty
public final javafx.beans.property.BooleanProperty showPreviousNextPageButtonProperty()A flag used to determine whether the control will display arrow buttons to go to the next or the previous page.Can be set via CSS using the
-fx-show-previous-next-page-buttonproperty. Valid values are:true,false. The default value istrue.- Returns:
- a boolean property to control the visibility of the previous / next buttons
- See Also:
-
setShowPreviousNextPageButton
public final void setShowPreviousNextPageButton(boolean showPreviousNextPageButton) Sets the value of theshowPreviousNextPageButtonproperty.- Property description:
- A flag used to determine whether the control will display arrow buttons to
go to the next or the previous page.
Can be set via CSS using the
-fx-show-previous-next-page-buttonproperty. Valid values are:true,false. The default value istrue. - Parameters:
showPreviousNextPageButton- the value for theshowPreviousNextPageButtonproperty- See Also:
-
getMessageLabelStrategy
Gets the value of themessageLabelStrategyproperty.- Property description:
- The message label strategy controls whether the message label will appear in
certain situations, for example, when there are no items currently in the view
that is being controlled by these pagination controls.
Can be set via CSS using the
-fx-message-label-strategyproperty. Valid values are:HIDE,SHOW_WHEN_NEEDED,ALWAYS_SHOW. The default value isALWAYS_SHOW. - Returns:
- the value of the
messageLabelStrategyproperty - See Also:
-
messageLabelStrategyProperty
public final javafx.beans.property.ObjectProperty<PagingControlBase.MessageLabelStrategy> messageLabelStrategyProperty()The message label strategy controls whether the message label will appear in certain situations, for example, when there are no items currently in the view that is being controlled by these pagination controls.Can be set via CSS using the
-fx-message-label-strategyproperty. Valid values are:HIDE,SHOW_WHEN_NEEDED,ALWAYS_SHOW. The default value isALWAYS_SHOW.- Returns:
- the strategy used to show or hide the message label
- See Also:
-
setMessageLabelStrategy
public final void setMessageLabelStrategy(PagingControlBase.MessageLabelStrategy messageLabelStrategy) Sets the value of themessageLabelStrategyproperty.- Property description:
- The message label strategy controls whether the message label will appear in
certain situations, for example, when there are no items currently in the view
that is being controlled by these pagination controls.
Can be set via CSS using the
-fx-message-label-strategyproperty. Valid values are:HIDE,SHOW_WHEN_NEEDED,ALWAYS_SHOW. The default value isALWAYS_SHOW. - Parameters:
messageLabelStrategy- the value for themessageLabelStrategyproperty- See Also:
-
getFirstLastPageDisplayMode
Gets the value of thefirstLastPageDisplayModeproperty.- Property description:
- Controls how first and last page navigation is displayed by the paging control.
Can be set via CSS using the
-fx-first-last-page-display-modeproperty. Valid values are:HIDE,SHOW_ARROW_BUTTONS,SHOW_PAGE_BUTTONS. The default value isSHOW_PAGE_BUTTONS. - Returns:
- the value of the
firstLastPageDisplayModeproperty - See Also:
-
firstLastPageDisplayModeProperty
public final javafx.beans.property.ObjectProperty<PagingControlBase.FirstLastPageDisplayMode> firstLastPageDisplayModeProperty()Controls how first and last page navigation is displayed by the paging control.Can be set via CSS using the
-fx-first-last-page-display-modeproperty. Valid values are:HIDE,SHOW_ARROW_BUTTONS,SHOW_PAGE_BUTTONS. The default value isSHOW_PAGE_BUTTONS.- Returns:
- the display mode for first and last page navigation controls
- See Also:
-
setFirstLastPageDisplayMode
public final void setFirstLastPageDisplayMode(PagingControlBase.FirstLastPageDisplayMode firstLastPageDisplayMode) Sets the value of thefirstLastPageDisplayModeproperty.- Property description:
- Controls how first and last page navigation is displayed by the paging control.
Can be set via CSS using the
-fx-first-last-page-display-modeproperty. Valid values are:HIDE,SHOW_ARROW_BUTTONS,SHOW_PAGE_BUTTONS. The default value isSHOW_PAGE_BUTTONS. - Parameters:
firstLastPageDisplayMode- the value for thefirstLastPageDisplayModeproperty- See Also:
-
getFirstPageDivider
public final javafx.scene.Node getFirstPageDivider()Gets the value of thefirstPageDividerproperty.- Property description:
- Stores the node that will be placed between the regular page buttons and the page button that represents the "first" page. This is usually a label showing "...".
- Returns:
- the value of the
firstPageDividerproperty - See Also:
-
firstPageDividerProperty
public final javafx.beans.property.ObjectProperty<javafx.scene.Node> firstPageDividerProperty()Stores the node that will be placed between the regular page buttons and the page button that represents the "first" page. This is usually a label showing "...".- Returns:
- a node for separating the "first page" button, usually a label showing "..."
- See Also:
-
setFirstPageDivider
public final void setFirstPageDivider(javafx.scene.Node firstPageDivider) Sets the value of thefirstPageDividerproperty.- Property description:
- Stores the node that will be placed between the regular page buttons and the page button that represents the "first" page. This is usually a label showing "...".
- Parameters:
firstPageDivider- the value for thefirstPageDividerproperty- See Also:
-
getLastPageDivider
public final javafx.scene.Node getLastPageDivider()Gets the value of thelastPageDividerproperty.- Property description:
- Stores the node that will be placed between the regular page buttons and the page button that represents the "last" page. This is usually a label showing "...".
- Returns:
- the value of the
lastPageDividerproperty - See Also:
-
lastPageDividerProperty
public final javafx.beans.property.ObjectProperty<javafx.scene.Node> lastPageDividerProperty()Stores the node that will be placed between the regular page buttons and the page button that represents the "last" page. This is usually a label showing "...".- Returns:
- a node for separating the "last page" button, usually a label showing "..."
- See Also:
-
setLastPageDivider
public final void setLastPageDivider(javafx.scene.Node lastPageDivider) Sets the value of thelastPageDividerproperty.- Property description:
- Stores the node that will be placed between the regular page buttons and the page button that represents the "last" page. This is usually a label showing "...".
- Parameters:
lastPageDivider- the value for thelastPageDividerproperty- See Also:
-
getMessageLabelProvider
Gets the value of themessageLabelProviderproperty.- Property description:
- A message label provider is used to customize the messages shown by the message label of this control, for example, "Showing items 11 to 20 of a total of 1000 items".
- Returns:
- the value of the
messageLabelProviderproperty - See Also:
-
messageLabelProviderProperty
public final javafx.beans.property.ObjectProperty<javafx.util.Callback<PagingControls, String>> messageLabelProviderProperty()A message label provider is used to customize the messages shown by the message label of this control, for example, "Showing items 11 to 20 of a total of 1000 items".- Returns:
- the message label provider
- See Also:
-
setMessageLabelProvider
public final void setMessageLabelProvider(javafx.util.Callback<PagingControls, String> messageLabelProvider) Sets the value of themessageLabelProviderproperty.- Property description:
- A message label provider is used to customize the messages shown by the message label of this control, for example, "Showing items 11 to 20 of a total of 1000 items".
- Parameters:
messageLabelProvider- the value for themessageLabelProviderproperty- See Also:
-
firstPage
public void firstPage()Sets the page index to zero. -
lastPage
public void lastPage()Sets the page index to the page count minus one.- See Also:
-
nextPage
public void nextPage()Increments the page index.- See Also:
-
previousPage
public void previousPage()Decrements the page index.- See Also:
-
getTotalItemCount
public final int getTotalItemCount()Gets the value of thetotalItemCountproperty.- Property description:
- The total number of items (rows) displayed by the control that utilizes this pagination control for paging.
- Returns:
- the value of the
totalItemCountproperty - See Also:
-
totalItemCountProperty
public final javafx.beans.property.IntegerProperty totalItemCountProperty()The total number of items (rows) displayed by the control that utilizes this pagination control for paging.- Returns:
- the total number of items in the view
- See Also:
-
setTotalItemCount
public final void setTotalItemCount(int totalItemCount) Sets the value of thetotalItemCountproperty.- Property description:
- The total number of items (rows) displayed by the control that utilizes this pagination control for paging.
- Parameters:
totalItemCount- the value for thetotalItemCountproperty- See Also:
-
getPageCount
public final int getPageCount()Gets the value of thepageCountproperty.- Property description:
- A read-only property that stores the number of pages that are required for the given number of items and the given page size.
- Returns:
- the value of the
pageCountproperty - See Also:
-
pageCountProperty
public final javafx.beans.property.ReadOnlyIntegerProperty pageCountProperty()A read-only property that stores the number of pages that are required for the given number of items and the given page size.- Returns:
- a read-only integer property storing the number of required pages
- See Also:
-
getMaxPageIndicatorsCount
public final int getMaxPageIndicatorsCount()Gets the value of themaxPageIndicatorsCountproperty.- Property description:
- The maximum number of page indicators / buttons that will be shown at any time
by this control.
Can be set via CSS using the
-fx-max-page-indicators-countproperty. Valid values are positive integers. The default value is5. - Returns:
- the value of the
maxPageIndicatorsCountproperty - See Also:
-
maxPageIndicatorsCountProperty
public final javafx.beans.property.IntegerProperty maxPageIndicatorsCountProperty()The maximum number of page indicators / buttons that will be shown at any time by this control.Can be set via CSS using the
-fx-max-page-indicators-countproperty. Valid values are positive integers. The default value is5.- Returns:
- the number of page buttons shown by the control
- See Also:
-
setMaxPageIndicatorsCount
public final void setMaxPageIndicatorsCount(int maxPageIndicatorsCount) Sets the value of themaxPageIndicatorsCountproperty.- Property description:
- The maximum number of page indicators / buttons that will be shown at any time
by this control.
Can be set via CSS using the
-fx-max-page-indicators-countproperty. Valid values are positive integers. The default value is5. - Parameters:
maxPageIndicatorsCount- the value for themaxPageIndicatorsCountproperty- See Also:
-
getPage
public final int getPage()Gets the value of thepageproperty.- Property description:
- The index of the currently showing page.
- Returns:
- the value of the
pageproperty - See Also:
-
pageProperty
public final javafx.beans.property.IntegerProperty pageProperty()The index of the currently showing page.- Returns:
- the number of the currently showing page
- See Also:
-
setPage
public final void setPage(int page) Sets the value of thepageproperty.- Property description:
- The index of the currently showing page.
- Parameters:
page- the value for thepageproperty- See Also:
-
getPageSize
public final int getPageSize()Gets the value of thepageSizeproperty.- Property description:
- The number of items shown per page of the control that is being controlled by the pagination control.
- Returns:
- the value of the
pageSizeproperty - See Also:
-
pageSizeProperty
public final javafx.beans.property.IntegerProperty pageSizeProperty()The number of items shown per page of the control that is being controlled by the pagination control.- Returns:
- the number of items per page
- See Also:
-
setPageSize
public final void setPageSize(int pageSize) Sets the value of thepageSizeproperty.- Property description:
- The number of items shown per page of the control that is being controlled by the pagination control.
- Parameters:
pageSize- the value for thepageSizeproperty- See Also:
-
getAlignment
public final javafx.geometry.HPos getAlignment()Gets the value of thealignmentproperty.- Property description:
- The alignment property controls where in the view the paging buttons will appear: left,
center, or right.
Can be set via CSS using the
-fx-page-alignmentproperty. Valid values are:LEFT,CENTER,RIGHT. The default value isRIGHT. - Returns:
- the value of the
alignmentproperty - See Also:
-
alignmentProperty
public final javafx.beans.property.ObjectProperty<javafx.geometry.HPos> alignmentProperty()The alignment property controls where in the view the paging buttons will appear: left, center, or right.Can be set via CSS using the
-fx-page-alignmentproperty. Valid values are:LEFT,CENTER,RIGHT. The default value isRIGHT.- Returns:
- the alignment / the position of the paging buttons
- See Also:
-
setAlignment
public final void setAlignment(javafx.geometry.HPos alignment) Sets the value of thealignmentproperty.- Property description:
- The alignment property controls where in the view the paging buttons will appear: left,
center, or right.
Can be set via CSS using the
-fx-page-alignmentproperty. Valid values are:LEFT,CENTER,RIGHT. The default value isRIGHT. - Parameters:
alignment- the value for thealignmentproperty- See Also:
-
getFirstPageText
Gets the value of thefirstPageTextproperty.- Property description:
- The text that will be shown by the "first page" button.
- Returns:
- the value of the
firstPageTextproperty - See Also:
-
firstPageTextProperty
public final javafx.beans.property.StringProperty firstPageTextProperty()The text that will be shown by the "first page" button.- Returns:
- the text of the "first page" button
- See Also:
-
setFirstPageText
Sets the value of thefirstPageTextproperty.- Property description:
- The text that will be shown by the "first page" button.
- Parameters:
firstPageText- the value for thefirstPageTextproperty- See Also:
-
getLastPageText
Gets the value of thelastPageTextproperty.- Property description:
- The text that will be shown by the "last page" button.
- Returns:
- the value of the
lastPageTextproperty - See Also:
-
lastPageTextProperty
public final javafx.beans.property.StringProperty lastPageTextProperty()The text that will be shown by the "last page" button.- Returns:
- the text of the "last page" button
- See Also:
-
setLastPageText
Sets the value of thelastPageTextproperty.- Property description:
- The text that will be shown by the "last page" button.
- Parameters:
lastPageText- the value for thelastPageTextproperty- See Also:
-
getPreviousPageText
Gets the value of thepreviousPageTextproperty.- Property description:
- The text that will be shown by the "previous page" button.
- Returns:
- the value of the
previousPageTextproperty - See Also:
-
previousPageTextProperty
public final javafx.beans.property.StringProperty previousPageTextProperty()The text that will be shown by the "previous page" button.- Returns:
- the text of the "previous page" button
- See Also:
-
setPreviousPageText
Sets the value of thepreviousPageTextproperty.- Property description:
- The text that will be shown by the "previous page" button.
- Parameters:
previousPageText- the value for thepreviousPageTextproperty- See Also:
-
getNextPageText
Gets the value of thenextPageTextproperty.- Property description:
- The text that will be shown by the "next page" button.
- Returns:
- the value of the
nextPageTextproperty - See Also:
-
nextPageTextProperty
public final javafx.beans.property.StringProperty nextPageTextProperty()The text that will be shown by the "next page" button.- Returns:
- the text of the "next page" button
- See Also:
-
setNextPageText
Sets the value of thenextPageTextproperty.- Property description:
- The text that will be shown by the "next page" button.
- Parameters:
nextPageText- the value for thenextPageTextproperty- See Also:
-
getClassCssMetaData
Gets theCssMetaDataassociated with this class, which may include theCssMetaDataof its superclasses.- Returns:
- the
CssMetaData
-
getControlCssMetaData
- Overrides:
getControlCssMetaDatain classjavafx.scene.control.Control
-