- java.lang.Object
-
- java.util.EventObject
-
- javafx.event.Event
-
- javafx.scene.input.InputEvent
-
- org.controlsfx.control.PlusMinusSlider.PlusMinusEvent
-
- All Implemented Interfaces:
Serializable
,Cloneable
- Enclosing class:
- PlusMinusSlider
public static class PlusMinusSlider.PlusMinusEvent extends InputEvent
An event class used by thePlusMinusSlider
to inform event handlers about changes.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static EventType<PlusMinusSlider.PlusMinusEvent>
ANY
static EventType<PlusMinusSlider.PlusMinusEvent>
VALUE_CHANGED
An event type used when the value property (PlusMinusSlider.valueProperty()
) changes.-
Fields inherited from class javafx.event.Event
consumed, eventType, NULL_SOURCE_TARGET, target
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description PlusMinusEvent(Object source, EventTarget target, EventType<? extends InputEvent> eventType, double value)
Constructs a new event object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getValue()
The value of thePlusMinusSlider
.-
Methods inherited from class javafx.scene.input.InputEvent
getEventType
-
Methods inherited from class javafx.event.Event
clone, consume, copyFor, fireEvent, getTarget, isConsumed
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Field Detail
-
ANY
public static final EventType<PlusMinusSlider.PlusMinusEvent> ANY
-
VALUE_CHANGED
public static final EventType<PlusMinusSlider.PlusMinusEvent> VALUE_CHANGED
An event type used when the value property (PlusMinusSlider.valueProperty()
) changes.
-
-
Constructor Detail
-
PlusMinusEvent
public PlusMinusEvent(Object source, EventTarget target, EventType<? extends InputEvent> eventType, double value)
Constructs a new event object.- Parameters:
source
- the source of the event (always thePlusMinusSlider
)target
- the target of the event (always thePlusMinusSlider
)eventType
- the type of the event (e.g.VALUE_CHANGED
)value
- the actual current value of the adjuster
-
-
Method Detail
-
getValue
public double getValue()
The value of thePlusMinusSlider
.- Returns:
- the value
-
-