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 javafx.scene.input.InputEvent
An event class used by the
PlusMinusSlider
to inform event
handlers about changes.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final javafx.event.EventType
<PlusMinusSlider.PlusMinusEvent> static final javafx.event.EventType
<PlusMinusSlider.PlusMinusEvent> 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
ConstructorsConstructorDescriptionPlusMinusEvent
(Object source, javafx.event.EventTarget target, javafx.event.EventType<? extends javafx.scene.input.InputEvent> eventType, double value) Constructs a new event object. -
Method Summary
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 Details
-
ANY
-
VALUE_CHANGED
An event type used when the value property (PlusMinusSlider.valueProperty()
) changes.
-
-
Constructor Details
-
PlusMinusEvent
public PlusMinusEvent(Object source, javafx.event.EventTarget target, javafx.event.EventType<? extends javafx.scene.input.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 Details
-
getValue
public double getValue()The value of thePlusMinusSlider
.- Returns:
- the value
-