com.bramosystems.oss.player.core.event.client
Class PlayStateEvent
java.lang.Object
com.google.gwt.event.shared.GwtEvent<PlayStateHandler>
com.bramosystems.oss.player.core.event.client.PlayStateEvent
public class PlayStateEvent
- extends com.google.gwt.event.shared.GwtEvent<PlayStateHandler>
The event fired when the state of media playback changes
- Author:
- Sikirulai Braheem
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent |
com.google.gwt.event.shared.GwtEvent.Type<H> |
Methods inherited from class com.google.gwt.event.shared.GwtEvent |
assertLive, getSource, isLive, kill, revive, toDebugString, toString |
TYPE
public static final com.google.gwt.event.shared.GwtEvent.Type<PlayStateHandler> TYPE
PlayStateEvent
protected PlayStateEvent(PlayStateEvent.State state,
int itemIndex)
- Creates a new play state event
- Parameters:
state
- the new stateitemIndex
- the playlist index of the media
fire
public static void fire(HasPlayStateHandlers source,
PlayStateEvent.State state,
int itemIndex)
- Fires play state events on all registered handlers
- Parameters:
source
- the source of the eventstate
- the new state of the mediaitemIndex
- the playlist index of the media
getAssociatedType
public com.google.gwt.event.shared.GwtEvent.Type<PlayStateHandler> getAssociatedType()
- Specified by:
getAssociatedType
in class com.google.gwt.event.shared.GwtEvent<PlayStateHandler>
dispatch
protected void dispatch(PlayStateHandler handler)
- Specified by:
dispatch
in class com.google.gwt.event.shared.GwtEvent<PlayStateHandler>
getPlayState
public PlayStateEvent.State getPlayState()
- Retrieves the new state of media playback
- Returns:
- the state of the playback
getItemIndex
public int getItemIndex()
- Retrieves the index of the media item in the playlist
- Returns:
- the index of the media item in the playlist
Copyright © 2009-2011. All Rights Reserved.