javafx.css.Styleable, javafx.event.EventTarget, javafx.scene.control.Skinnablepublic final class DoubleSpinner
extends javafx.scene.control.Spinner<java.lang.Double>
Spinner for Doubles.Spinner| Constructor | Description |
|---|---|
DoubleSpinner() |
Creates a new spinner.
|
DoubleSpinner(double min,
double max) |
Creates a new spinner with the given minimum and maximum.
|
DoubleSpinner(double min,
double max,
double initialValue) |
Creates a new spinner with the given minimum, maximum, and initial value.
|
DoubleSpinner(double min,
double max,
double initialValue,
double stepSize) |
Creates a new spinner with the given minimum, maximum, initial value, and step size.
|
| Modifier and Type | Method | Description |
|---|---|---|
double |
getMax() |
Returns the maximum allowable value of this spinner.
|
double |
getMin() |
Returns the minimum allowable value of this spinner.
|
double |
getStepSize() |
Returns the step size of this spinner.
|
boolean |
isWrapAround() |
Checks whether the value of this spinner wraps around on reaching its allowable minimum or maximum value.
|
javafx.beans.property.DoubleProperty |
maxProperty() |
Returns the property containing the maximum allowable value of this spinner.
|
javafx.beans.property.DoubleProperty |
minProperty() |
Returns the property containing the minimum allowable value of this spinner.
|
void |
setMax(double max) |
Sets the maximum allowable value of this spinner.
|
void |
setMin(double min) |
Sets the minimum allowable value of this spinner.
|
void |
setStepSize(double stepSize) |
Sets the step size of this spinner.
|
void |
setValue(double value) |
Sets the value of this spinner.
|
void |
setWrapAround(boolean wrapAround) |
Sets whether the value of this spinner wraps around on reaching its allowable minimum or maximum value.
|
javafx.beans.property.DoubleProperty |
stepSizeProperty() |
Returns the property containing the step size of this spinner.
|
javafx.beans.property.BooleanProperty |
wrapAroundProperty() |
Returns the property containing whether the value of this spinner wraps around on reaching its allowable minimum or maximum value.
|
javafx.beans.property.ObjectProperty<java.lang.Double> |
writableValueProperty() |
Returns the writable property containing the value of this spinner.
|
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, getBaselineOffset, getClassCssMetaData, getContextMenu, getControlCssMetaData, getCssMetaData, getInitialFocusTraversable, getSkin, getTooltip, isResizable, layoutChildren, setContextMenu, setSkin, setTooltip, skinProperty, tooltipPropertyaccessibleHelpProperty, 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, 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, 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, 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, visiblePropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setNeedsLayout, updateBoundsbackgroundProperty, 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, widthPropertycancelEdit, commitValue, createDefaultSkin, decrement, decrement, editableProperty, editorProperty, executeAccessibleAction, getEditor, getPromptText, getValue, getValueFactory, increment, increment, isEditable, promptTextProperty, queryAccessibleAttribute, setEditable, setPromptText, setValueFactory, valueFactoryProperty, valuePropertypublic DoubleSpinner()
public DoubleSpinner(double min,
double max)
java.lang.IllegalArgumentException - if max < minpublic DoubleSpinner(double min,
double max,
double initialValue)
java.lang.IllegalArgumentException - if max < minjava.lang.IllegalArgumentException - if initialValue < minjava.lang.IllegalArgumentException - if initialValue > maxpublic DoubleSpinner(double min,
double max,
double initialValue,
double stepSize)
java.lang.IllegalArgumentException - if max < minjava.lang.IllegalArgumentException - if initialValue < minjava.lang.IllegalArgumentException - if initialValue > maxjava.lang.IllegalArgumentException - if stepSize ≤ 0public double getMax()
public double getMin()
public double getStepSize()
public boolean isWrapAround()
public javafx.beans.property.DoubleProperty maxProperty()
public javafx.beans.property.DoubleProperty minProperty()
public void setMax(double max)
java.lang.IllegalArgumentException - if max < minpublic void setMin(double min)
java.lang.IllegalArgumentException - if min > maxpublic void setStepSize(double stepSize)
java.lang.IllegalArgumentException - if stepSize ≤ 0public void setValue(double value)
java.lang.IllegalArgumentException - if value < minjava.lang.IllegalArgumentException - if value > maxpublic void setWrapAround(boolean wrapAround)
public javafx.beans.property.DoubleProperty stepSizeProperty()
public javafx.beans.property.BooleanProperty wrapAroundProperty()
public final javafx.beans.property.ObjectProperty<java.lang.Double> writableValueProperty()
Spinner.valueProperty()