Class AsyncMedia.MediaStateChangeEvent
java.lang.Object
com.codename1.ui.events.ActionEvent
com.codename1.media.AsyncMedia.MediaStateChangeEvent
- Enclosing interface:
AsyncMedia
Encapsulates a state-change event on a Media object.
Since
7.0
-
Nested Class Summary
Nested classes/interfaces inherited from class ActionEvent
ActionEvent.Type -
Constructor Summary
ConstructorsConstructorDescriptionMediaStateChangeEvent(AsyncMedia source, AsyncMedia.State oldState, AsyncMedia.State newState) Creates a new state change event for the given source. -
Method Summary
Modifier and TypeMethodDescriptionThe new state.The previous state.Methods inherited from class ActionEvent
consume, getActualComponent, getCommand, getComponent, getDraggedComponent, getDropTarget, getEventType, getKeyEvent, getProgress, getSource, getX, getY, isConsumed, isLongEvent, isPointerPressedDuringDrag, setPointerPressedDuringDrag
-
Constructor Details
-
MediaStateChangeEvent
public MediaStateChangeEvent(AsyncMedia source, AsyncMedia.State oldState, AsyncMedia.State newState) Creates a new state change event for the given source.
Parameters
-
source: The media object whose state is changing. -
oldState: The old state -
newState: The new state
-
-
-
Method Details
-
getOldState
The previous state.
Returns
the oldState
-
getNewState
The new state.
Returns
the newState
-