org.xwiki.gwt.user.client
Class ActionEvent
java.lang.Object
com.google.gwt.event.shared.GwtEvent<ActionHandler>
org.xwiki.gwt.user.client.ActionEvent
public class ActionEvent
- extends com.google.gwt.event.shared.GwtEvent<ActionHandler>
A semantic event which indicates that a component-defined action occurred.
- Version:
- $Id: ActionEvent.java 29193 2010-06-02 15:36:33Z mflorea $
| Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent |
com.google.gwt.event.shared.GwtEvent.Type<H> |
|
Constructor Summary |
protected |
ActionEvent(java.lang.String actionName)
Creates a new event for the specified action. |
| 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 |
ActionEvent
protected ActionEvent(java.lang.String actionName)
- Creates a new event for the specified action.
- Parameters:
actionName - the name of the action that triggers this event
getType
public static com.google.gwt.event.shared.GwtEvent.Type<ActionHandler> getType(java.lang.String actionName)
- Parameters:
actionName - the name of an action
- Returns:
- the event type associated with the specified action
fire
public static ActionEvent fire(HasActionHandlers source,
java.lang.String actionName)
- Fires an action event on all registered handlers in the handler manager. If no such handlers exist, this method
will do nothing.
- Parameters:
source - the source of the handlersactionName - the name of the action that occurred
- Returns:
- the fired event, or
null if no handlers of the implied event type have been registered
dispatch
protected void dispatch(ActionHandler handler)
-
- Specified by:
dispatch in class com.google.gwt.event.shared.GwtEvent<ActionHandler>
- See Also:
GwtEvent#dispatch(Object)
getAssociatedType
public com.google.gwt.event.shared.GwtEvent.Type<ActionHandler> getAssociatedType()
-
- Specified by:
getAssociatedType in class com.google.gwt.event.shared.GwtEvent<ActionHandler>
- See Also:
GwtEvent.getAssociatedType()
getActionName
public java.lang.String getActionName()
- Returns:
- the name of the action that triggered this event
Copyright © 2004-2010 XWiki. All Rights Reserved.