|
talx x1.0.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objecttalx.feature.BadTypingCorrection
Beeps and displays a message when the user types onto a button. Once the user types onto a button, the message will display in the marque until the user performs some other action.
| Nested Class Summary | |
protected class |
BadTypingCorrection.BadTypingAction
|
| Field Summary | |
static java.lang.String |
BAD_TYPING_COMMAND
|
| Fields inherited from interface talx.controller.ControllerConstants |
EXIT_COMMAND, FILE_ATTACHMENTS_KEY, ILLEGAL_ACTION_COMMAND, LOGOUT_COMMAND, MAIL_COUNT_CHANGED_COMMAND, REMOTE_GAME_COMMAND, SAVE_COMMAND, STOP_COMMAND, TEST_COMMAND |
| Constructor Summary | |
BadTypingCorrection(java.lang.String param)
Constructs a new correction object. |
|
| Method Summary | |
boolean |
claim(java.awt.event.ActionEvent ev,
Controller c)
Determines whether this feature is responsible for the action. |
void |
eventDispatched(java.awt.AWTEvent event)
|
void |
initialize(Controller c)
Allows the interceptor to change the gui state. |
void |
release()
Releases all system resources held by this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String BAD_TYPING_COMMAND
| Constructor Detail |
public BadTypingCorrection(java.lang.String param)
param - the text to show on the marque| Method Detail |
public boolean claim(java.awt.event.ActionEvent ev,
Controller c)
throws ActionVetoException
InterceptorInterceptors that wish to make some minor change to the gui state but not stop other effects from an action must make their change, refire the action via the controller's doAction() method, and then claim the action. Obviously, such interceptors must remember the action event to prevent them from reacting to it the next time.
Unlike ActionHandlers, which are stateless, Interceptors must manage their own state.
claim in interface InterceptorActionVetoException - to veto the action.public void eventDispatched(java.awt.AWTEvent event)
eventDispatched in interface java.awt.event.AWTEventListenerpublic void initialize(Controller c)
Interceptor
initialize in interface Interceptorpublic void release()
TALFeature
release in interface TALFeature
|
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.