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

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

public class DebugEvent
extends com.google.gwt.event.shared.GwtEvent<DebugHandler>

The event fired to convey different types of messages.

Author:
Sikirulai Braheem

Nested Class Summary
static class DebugEvent.MessageType
          An enum of message types associated with DebugEvents
 
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<DebugHandler> TYPE
           
 
Constructor Summary
protected DebugEvent(DebugEvent.MessageType type, java.lang.String message)
          Contructs a new DebugEvent object
 
Method Summary
protected  void dispatch(DebugHandler handler)
           
static void fire(HasMediaMessageHandlers source, DebugEvent.MessageType type, java.lang.String message)
          Fires DebugEvent on all registered handlers
 com.google.gwt.event.shared.GwtEvent.Type<DebugHandler> getAssociatedType()
           
 java.lang.String getMessage()
          Returns the message associated with the event
 DebugEvent.MessageType getMessageType()
          Returns the type of message associated with the event
 
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<DebugHandler> TYPE
Constructor Detail

DebugEvent

protected DebugEvent(DebugEvent.MessageType type,
                     java.lang.String message)
Contructs a new DebugEvent object

Parameters:
type - the type of message
message - the message
Method Detail

fire

public static void fire(HasMediaMessageHandlers source,
                        DebugEvent.MessageType type,
                        java.lang.String message)
Fires DebugEvent on all registered handlers

Parameters:
source - the source of the event
type - the type of message
message - the message

getAssociatedType

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

dispatch

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

getMessageType

public DebugEvent.MessageType getMessageType()
Returns the type of message associated with the event

Returns:
the type of message

getMessage

public java.lang.String getMessage()
Returns the message associated with the event

Returns:
the message


Copyright © 2009-2011. All Rights Reserved.