Note that this event is not raised for explicit transitions that are created using the Transition class.
| Modifier and Type | Field and Description |
|---|---|
| public static final EventType | |
| public static final EventType | CANCEL
This event occurs when a running transition was cancelled before it has reached the end of its active period. |
| private final Duration | elapsedTime
The time that has elapsed since the transition has entered its active period, not including the time spent in the delay phase. |
| public static final EventType | END
This event occurs when a running transition has reached the end of its active period. |
| private final StyleableProperty | property
The |
| private final String | propertyName
The name of the CSS property or sub-property that is targeted by the transition. |
| public static final EventType | |
| private static final long | |
| public static final EventType | START
This event occurs when a running transition enters its active period, which happens at the end of the delay phase. |
| Access | Constructor and Description |
|---|---|
| public | TransitionEvent(EventType<? extends Event>
the event type eventType, StyleableProperty<?> the property, String StyleableProperty that is targeted by the transitionthe name of the targeted CSS property or sub-property propertyName, Duration the time that has elapsed since the transition has entered its active period elapsedTime)Creates a new instance of the |
| Modifier and Type | Method and Description |
|---|---|
| public Duration | Returns: the elapsed time, or zero if the transition has not entered its active periodGets the time that has elapsed since the transition has entered its active period, not including the time spent in the delay phase. |
| public StyleableProperty | Returns: theStyleablePropertyGets the |
| public String | Returns: the CSS property or sub-property nameGets the name of the CSS property or sub-property that is targeted by the transition. |
| ANY | back to summary |
|---|---|
| public static final EventType<TransitionEvent> ANY Hides javafx. Common supertype for all | |
| CANCEL | back to summary |
|---|---|
| public static final EventType<TransitionEvent> CANCEL This event occurs when a running transition was cancelled before it has reached the end of its active period. | |
| elapsedTime | back to summary |
|---|---|
| private final Duration elapsedTime The time that has elapsed since the transition has entered its active period, not including the time spent in the delay phase. | |
| END | back to summary |
|---|---|
| public static final EventType<TransitionEvent> END This 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. | |
| property | back to summary |
|---|---|
| private final StyleableProperty<?> property The | |
| propertyName | back to summary |
|---|---|
| private final String propertyName The name of the CSS property or sub-property that is targeted by the transition. | |
| RUN | back to summary |
|---|---|
| public static final EventType<TransitionEvent> RUN This event occurs when a transition has been created and added to the list of running
transitions of a | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| START | back to summary |
|---|---|
| public static final EventType<TransitionEvent> START This event occurs when a running transition enters its active period, which happens at the end of the delay phase. | |
| TransitionEvent | back to summary |
|---|---|
| public TransitionEvent(EventType<? extends Event> eventType, StyleableProperty<?> property, String propertyName, Duration elapsedTime) Creates a new instance of the
| |
| getElapsedTime | back to summary |
|---|---|
| public Duration getElapsedTime() Gets the time that has elapsed since the transition has entered its active period, not including the time spent in the delay phase.
| |
| getProperty | back to summary |
|---|---|
| public StyleableProperty Gets the
| |
| getPropertyName | back to summary |
|---|---|
| public String getPropertyName() Gets the name of the CSS property or sub-property that is targeted by the transition.
The name of the CSS property under transition can be a long-hand property name, which is different
from the name returned by
| |