public class PlayStateEvent extends com.google.gwt.event.shared.GwtEvent<PlayStateHandler>
Modifier and Type | Class and Description |
---|---|
static class |
PlayStateEvent.State
An enum of playback states
|
Modifier and Type | Field and Description |
---|---|
static com.google.gwt.event.shared.GwtEvent.Type<PlayStateHandler> |
TYPE |
Modifier | Constructor and Description |
---|---|
protected |
PlayStateEvent(PlayStateEvent.State state,
int itemIndex)
Creates a new play state event
|
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(PlayStateHandler handler) |
static void |
fire(HasPlayStateHandlers source,
PlayStateEvent.State state,
int itemIndex)
Fires play state events on all registered handlers
|
com.google.gwt.event.shared.GwtEvent.Type<PlayStateHandler> |
getAssociatedType() |
int |
getItemIndex()
Retrieves the index of the media item in the playlist
|
PlayStateEvent.State |
getPlayState()
Retrieves the new state of media playback
|
assertLive, getSource, isLive, kill, revive
public static final com.google.gwt.event.shared.GwtEvent.Type<PlayStateHandler> TYPE
protected PlayStateEvent(PlayStateEvent.State state, int itemIndex)
state
- the new stateitemIndex
- the playlist index of the mediapublic static void fire(HasPlayStateHandlers source, PlayStateEvent.State state, int itemIndex)
source
- the source of the eventstate
- the new state of the mediaitemIndex
- the playlist index of the mediapublic com.google.gwt.event.shared.GwtEvent.Type<PlayStateHandler> getAssociatedType()
getAssociatedType
in class com.google.gwt.event.shared.GwtEvent<PlayStateHandler>
protected void dispatch(PlayStateHandler handler)
dispatch
in class com.google.gwt.event.shared.GwtEvent<PlayStateHandler>
public PlayStateEvent.State getPlayState()
public int getItemIndex()
Copyright © 2009-2013. All Rights Reserved.