|
talx x1.0.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objecttalx.controller.simple.BusyComposerHandler
Used when the composer is open.
| Field Summary |
| Method Summary | |
boolean |
canRun(GUIState state,
Controller c)
This method tells the controller whether the given handler will function in the given GUIState. |
static BusyComposerHandler |
getInstance()
Returns the only object of this type. |
ActionHandler |
handleAction(java.awt.event.ActionEvent ev,
Controller c)
Handles an action event and transitions to a new action handler. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static BusyComposerHandler getInstance()
public boolean canRun(GUIState state,
Controller c)
ActionHandler
canRun in interface ActionHandlerstate - the current visual state of the system
public ActionHandler handleAction(java.awt.event.ActionEvent ev,
Controller c)
throws ActionVetoException
ActionHandlerIf the GUIState changes as a result of the action, this method should call the controller's fireControllerChange method after setting the new state. Although a normal return from this method will trigger a controller change finished event, visual components are not required to listen for changes that were not introduced via controller change events.
It is also customary for handlers to "initialize" themselves and/or the controller when ev == null. The interpretation of initialization is left to the handler writer; however, handler classes that are used as initial handlers will be called with ev == null at system start-up. Classes that cannot be used as initialHandlers should throw a NullPointerException when called with a null event.
handleAction in interface ActionHandlerActionVetoException - to suppress a controller change
finished event upon termination.
|
talx x1.0.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.