Package totalcross.ui.media
Class MediaClipEvent
- java.lang.Object
-
- totalcross.ui.event.Event<MediaClipHandler>
-
- totalcross.ui.media.MediaClipEvent
-
public class MediaClipEvent extends Event<MediaClipHandler>
Events posted by a soundclip control.- Since:
- SuperWaba 5.66
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class totalcross.ui.event.Event
Event.Type<H>
-
-
Field Summary
Fields Modifier and Type Field Description static intCLOSEDThe event type when the play pauses.static intEND_OF_MEDIAstatic intERRORstatic intSTARTEDThe event type when the play starts.static intSTOPPEDThe event type when the play ends.
-
Constructor Summary
Constructors Constructor Description MediaClipEvent()Constructs an empty MediaClipEvent.MediaClipEvent(int type, java.lang.Object target)Constructs a MediaClipEvent, setting the type and target to the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispatch(MediaClipHandler listener)-
Methods inherited from class totalcross.ui.event.Event
clearQueue, getNextAvailableEventId, isAvailable, toString, touch
-
-
-
-
Field Detail
-
STARTED
public static final int STARTED
The event type when the play starts.- See Also:
- Constant Field Values
-
STOPPED
public static final int STOPPED
The event type when the play ends.- See Also:
- Constant Field Values
-
CLOSED
public static final int CLOSED
The event type when the play pauses.- See Also:
- Constant Field Values
-
ERROR
public static final int ERROR
- See Also:
- Constant Field Values
-
END_OF_MEDIA
public static final int END_OF_MEDIA
- See Also:
- Constant Field Values
-
-
Method Detail
-
dispatch
public void dispatch(MediaClipHandler listener)
- Specified by:
dispatchin classEvent<MediaClipHandler>
-
-