java.lang.Object
java.util.EventObject
javafx.event.Event
javafx.css.TransitionEvent
- All Implemented Interfaces:
- Serializable,- Cloneable
An event that signals the creation, beginning, completion and cancellation of implicit CSS transitions.
 
 Note that this event is not raised for explicit transitions that are created using the Transition class.
- Since:
- 23
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final EventType<TransitionEvent> Common supertype for allTransitionEventtypes.static final EventType<TransitionEvent> This event occurs when a running transition was cancelled before it has reached the end of its active period.static final EventType<TransitionEvent> This event occurs when a running transition has reached the end of its active period.static final EventType<TransitionEvent> This event occurs when a transition has been created and added to the list of running transitions of aNode.static final EventType<TransitionEvent> This event occurs when a running transition enters its active period, which happens at the end of the delay phase.Fields declared in class javafx.event.Eventconsumed, eventType, NULL_SOURCE_TARGET, targetFields declared in class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionTransitionEvent(EventType<? extends Event> eventType, StyleableProperty<?> property, Duration elapsedTime) Creates a new instance of theTransitionEventclass.
- 
Method SummaryModifier and TypeMethodDescriptionGets the time that has elapsed since the transition has entered its active period, not including the time spent in the delay phase.Gets theStyleablePropertythat is targeted by the transition.Methods declared in class javafx.event.Eventclone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumedMethods declared in class java.util.EventObjectgetSource, toString
- 
Field Details- 
ANYCommon supertype for allTransitionEventtypes.
- 
RUNThis event occurs when a transition has been created and added to the list of running transitions of aNode.
- 
STARTThis event occurs when a running transition enters its active period, which happens at the end of the delay phase.
- 
ENDThis event occurs when a running transition has reached the end of its active period. If the transition is cancelled prior to reaching the end of its active period, this event does not occur.
- 
CANCELThis event occurs when a running transition was cancelled before it has reached the end of its active period.
 
- 
- 
Constructor Details- 
TransitionEventpublic TransitionEvent(EventType<? extends Event> eventType, StyleableProperty<?> property, Duration elapsedTime) Creates a new instance of theTransitionEventclass.- Parameters:
- eventType- the event type
- property- the- StyleablePropertythat is targeted by the transition
- elapsedTime- the time that has elapsed since the transition has entered its active period
- Throws:
- NullPointerException- if- eventType,- propertyor- elapsedTimeis- null
 
 
- 
- 
Method Details- 
getPropertyGets theStyleablePropertythat is targeted by the transition.- Returns:
- the StyleableProperty
 
- 
getElapsedTimeGets the time that has elapsed since the transition has entered its active period, not including the time spent in the delay phase.- Returns:
- the elapsed time, or zero if the transition has not entered its active period
 
 
-