public class PaginationV2
extends javafx.scene.control.Control
contentMaxWidth
and contentMaxHeight.
Furthermore this control allows you to define a node for the back and next action.
This is especially helpful in the case when applying a transformation on this control.
If the properties backButtonNode and nextButtonNode
are not set, the next and back action will be mapped on the labels.
The contents of this Pagination does not react on resizing the component. Instead the size
of the contents is controlled by the properties contentMaxHeightProperty() and
contentMaxWidthProperty(). However the control will resize itself by expanding to the
right and the bottom. To avoid this pack the Pagination into a group and set its managable flag
to false.
| Type | Property and Description |
|---|---|
javafx.beans.property.ReadOnlyStringProperty |
backButtonLabel
Property defining the label of the back button.
|
javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> |
centeredFont |
javafx.beans.property.ReadOnlyDoubleProperty |
contentMaxHeight
Retrieve the maximal height of the content
|
javafx.beans.property.ReadOnlyDoubleProperty |
contentMaxWidth
Property containing the maximal width of the content.
|
javafx.beans.property.ReadOnlyObjectProperty<javafx.event.EventHandler<javafx.scene.input.MouseEvent>> |
firstLastPageAction |
javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> |
headerFont |
javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> |
navigationLabelFont |
javafx.beans.property.ReadOnlyStringProperty |
nextButtonLabel
Property defining the label of the next button.
|
javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Insets> |
paddingLocal |
javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> |
paragraphFont |
javafx.beans.property.ReadOnlyObjectProperty<ch.sahits.game.openpatrician.util.model.Text> |
text
Property containing the text content of this
control.
|
contextMenuProperty, heightProperty, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, prefHeightProperty, prefWidthProperty, skinClassNameProperty, skinProperty, tooltipProperty, widthPropertyimpl_traversalEngineProperty, needsLayoutPropertyblendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, impl_showMnemonicsProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParentTransformProperty, localToSceneTransformProperty, managedProperty, mouseTransparentProperty, 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, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty| Modifier and Type | Field and Description |
|---|---|
private javafx.beans.property.StringProperty |
backButtonLabel |
private javafx.beans.property.ObjectProperty<javafx.scene.Node> |
backButtonNode |
private javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> |
centeredFont |
private javafx.beans.property.DoubleProperty |
contentMaxHeight |
private javafx.beans.property.DoubleProperty |
contentMaxWidth |
private javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.scene.input.MouseEvent>> |
firstLastPageAction |
private javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> |
headerFont |
private javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> |
navigationLabelFont |
private javafx.beans.property.StringProperty |
nextButtonLabel |
private javafx.beans.property.ObjectProperty<javafx.scene.Node> |
nextButtonNode |
private javafx.beans.property.ObjectProperty<javafx.geometry.Insets> |
paddingLocal |
private javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> |
paragraphFont |
private javafx.beans.property.ObjectProperty<ch.sahits.game.openpatrician.util.model.Text> |
text |
| Constructor and Description |
|---|
PaginationV2(javafx.beans.property.StringProperty backButtonLabel,
javafx.beans.property.StringProperty nextButtonLabel,
javafx.beans.property.ObjectProperty<javafx.scene.Node> backButtonNode,
javafx.beans.property.ObjectProperty<javafx.scene.Node> nextButtonNode,
javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.scene.input.MouseEvent>> firstLastPageAction,
javafx.beans.property.ObjectProperty<ch.sahits.game.openpatrician.util.model.Text> text,
javafx.beans.property.DoubleProperty contentMaxWidth,
javafx.beans.property.DoubleProperty contentMaxHeight,
javafx.beans.property.ObjectProperty<javafx.geometry.Insets> paddingLocal,
javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> navigationLabelFont,
javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> headerFont,
javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> paragraphFont,
javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> centeredFont) |
| Modifier and Type | Method and Description |
|---|---|
javafx.beans.property.ReadOnlyStringProperty |
backButtonLabelProperty()
Property defining the label of the back button.
|
javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> |
centeredFontProperty() |
javafx.beans.property.ReadOnlyDoubleProperty |
contentMaxHeightProperty()
Retrieve the maximal height of the content
|
javafx.beans.property.ReadOnlyDoubleProperty |
contentMaxWidthProperty()
Property containing the maximal width of the content.
|
javafx.beans.property.ReadOnlyObjectProperty<javafx.event.EventHandler<javafx.scene.input.MouseEvent>> |
firstLastPageActionProperty() |
String |
getBackButtonLabel()
Gets the value of the property backButtonLabel.
|
javafx.scene.Node |
getBackButtonNode()
Retrieve the node definition to be used for the back button.
|
javafx.scene.text.Font |
getCenteredFont()
Gets the value of the property centeredFont.
|
double |
getContentMaxHeight()
Gets the value of the property contentMaxHeight.
|
double |
getContentMaxWidth()
Gets the value of the property contentMaxWidth.
|
javafx.event.EventHandler<javafx.scene.input.MouseEvent> |
getFirstLastPageAction()
Gets the value of the property firstLastPageAction.
|
javafx.scene.text.Font |
getHeaderFont()
Gets the value of the property headerFont.
|
javafx.scene.text.Font |
getNavigationLabelFont()
Gets the value of the property navigationLabelFont.
|
String |
getNextButtonLabel()
Gets the value of the property nextButtonLabel.
|
javafx.scene.Node |
getNextButtonNode()
Retrieve the node definition to be used for the next button.
|
javafx.geometry.Insets |
getPaddingLocal()
Gets the value of the property paddingLocal.
|
javafx.scene.text.Font |
getParagraphFont()
Gets the value of the property paragraphFont.
|
ch.sahits.game.openpatrician.util.model.Text |
getText()
Gets the value of the property text.
|
protected String |
getUserAgentStylesheet() |
javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> |
headerFontProperty() |
javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> |
navigationLabelFontProperty() |
javafx.beans.property.ReadOnlyStringProperty |
nextButtonLabelProperty()
Property defining the label of the next button.
|
javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Insets> |
paddingLocalProperty() |
javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> |
paragraphFontProperty() |
javafx.beans.property.ReadOnlyObjectProperty<ch.sahits.game.openpatrician.util.model.Text> |
textProperty()
Property containing the text content of this
control.
|
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, getBaselineOffset, getContextMenu, getHeight, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getPrefHeight, getPrefWidth, getSkin, getTooltip, getWidth, heightProperty, impl_computeContains, impl_computeLayoutBounds, impl_CSS_STYLEABLES, impl_cssGetFocusTraversableInitialValue, impl_getStyleableProperties, impl_notifyLayoutBoundsChanged, impl_processCSS, intersects, isResizable, layoutChildren, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, setContextMenu, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setPrefHeight, setPrefSize, setPrefWidth, setSkin, setSkinClassName, setTooltip, setWidth, skinClassNameProperty, skinProperty, tooltipProperty, widthPropertygetChildren, getChildrenUnmodifiable, getImpl_traversalEngine, getManagedChildren, getStylesheets, impl_computeGeomBounds, impl_createPGNode, impl_cssResetInitialValues, impl_geomChanged, impl_getAllParentStylesheets, impl_pickNodeLocal, impl_pickNodeLocal, impl_processMXNode, impl_traversalEngineProperty, impl_updatePG, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, setImpl_traversalEngine, setNeedsLayoutaddEventFilter, addEventHandler, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, contains, contains, containsBounds, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, 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, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getUserData, hasProperties, hoverProperty, idProperty, impl_clearDirty, impl_createStyleHelper, impl_cssGetCursorInitialValue, impl_getLeafTransform, impl_getPGNode, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getPseudoClassState, impl_getStyleable, impl_getStyleHelper, impl_getStyleMap, impl_hasTransforms, impl_intersects, impl_isDirty, impl_isDirtyEmpty, impl_isShowMnemonics, impl_isTreeVisible, impl_layoutBoundsChanged, impl_markDirty, impl_pickNode, impl_pickNode, impl_pseudoClassStateChanged, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPGNode, impl_transformsChanged, impl_traverse, inputMethodRequestsProperty, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToSceneTransformProperty, lookupAll, managedProperty, mouseTransparentProperty, 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, pickOnBoundsProperty, pressedProperty, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, 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, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, visiblePropertyprivate final javafx.beans.property.StringProperty backButtonLabel
private final javafx.beans.property.StringProperty nextButtonLabel
private final javafx.beans.property.ObjectProperty<javafx.scene.Node> backButtonNode
private final javafx.beans.property.ObjectProperty<javafx.scene.Node> nextButtonNode
private final javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.scene.input.MouseEvent>> firstLastPageAction
private final javafx.beans.property.ObjectProperty<ch.sahits.game.openpatrician.util.model.Text> text
private final javafx.beans.property.DoubleProperty contentMaxWidth
private final javafx.beans.property.DoubleProperty contentMaxHeight
private final javafx.beans.property.ObjectProperty<javafx.geometry.Insets> paddingLocal
private final javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> navigationLabelFont
private final javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> headerFont
private final javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> paragraphFont
private final javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> centeredFont
public PaginationV2(javafx.beans.property.StringProperty backButtonLabel,
javafx.beans.property.StringProperty nextButtonLabel,
javafx.beans.property.ObjectProperty<javafx.scene.Node> backButtonNode,
javafx.beans.property.ObjectProperty<javafx.scene.Node> nextButtonNode,
javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.scene.input.MouseEvent>> firstLastPageAction,
javafx.beans.property.ObjectProperty<ch.sahits.game.openpatrician.util.model.Text> text,
javafx.beans.property.DoubleProperty contentMaxWidth,
javafx.beans.property.DoubleProperty contentMaxHeight,
javafx.beans.property.ObjectProperty<javafx.geometry.Insets> paddingLocal,
javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> navigationLabelFont,
javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> headerFont,
javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> paragraphFont,
javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> centeredFont)
protected String getUserAgentStylesheet()
getUserAgentStylesheet in class javafx.scene.control.Controlpublic double getContentMaxHeight()
public javafx.beans.property.ReadOnlyDoubleProperty contentMaxHeightProperty()
public double getContentMaxWidth()
public javafx.beans.property.ReadOnlyDoubleProperty contentMaxWidthProperty()
public ch.sahits.game.openpatrician.util.model.Text getText()
public javafx.beans.property.ReadOnlyObjectProperty<ch.sahits.game.openpatrician.util.model.Text> textProperty()
public String getNextButtonLabel()
public javafx.beans.property.ReadOnlyStringProperty nextButtonLabelProperty()
public String getBackButtonLabel()
public javafx.beans.property.ReadOnlyStringProperty backButtonLabelProperty()
public final javafx.scene.Node getBackButtonNode()
public javafx.geometry.Insets getPaddingLocal()
public javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Insets> paddingLocalProperty()
public final javafx.scene.Node getNextButtonNode()
public javafx.beans.property.ReadOnlyObjectProperty<javafx.event.EventHandler<javafx.scene.input.MouseEvent>> firstLastPageActionProperty()
public javafx.event.EventHandler<javafx.scene.input.MouseEvent> getFirstLastPageAction()
public javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> navigationLabelFontProperty()
public javafx.scene.text.Font getNavigationLabelFont()
public javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> headerFontProperty()
public javafx.scene.text.Font getHeaderFont()
public javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> centeredFontProperty()
public javafx.scene.text.Font getCenteredFont()
public javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> paragraphFontProperty()
public javafx.scene.text.Font getParagraphFont()
Copyright © 2011-2015 Sahits GmbH. All Rights Reserved.