|
talx x1.0.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objecttalx.controller.extended.ExportInterceptor
Manages the export button. For this interceptor to work, some button, presumeably on the reader, must be associated with the EXPORT_BUTTON_NAME. This class will make sure that the button is showing when appropriate and also respond to button clicks by exporting the current message. Messages are exported to the export folder given in the constructor parameter. The entire MIME-formatted message is saved as name_mm-dd-yy-hh-mm.msg. The inline text parts of the message are concatenated and saved as name_mm-dd-yy-hh-mm.txt. The attachment parts are saved under the filename for the attachment (minus any path structures). Other non-text inline parts are not saved except as part of the msg file.
| Field Summary | |
static java.lang.String |
EXPORT_BUTTON_NAME
|
| Constructor Summary | |
ExportInterceptor(java.lang.String location)
Creates an export interceptor that saves exported message to the given directory. |
|
| Method Summary | |
boolean |
claim(java.awt.event.ActionEvent ev,
Controller c)
Shows and hides the export button and responds to export button clicks. |
void |
controllerChange(ControllerChangeEvent ev)
Sent when the controller wants the GUI to change state. |
void |
controllerChangeFinished(ChangeFinishedEvent ev)
Decides whether to show or hide the export button. |
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 |
| Field Detail |
public static final java.lang.String EXPORT_BUTTON_NAME
| Constructor Detail |
public ExportInterceptor(java.lang.String location)
| Method Detail |
public boolean claim(java.awt.event.ActionEvent ev,
Controller c)
throws ActionVetoException
claim in interface InterceptorActionVetoException - to veto the action.public void initialize(Controller c)
Interceptor
initialize in interface Interceptorpublic void release()
TALFeature
release in interface TALFeaturepublic 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
|
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.