com.bramosystems.oss.player.core.event.client
Class MediaInfoEvent

java.lang.Object
  extended by com.google.gwt.event.shared.GwtEvent<MediaInfoHandler>
      extended by com.bramosystems.oss.player.core.event.client.MediaInfoEvent

public class MediaInfoEvent
extends com.google.gwt.event.shared.GwtEvent<MediaInfoHandler>

The event fired when the media metadata is available.

The metadata is wrapped in a MediaInfo object

Author:
Sikirulai Braheem

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
com.google.gwt.event.shared.GwtEvent.Type<H>
 
Field Summary
static com.google.gwt.event.shared.GwtEvent.Type<MediaInfoHandler> TYPE
           
 
Constructor Summary
protected MediaInfoEvent(MediaInfo info)
          Creates a new MediaInfoEvent object
 
Method Summary
protected  void dispatch(MediaInfoHandler handler)
           
static void fire(HasMediaMessageHandlers source, MediaInfo info)
          Fires MediaInfoEvent on all registered handlers
 com.google.gwt.event.shared.GwtEvent.Type<MediaInfoHandler> getAssociatedType()
           
 MediaInfo getMediaInfo()
          Returns the metadata of the media item
 
Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, revive, toDebugString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final com.google.gwt.event.shared.GwtEvent.Type<MediaInfoHandler> TYPE
Constructor Detail

MediaInfoEvent

protected MediaInfoEvent(MediaInfo info)
Creates a new MediaInfoEvent object

Parameters:
info - the media metadata
Method Detail

fire

public static void fire(HasMediaMessageHandlers source,
                        MediaInfo info)
Fires MediaInfoEvent on all registered handlers

Parameters:
source - the source of the event
info - the metadata of the media

getAssociatedType

public com.google.gwt.event.shared.GwtEvent.Type<MediaInfoHandler> getAssociatedType()
Specified by:
getAssociatedType in class com.google.gwt.event.shared.GwtEvent<MediaInfoHandler>

dispatch

protected void dispatch(MediaInfoHandler handler)
Specified by:
dispatch in class com.google.gwt.event.shared.GwtEvent<MediaInfoHandler>

getMediaInfo

public MediaInfo getMediaInfo()
Returns the metadata of the media item

Returns:
the metadata of the media item


Copyright © 2009-2011. All Rights Reserved.