|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.extjs.gxt.ui.client.mvc.Controller
public abstract class Controller
Controllers process and respond to application events.
| Constructor Summary | |
|---|---|
Controller()
|
|
| Method Summary | |
|---|---|
void |
addChild(Controller controller)
Add a child controller. |
boolean |
canHandle(AppEvent event)
Determines if the controller can handle the particular event. |
void |
forwardToChild(AppEvent event)
Forwards an event to any child controllers who can handle the event. |
static void |
forwardToView(View view,
AppEvent event)
Forward an event to a view. |
static void |
forwardToView(View view,
int type,
java.lang.Object data)
Forward an event to a view. |
abstract void |
handleEvent(AppEvent<?> event)
Processes the event. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Controller()
| Method Detail |
|---|
public static void forwardToView(View view,
AppEvent event)
view - the view to forward the eventevent - the event to be forwarded
public static void forwardToView(View view,
int type,
java.lang.Object data)
view - the view to forward the eventtype - the event typedata - the event datapublic void addChild(Controller controller)
controller - the controller to addedpublic boolean canHandle(AppEvent event)
event - the event
true if event can be handled, false
otherwisepublic void forwardToChild(AppEvent event)
event - the event to forwardpublic abstract void handleEvent(AppEvent<?> event)
event - the current event
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||