|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.extjs.gxt.ui.client.event.BaseEvent
com.extjs.gxt.ui.client.mvc.AppEvent<Data>
public class AppEvent<Data>
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.
| Field Summary | |
|---|---|
Data |
data
Application specific data such as the model. |
boolean |
historyEvent
True to create a history item for this event when passed through the dispatcher. |
java.lang.String |
token
The optional history token (defaults to null). |
| Fields inherited from class com.extjs.gxt.ui.client.event.BaseEvent |
|---|
doit, source, type |
| Constructor Summary | |
|---|---|
AppEvent(int type)
Creates a new app event. |
|
AppEvent(int type,
Data data)
Creates a new app event. |
|
AppEvent(int type,
Data data,
java.lang.String token)
Creates a new app event. |
|
| Method Summary | ||
|---|---|---|
|
getData(java.lang.String key)
Returns the application defined property for the given name, or null if it has not been set. |
|
void |
setData(java.lang.String key,
java.lang.Object data)
Sets the application defined property with the given name. |
|
java.lang.String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Data data
public java.lang.String token
public boolean historyEvent
| Constructor Detail |
|---|
public AppEvent(int type)
type - the event type
public AppEvent(int type,
Data data)
type - the event typedata - the data
public AppEvent(int type,
Data data,
java.lang.String token)
type - the event typedata - the event datatoken - the history token| Method Detail |
|---|
public <X> X getData(java.lang.String key)
null if it has not been set.
key - the name of the property
null if it has not been set
public void setData(java.lang.String key,
java.lang.Object data)
key - the name of the propertydata - the new value for the propertypublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||