|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.web.bindery.event.shared.Event<H>
com.google.gwt.event.shared.GwtEvent<DispatcherListener>
com.sencha.gxt.legacy.client.mvc.AppEvent
public class AppEvent
AppEvents are used to pass messages between
Controllers and Views. All events have a specific
type which are used to identify the event. Typically, applications will
define all application events in a constants class.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent |
|---|
GwtEvent.Type<H> |
| Constructor Summary | |
|---|---|
AppEvent(GwtEvent.Type<?> type)
Creates a new application event. |
|
AppEvent(GwtEvent.Type<?> type,
Object data)
Creates a new application event. |
|
AppEvent(GwtEvent.Type<?> type,
Object data,
String token)
Creates a new application event. |
|
| Method Summary | ||
|---|---|---|
GwtEvent.Type<DispatcherListener> |
getAssociatedType()
|
|
|
getData()
Returns the application specified data. |
|
|
getData(String key)
Returns the application defined property for the given name, or null if it has not been set. |
|
String |
getToken()
Returns the history token. |
|
boolean |
isHistoryEvent()
Returns true if the event is a history event. |
|
void |
setData(Object data)
Sets the application defined data. |
|
void |
setData(String key,
Object data)
Sets the application defined property with the given name. |
|
void |
setHistoryEvent(boolean historyEvent)
True to create a history item for this event when passed through the dispatcher (defaults to false). |
|
void |
setToken(String token)
The optional history token (defaults to null). |
|
String |
toString()
|
|
| Methods inherited from class com.google.gwt.event.shared.GwtEvent |
|---|
getSource |
| Methods inherited from class com.google.web.bindery.event.shared.Event |
|---|
toDebugString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AppEvent(GwtEvent.Type<?> type)
type - the event type
public AppEvent(GwtEvent.Type<?> type,
Object data)
type - the event typedata - the data
public AppEvent(GwtEvent.Type<?> type,
Object data,
String token)
type - the event typedata - the event datatoken - the history token| Method Detail |
|---|
public GwtEvent.Type<DispatcherListener> getAssociatedType()
getAssociatedType in class GwtEvent<DispatcherListener>public <X> X getData()
X - the data type
public <X> X getData(String key)
null if it has not been set.
key - the name of the property
null if it has not been setpublic String getToken()
public boolean isHistoryEvent()
public void setData(Object data)
data - the data
public void setData(String key,
Object data)
key - the name of the propertydata - the new value for the propertypublic void setHistoryEvent(boolean historyEvent)
historyEvent - true for a history eventpublic void setToken(String token)
token - the history tokenpublic String toString()
toString in class com.google.web.bindery.event.shared.Event<DispatcherListener>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||