talx x1.0.5

talx.controller.base
Class AbortInterceptor

java.lang.Object
  extended bytalx.controller.base.DialogInterceptor
      extended bytalx.controller.base.AbortInterceptor
All Implemented Interfaces:
GUIStateConstants, Interceptor, TALFeature

public class AbortInterceptor
extends DialogInterceptor

Interceptor to force user to confirm Delete actions.


Nested Class Summary
 
Nested classes inherited from class talx.controller.base.DialogInterceptor
DialogInterceptor.DialogActivator, DialogInterceptor.DialogRunner, DialogInterceptor.DialogTree
 
Field Summary
 
Fields inherited from class talx.controller.base.DialogInterceptor
sequences
 
Fields inherited from interface talx.model.GUIStateConstants
ACTIVE_COMMANDS, ARCHIVE_MESSAGE, CHOICE_DIALOG, COMPOSE_FOCUS, COMPOSE_WINDOW, COMPOSER_CAPTION, COMPOSER_DIRTY, CONFIRM_DIALOG, CURRENT_PEOPLE, CURRENT_PLAYER, DEFAULT_MESSAGE, DIALOG_FOCUS, DIALOG_TEXT, INBOX_FOCUS, INBOX_MAIL_COUNTS, INBOX_MAIL_COUNTS_ANSWERED, INBOX_MAIL_COUNTS_NEW, INBOX_PANEL, INBOX_PLAYER_CAPTIONS, NO_CHANGE, NO_MESSAGE, NO_PEOPLE, NO_PERSON, NO_PLAYER, READER_CAPTION, READER_FOCUS, READER_HEADERS, READER_WINDOW, STATE_ABBR, STATE_CONST, STATE_DESC
 
Constructor Summary
AbortInterceptor(java.lang.String param)
          When the user clicks the composer cancel button, this interceptor can pop up a confirmation dialog and/or a choice dialog.
 
Methods inherited from class talx.controller.base.DialogInterceptor
cancelAction, claim, initialize, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbortInterceptor

public AbortInterceptor(java.lang.String param)
When the user clicks the composer cancel button, this interceptor can pop up a confirmation dialog and/or a choice dialog. If the user responds no to the confirmation dialog, the choice is not presented. Otherwise, the choice dialog asks if the user would like to save a draft of the message for later use.

Parameters:
param - the text to display in the dialog boxes. The constructor expects one or two key=value pairs. If a pair has the key "confirm", then the value will be used as the text of the confirmation dialog. If a pair has the key "save", then the value will be used as the text of the choice dialog.
Throws:
java.lang.IllegalArgumentException - if param does not contain either a confirm value or a save value.

talx x1.0.5

© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.