edu.cmu.hcii.calo.view.task.viewer.TaskViewerTaskListCell.OnlyAMockupActionListener Class Reference

List of all members.

Detailed Description

An action listener that, when invoked, pops up a dialog indicating that the Task Viewer is only a mockup and can't be used to make changes to tasks.

Note:
Since AWT doesn't seem to consistently support the concept of vetoing or consuming events, we can't prevent the other event listeners attached to the various controls from firing, and even if we could, there's no way to ensure that we'd be the first listener to get invoked. Therefore, rather than trying to prevent the control from changing state when clicked, we define an abstract method, undoAction(), that sets it right back to the way it was to begin with. This is an annoying, but necessary, solution.
Author:
Brian Ellis


Public Member Functions

void actionPerformed (ActionEvent e)
 Invoked when a control that ought to change something about the task gets clicked on.

Protected Member Functions

abstract void undoAction ()
 Should be implemented by each listener instance to undo whatever change clicking the control would otherwise have performed (e.g., selecting the button).


Member Function Documentation

void edu.cmu.hcii.calo.view.task.viewer.TaskViewerTaskListCell.OnlyAMockupActionListener.actionPerformed ( ActionEvent  e  ) 

Invoked when a control that ought to change something about the task gets clicked on.

Pops up a dialog stating that that won't work, and undoes the change by calling undoAction().

Parameters:
e the action event

abstract void edu.cmu.hcii.calo.view.task.viewer.TaskViewerTaskListCell.OnlyAMockupActionListener.undoAction (  )  [protected, pure virtual]

Should be implemented by each listener instance to undo whatever change clicking the control would otherwise have performed (e.g., selecting the button).


The documentation for this class was generated from the following file:
Generated on Mon Aug 13 15:06:29 2007 for CALO by  doxygen 1.5.2