| Modifier and Type | Class and Description |
|---|---|
| public static class | PlusMinusSlider.
An event class used by the |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final PseudoClass | |
| private ObjectProperty | |
| private ObjectProperty | |
| private ReadOnlyDoubleWrapper | |
| private static final PseudoClass |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Skin | createDefaultSkin()
Overrides javafx. Create a new instance of the default skin for this control. |
| public static List | Returns: The CssMetaData associated with this class, which may include the CssMetaData of its super classes.Hides javafx. Gets the |
| public List | getControlCssMetaData()
Overrides javafx. Gets the unmodifiable list of the control's CSS-styleable properties. |
| public final EventHandler | Returns: An EventHandler.Returns the event handler that will be notified when the adjuster's value changes. |
| public final Orientation | Returns: the current orientation of the controlReturns the value of the orientation property. |
| public String | getUserAgentStylesheet()
Overrides javafx. An implementation may specify its own user-agent styles for this Region, and its children, by overriding this method. |
| public final double | |
| public final ObjectProperty | Returns: the value change event handler propertyStores the event handler that will be informed when the adjuster's value changes. |
| public final ObjectProperty | Returns: the orientation propertyReturns the stylable object property used for storing the orientation of the adjuster control. |
| public final void | setOnValueChanged(EventHandler<PlusMinusSlider.
the event handler valueSets an event handler that will receive plus minus events when the user moves the adjuster's thumb. |
| public final void | setOrientation(Orientation
the new orientation (horizontal, vertical). value)Sets the value of the orientation property. |
| public final ReadOnlyDoubleProperty |
| DEFAULT_STYLE_CLASS | back to summary |
|---|---|
| private static final String DEFAULT_STYLE_CLASS | |
| HORIZONTAL_PSEUDOCLASS_STATE | back to summary |
|---|---|
| private static final PseudoClass HORIZONTAL_PSEUDOCLASS_STATE | |
| onValueChanged | back to summary |
|---|---|
| private ObjectProperty<EventHandler<PlusMinusSlider. | |
| orientation | back to summary |
|---|---|
| private ObjectProperty<Orientation> orientation | |
| value | back to summary |
|---|---|
| private ReadOnlyDoubleWrapper value | |
| VERTICAL_PSEUDOCLASS_STATE | back to summary |
|---|---|
| private static final PseudoClass VERTICAL_PSEUDOCLASS_STATE | |
| PlusMinusSlider | back to summary |
|---|---|
| public PlusMinusSlider() Constructs a new adjuster control with a default horizontal orientation. | |
| createDefaultSkin | back to summary |
|---|---|
| protected Skin Overrides javafx. Doc from javafx. Create a new instance of the default skin for this control. This is called to create a skin for the control if
no skin is provided via CSS
| |
| getClassCssMetaData | back to summary |
|---|---|
| public static List Hides javafx. Doc from javafx. Gets the
| |
| getControlCssMetaData | back to summary |
|---|---|
| public List Overrides javafx. Doc from javafx. Gets the unmodifiable list of the control's CSS-styleable properties.
| |
| getOnValueChanged | back to summary |
|---|---|
| public final EventHandler Returns the event handler that will be notified when the adjuster's value changes.
| |
| getOrientation | back to summary |
|---|---|
| public final Orientation getOrientation() Returns the value of the orientation property.
| |
| getUserAgentStylesheet | back to summary |
|---|---|
| public String getUserAgentStylesheet() Overrides javafx. Doc from javafx. An implementation may specify its own user-agent styles for this Region, and its children, by overriding this method. These styles are used in addition to whatever user-agent stylesheets are in use. This provides a mechanism for third parties to introduce styles for custom controls. The URL is a hierarchical URI of the form [scheme:][//authority][path]. If the URL does not have a [scheme:] component, the URL is considered to be the [path] component only. Any leading '/' character of the [path] is ignored and the [path] is treated as a path relative to the root of the application's classpath. Subclasses overriding this method should not assume any particular implementation approach as to the number and frequency with which it is called. For this reason, attempting any kind of dynamic implementation (i.e. returning different user agent stylesheet values) based on some state change is highly discouraged, as there is no guarantee when, or even if, this method will be called. Some JavaFX CSS implementations may choose to cache this response for an indefinite period of time, and therefore there should be no expectation around when this method is called.
For additional information about using CSS with the scene graph,
see the CSS Reference Guide.
| |
| getValue | back to summary |
|---|---|
| public final double getValue() Returns the value of the value property.
| |
| onValueChangedProperty | back to summary |
|---|---|
| public final ObjectProperty Stores the event handler that will be informed when the adjuster's value changes.
| |
| orientationProperty | back to summary |
|---|---|
| public final ObjectProperty Returns the stylable object property used for storing the orientation of the adjuster control. The CSS property "-fx-orientation" can be used to initialize this value.
| |
| setOnValueChanged | back to summary |
|---|---|
| public final void setOnValueChanged(EventHandler<PlusMinusSlider. Sets an event handler that will receive plus minus events when the user moves the adjuster's thumb.
| |
| setOrientation | back to summary |
|---|---|
| public final void setOrientation(Orientation value) Sets the value of the orientation property.
| |
| valueProperty | back to summary |
|---|---|
| public final ReadOnlyDoubleProperty valueProperty() Returns the value property of the adjuster. The value is always between -1 and +1.
| |
PlusMinusSlider to inform event
handlers about changes.
| Modifier and Type | Field and Description |
|---|---|
| public static final EventType | |
| private static final long | |
| private double | |
| public static final EventType | VALUE_CHANGED
An event type used when the value property (
|
| Access | Constructor and Description |
|---|---|
| public | PlusMinusEvent(Object
the source of the event (always the
source, EventTarget PlusMinusSlider)the target of the event (always the
target, EventType<? extends InputEvent> PlusMinusSlider)the type of the event (e.g. eventType, double VALUE_CHANGED)the actual current value of the adjuster value)Constructs a new event object. |
| Modifier and Type | Method and Description |
|---|---|
| public double |
| ANY | back to summary |
|---|---|
| public static final EventType<PlusMinusSlider. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| value | back to summary |
|---|---|
| private double value | |
| VALUE_CHANGED | back to summary |
|---|---|
| public static final EventType<PlusMinusSlider. An event type used when the value property (
| |
| PlusMinusEvent | back to summary |
|---|---|
| public PlusMinusEvent(Object source, EventTarget target, EventType<? extends InputEvent> eventType, double value) Constructs a new event object.
| |
| getValue | back to summary |
|---|---|
| public double getValue() The value of the
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final CssMetaData | |
| private static final List |
| Access | Constructor and Description |
|---|---|
| private |
| ORIENTATION | back to summary |
|---|---|
| private static final CssMetaData<PlusMinusSlider, Orientation> ORIENTATION | |
| STYLEABLES | back to summary |
|---|---|
| private static final List<CssMetaData<? extends Styleable, ?>> STYLEABLES | |
| StyleableProperties | back to summary |
|---|---|
| private StyleableProperties() | |