Class TransitionEvent

Direct Known Subclasses:
TransitionCancelEvent, TransitionEndEvent, TransitionRunEvent, TransitionStartEvent

public abstract class TransitionEvent extends ClientEvent<TransitionListener>
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 Details

    • TransitionEvent

      public TransitionEvent(String propertyName, float elapsedTime, String pseudoElement)
      Constructs a new TransitionEvent with the specified parameters.
      Parameters:
      propertyName - the name of the CSS property being transitioned
      elapsedTime - the elapsed time in seconds since the transition started
      pseudoElement - the pseudo-element the transition runs on (empty string if none)
  • Method Details

    • getPropertyName

      public String 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

      public String getPseudoElement()
      Returns the pseudo-element the transition runs on, or an empty string if none.
      Returns:
      the pseudo-element