Class TransitionEvent
java.lang.Object
com.oorian.messaging.events.Event<TransitionListener>
com.oorian.messaging.events.client.ClientEvent<TransitionListener>
com.oorian.messaging.events.client.TransitionEvent
- Direct Known Subclasses:
TransitionCancelEvent,TransitionEndEvent,TransitionRunEvent,TransitionStartEvent
Abstract base class for all CSS transition-related events in the client interface.
This class serves as the foundation for specific transition event types, providing common fields for tracking the CSS property name, elapsed time, and pseudo-element. Transition events are fired when CSS transitions start, end, run, or are cancelled.
Features:
- Captures the CSS property name being transitioned
- Tracks elapsed time since the transition started
- Identifies the pseudo-element the transition runs on
- Integrates with the TransitionListener interface
- Since:
- 2026
- Version:
- 1.0
- Author:
- Marvin P. Warble Jr.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTransitionEvent(String propertyName, float elapsedTime, String pseudoElement) Constructs a new TransitionEvent with the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the elapsed time in seconds since the transition started.Returns the name of the CSS property being transitioned.Returns the pseudo-element the transition runs on, or an empty string if none.Methods inherited from class com.oorian.messaging.events.client.ClientEvent
getSource, getTarget, setSource, setTargetMethods inherited from class com.oorian.messaging.events.Event
bubbles, dispatchTo
-
Constructor Details
-
TransitionEvent
Constructs a new TransitionEvent with the specified parameters.- Parameters:
propertyName- the name of the CSS property being transitionedelapsedTime- the elapsed time in seconds since the transition startedpseudoElement- the pseudo-element the transition runs on (empty string if none)
-
-
Method Details
-
getPropertyName
Returns the name of the CSS property being transitioned.- Returns:
- the property name
-
getElapsedTime
public float getElapsedTime()Returns the elapsed time in seconds since the transition started.- Returns:
- the elapsed time
-
getPseudoElement
Returns the pseudo-element the transition runs on, or an empty string if none.- Returns:
- the pseudo-element
-