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
An event class used by the
PlusMinusSlider to inform event
handlers about changes.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EventType<PlusMinusSlider.PlusMinusEvent>static final 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, targetFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionPlusMinusEvent(Object source, EventTarget target, EventType<? extends InputEvent> eventType, double value) Constructs a new event object. -
Method Summary
Methods inherited from class javafx.scene.input.InputEvent
getEventTypeMethods inherited from class javafx.event.Event
clone, consume, copyFor, fireEvent, getTarget, isConsumedMethods 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, 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 Details
-
getValue
public double getValue()The value of thePlusMinusSlider.- Returns:
- the value
-