Class OpenPatricianSpinnerSkin
- java.lang.Object
-
- javafx.scene.control.SkinBase<OpenPatricianSpinner>
-
- ch.sahits.game.openpatrician.javafx.control.skin.OpenPatricianSpinnerSkin
-
- All Implemented Interfaces:
javafx.scene.control.Skin<OpenPatricianSpinner>
public class OpenPatricianSpinnerSkin extends javafx.scene.control.SkinBase<OpenPatricianSpinner>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
OpenPatricianSpinnerSkin.TimeScheduledChangeDown
Timed task for repeated executions on the down dail.private class
OpenPatricianSpinnerSkin.TimeScheduledChangeUp
Timed task for repeated executions on the up dail.private class
OpenPatricianSpinnerSkin.TimeScheduledInitialDownChange
Task that is scheduled on the down dail.private class
OpenPatricianSpinnerSkin.TimeScheduledInitialUpChange
Task that is scheduled on the up dail.
-
Field Summary
Fields Modifier and Type Field Description private double
additionalWidth
private javafx.scene.image.ImageView
imgViewDown
private javafx.scene.image.ImageView
imgViewPlank
private javafx.scene.image.ImageView
imgViewUp
private TextSizingUtility
sizing
private OpenPatricianSpinner
spinner
private javafx.scene.control.TextField
textField
private java.util.Timer
timer
-
Constructor Summary
Constructors Constructor Description OpenPatricianSpinnerSkin(OpenPatricianSpinner spinner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
calculateNewDimension(javafx.scene.text.Font font)
private boolean
isNumeticalOptions()
private void
selectNextInList(OpenPatricianSpinner spinner)
private void
selectPreviousInList(OpenPatricianSpinner spinner)
private void
updateDisplayCurrentSelectedValue()
-
Methods inherited from class javafx.scene.control.SkinBase
computeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, consumeMouseEvents, dispose, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutChildren, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, registerChangeListener, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners
-
-
-
-
Field Detail
-
spinner
private final OpenPatricianSpinner spinner
-
sizing
private TextSizingUtility sizing
-
textField
private final javafx.scene.control.TextField textField
-
imgViewPlank
private javafx.scene.image.ImageView imgViewPlank
-
additionalWidth
private final double additionalWidth
-
timer
private java.util.Timer timer
-
imgViewUp
private final javafx.scene.image.ImageView imgViewUp
-
imgViewDown
private final javafx.scene.image.ImageView imgViewDown
-
-
Constructor Detail
-
OpenPatricianSpinnerSkin
public OpenPatricianSpinnerSkin(OpenPatricianSpinner spinner)
-
-
Method Detail
-
updateDisplayCurrentSelectedValue
private void updateDisplayCurrentSelectedValue()
-
isNumeticalOptions
private boolean isNumeticalOptions()
-
selectPreviousInList
private void selectPreviousInList(OpenPatricianSpinner spinner)
-
selectNextInList
private void selectNextInList(OpenPatricianSpinner spinner)
-
calculateNewDimension
private void calculateNewDimension(javafx.scene.text.Font font)
-
-