public static class AsyncMedia.MediaStateChangeEvent extends ActionEvent
ActionEvent.Type
Constructor and Description |
---|
MediaStateChangeEvent(AsyncMedia source,
AsyncMedia.State oldState,
AsyncMedia.State newState)
Creates a new state change event for the given source.
|
Modifier and Type | Method and Description |
---|---|
AsyncMedia.State |
getNewState()
The new state.
|
AsyncMedia.State |
getOldState()
The previous state.
|
consume, getActualComponent, getCommand, getComponent, getDraggedComponent, getDropTarget, getEventType, getKeyEvent, getProgress, getSource, getX, getY, isConsumed, isLongEvent, isPointerPressedDuringDrag, setPointerPressedDuringDrag
public MediaStateChangeEvent(AsyncMedia source, AsyncMedia.State oldState, AsyncMedia.State newState)
source
- The media object whose state is changing.oldState
- The old statenewState
- The new statepublic AsyncMedia.State getOldState()
public AsyncMedia.State getNewState()