public class PaginationSkinV2 extends javafx.scene.control.SkinBase<PaginationV2>
| Modifier and Type | Class and Description |
|---|---|
private class |
PaginationSkinV2.BackButtonEventHandler
Event handler for the back button.
|
private class |
PaginationSkinV2.NextButtonEventHanlder
Event handler for the next button.
|
| Modifier and Type | Field and Description |
|---|---|
private javafx.event.EventHandler<javafx.scene.input.MouseEvent> |
backButtonEventHandler |
private javafx.beans.property.BooleanProperty |
backButtonVisibility |
private javafx.scene.control.Label |
backLbl |
private javafx.scene.layout.VBox |
contentContainer |
private javafx.beans.property.DoubleProperty |
contentHeight |
private javafx.beans.property.DoubleProperty |
contentWidth |
private PaginationV2 |
control |
private int |
currentPage |
private static double |
DROP_SHADOW_PADDING |
private javafx.event.EventHandler<javafx.scene.input.MouseEvent> |
nextButtonEventHandler |
private javafx.beans.property.BooleanProperty |
nextButtonVisibility |
private javafx.scene.control.Label |
nextLbl |
private List<Page> |
pages |
| Constructor and Description |
|---|
PaginationSkinV2(PaginationV2 control) |
| Modifier and Type | Method and Description |
|---|---|
private double |
calculateContentInitialHeigth()
Calculate the initial height of the content without content.
|
private void |
clearContents()
Clear the current contents.
|
private double |
getContentWidth() |
private void |
initialalizeNewText(ch.sahits.game.openpatrician.util.model.Text text)
Initialize new text.
|
private void |
splitTextToPages(ch.sahits.game.openpatrician.util.model.Text text)
Split up the text into lines and pages, that can be displayed.
|
private void |
updateDisplay()
Refresh the content to be displayed on the current page.
|
computeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, consumeMouseEvents, dispose, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutChildren, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapSize, snapSpaceprivate static final double DROP_SHADOW_PADDING
private final javafx.scene.control.Label backLbl
private final javafx.scene.control.Label nextLbl
private final javafx.scene.layout.VBox contentContainer
private int currentPage
private final javafx.beans.property.DoubleProperty contentHeight
private final javafx.beans.property.DoubleProperty contentWidth
private final javafx.beans.property.BooleanProperty backButtonVisibility
private final javafx.beans.property.BooleanProperty nextButtonVisibility
private final javafx.event.EventHandler<javafx.scene.input.MouseEvent> backButtonEventHandler
private final javafx.event.EventHandler<javafx.scene.input.MouseEvent> nextButtonEventHandler
private final PaginationV2 control
public PaginationSkinV2(PaginationV2 control)
private void updateDisplay()
private void clearContents()
private void splitTextToPages(ch.sahits.game.openpatrician.util.model.Text text)
text - private double getContentWidth()
private double calculateContentInitialHeigth()
private void initialalizeNewText(ch.sahits.game.openpatrician.util.model.Text text)
text - Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.