|
talx x1.0.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objecttalx.controller.base.CCInterceptor
Interceptor to allow additional recipients to a composition. When the composer is open and the user clicks on a mailbox, this interceptor will allow the person associated with the mailbox to be added as a recipient of the message under composition.
| Field Summary |
| Constructor Summary | |
CCInterceptor(java.lang.String param)
|
|
| Method Summary | |
boolean |
claim(java.awt.event.ActionEvent ev,
Controller c)
Determines whether this feature is responsible for the action. |
void |
controllerChange(ControllerChangeEvent ev)
Sent when the controller wants the GUI to change state. |
void |
controllerChangeFinished(ChangeFinishedEvent ev)
Makes sure the inbox is showing when the composer has focus. |
void |
controllerChangeVetoed(ActionVetoException ex)
Sent when the system has decided not to transition on a user action. |
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 |
| Constructor Detail |
public CCInterceptor(java.lang.String param)
param - the text to display in the dialog boxes.
This string should consist of at most two key=value pairs.
If the key "add" appears, then when a mailbox is newly
selected, a dialog with the value for "add" will appear
to allow the user to add the person as a recipient.
If the key "remove" appears, then when a selected mailbox is
clicked, a dialog with the value for "remove" will appear
to allow the user to remove the person as a recipient.
If either add or remove or both do not appear as keys,
then those actions will happen automatically without
a confirmation dialog box.| Method Detail |
public void controllerChange(ControllerChangeEvent ev)
ControllerListener
controllerChange in interface ControllerListenerpublic void controllerChangeVetoed(ActionVetoException ex)
ControllerListener
controllerChangeVetoed in interface ControllerListenerpublic void controllerChangeFinished(ChangeFinishedEvent ev)
controllerChangeFinished in interface ControllerListener
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 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.