Class PaginationV2Builder
- java.lang.Object
-
- ch.sahits.game.openpatrician.javafx.control.PaginationV2Builder
-
- All Implemented Interfaces:
javafx.util.Builder<PaginationV2>
public class PaginationV2Builder extends java.lang.Object implements javafx.util.Builder<PaginationV2>
Builder for the PaginationV2 control.- Author:
- Andi Hotz, (c) Sahits GmbH, 2013 Created on Sep 14, 2013
-
-
Field Summary
Fields Modifier and Type Field 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<Text>
text
private boolean
withPolygonShading
-
Constructor Summary
Constructors Modifier Constructor Description private
PaginationV2Builder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaginationV2Builder
backButtonLabel(java.lang.String backButtonLabel)
PaginationV2Builder
backButtonNode(javafx.scene.Node backButtonNode)
PaginationV2
build()
PaginationV2Builder
centeredFont(javafx.scene.text.Font font)
PaginationV2Builder
contentMaxHeight(double height)
Define the max width for the content.PaginationV2Builder
contentMaxHeight(javafx.beans.property.DoubleProperty height)
Define the max width for the content.PaginationV2Builder
contentMaxWidth(double width)
Define the max width for the content.PaginationV2Builder
contentMaxWidth(javafx.beans.property.DoubleProperty width)
Define the max width for the content.static PaginationV2Builder
create()
PaginationV2Builder
firstLastPageAction(javafx.event.EventHandler<javafx.scene.input.MouseEvent> firstLastPageAction)
PaginationV2Builder
headerFont(javafx.scene.text.Font font)
PaginationV2Builder
navigationLabelFont(javafx.scene.text.Font font)
PaginationV2Builder
nextButtonLabel(java.lang.String nextButtonLabel)
PaginationV2Builder
nextButtonNode(javafx.scene.Node nextButtonNode)
PaginationV2Builder
padding(javafx.geometry.Insets insets)
PaginationV2Builder
paragraphFont(javafx.scene.text.Font font)
PaginationV2Builder
text(Text text)
-
-
-
Field Detail
-
contentMaxWidth
private javafx.beans.property.DoubleProperty contentMaxWidth
-
contentMaxHeight
private javafx.beans.property.DoubleProperty contentMaxHeight
-
paddingLocal
private javafx.beans.property.ObjectProperty<javafx.geometry.Insets> paddingLocal
-
backButtonLabel
private javafx.beans.property.StringProperty backButtonLabel
-
nextButtonLabel
private javafx.beans.property.StringProperty nextButtonLabel
-
text
private javafx.beans.property.ObjectProperty<Text> text
-
navigationLabelFont
private javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> navigationLabelFont
-
headerFont
private javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> headerFont
-
centeredFont
private javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> centeredFont
-
paragraphFont
private javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.text.Font> paragraphFont
-
backButtonNode
private javafx.beans.property.ObjectProperty<javafx.scene.Node> backButtonNode
-
nextButtonNode
private javafx.beans.property.ObjectProperty<javafx.scene.Node> nextButtonNode
-
firstLastPageAction
private javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.scene.input.MouseEvent>> firstLastPageAction
-
withPolygonShading
private boolean withPolygonShading
-
-
Method Detail
-
create
public static PaginationV2Builder create()
-
contentMaxWidth
public PaginationV2Builder contentMaxWidth(double width)
Define the max width for the content.- Parameters:
width
- max width of the pagination container- Returns:
- this
-
contentMaxWidth
public PaginationV2Builder contentMaxWidth(javafx.beans.property.DoubleProperty width)
Define the max width for the content. The value of the property is taken as width- Parameters:
width
- of the pagination container- Returns:
- this
-
contentMaxHeight
public PaginationV2Builder contentMaxHeight(double height)
Define the max width for the content.- Parameters:
height
- max height of the pagination container- Returns:
- this
-
contentMaxHeight
public PaginationV2Builder contentMaxHeight(javafx.beans.property.DoubleProperty height)
Define the max width for the content. The value of the property is taken as width- Parameters:
height
- conent height of the pagination container- Returns:
- this
-
padding
public PaginationV2Builder padding(javafx.geometry.Insets insets)
-
backButtonLabel
public PaginationV2Builder backButtonLabel(java.lang.String backButtonLabel)
-
nextButtonLabel
public PaginationV2Builder nextButtonLabel(java.lang.String nextButtonLabel)
-
text
public PaginationV2Builder text(Text text)
-
navigationLabelFont
public PaginationV2Builder navigationLabelFont(javafx.scene.text.Font font)
-
headerFont
public PaginationV2Builder headerFont(javafx.scene.text.Font font)
-
paragraphFont
public PaginationV2Builder paragraphFont(javafx.scene.text.Font font)
-
centeredFont
public PaginationV2Builder centeredFont(javafx.scene.text.Font font)
-
backButtonNode
public PaginationV2Builder backButtonNode(javafx.scene.Node backButtonNode)
-
nextButtonNode
public PaginationV2Builder nextButtonNode(javafx.scene.Node nextButtonNode)
-
firstLastPageAction
public PaginationV2Builder firstLastPageAction(javafx.event.EventHandler<javafx.scene.input.MouseEvent> firstLastPageAction)
-
build
public PaginationV2 build()
- Specified by:
build
in interfacejavafx.util.Builder<PaginationV2>
-
-