edu.cmu.hcii.calo.controller.TaskPaneController Class Reference

Inherits edu.cmu.hcii.calo.messagePassing.MessageTarget.

Inheritance diagram for edu.cmu.hcii.calo.controller.TaskPaneController:

Inheritance graph
[legend]
Collaboration diagram for edu.cmu.hcii.calo.controller.TaskPaneController:

Collaboration graph
[legend]
List of all members.

Detailed Description

The controller that attaches the task manager to the task pane view in the sidebar.

Author:
Brian Ellis


Public Member Functions

 TaskPaneController (TaskPaneView view)
 Constructs a TaskPaneController that sends updates to (and listens for property changes from) the given TaskPaneView.
void onMessageReceived (Observable sender, final Message msg)
 
See also:
edu.cmu.hcii.calo.messagePassing.MessageTarget.onMessageReceived(java.util.Observable, edu.cmu.hcii.calo.messagePassing.Message)

void Change (PropertyChangeEvent e)
 This method gets called when a bound property is changed.

Private Member Functions

void handleTaskReorder (PropertyChangeEvent e)
 A helper method that twiddles task priorities to put tasks in the correct order.
void handleTaskStateChange (PropertyChangeEvent e)
 A helper method that handles changes to that task views that should result in changes to the Task model.
boolean isIgnoringModelMessages ()
 Accessor method for ignoreModelMessages.
void performUpdate (Message msg)
 Determines whether the task pane or the individual task views need to be updated based on the message that has been received from the TaskManager, and invokes the appropriate operations.
void setIgnoreModelMessages (boolean ignoreModelMessages)
 Setter method for ignoringUpdates.

Private Attributes

TaskPaneView view
 The task pane.
boolean ignoreModelMessages = false
 Tells the controller to ignore model messages to assure atomic updates.


Constructor & Destructor Documentation

edu.cmu.hcii.calo.controller.TaskPaneController.TaskPaneController ( TaskPaneView  view  ) 

Constructs a TaskPaneController that sends updates to (and listens for property changes from) the given TaskPaneView.

Parameters:
view the view to send updates to


Member Function Documentation

void edu.cmu.hcii.calo.controller.TaskPaneController.onMessageReceived ( Observable  sender,
final Message  msg 
)

See also:
edu.cmu.hcii.calo.messagePassing.MessageTarget.onMessageReceived(java.util.Observable, edu.cmu.hcii.calo.messagePassing.Message)

void edu.cmu.hcii.calo.controller.TaskPaneController.Change ( PropertyChangeEvent  e  ) 

This method gets called when a bound property is changed.

Parameters:
e A PropertyChangeEvent object describing the event source and the property that has changed.
See also:
java.beans.PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)

void edu.cmu.hcii.calo.controller.TaskPaneController.handleTaskReorder ( PropertyChangeEvent  e  )  [private]

A helper method that twiddles task priorities to put tasks in the correct order.

Parameters:
e the PropertyChangeEvent that we're handling, whose name must be TaskViewPropertyNames.TASK_ORDER_PROPERTY_NAME
Todo:
This should call into the Engine to ask what to do rather than always using the algorithm defined here.
Bug:
This algorithm doesn't always work correctly when a bunch of tasks all have the same priority.

void edu.cmu.hcii.calo.controller.TaskPaneController.handleTaskStateChange ( PropertyChangeEvent  e  )  [private]

A helper method that handles changes to that task views that should result in changes to the Task model.

Parameters:
e the PropertyChangeEvent that we're handling, whose name must be TaskViewPropertyNames.TASK_STATE_PROPERTY_NAME

boolean edu.cmu.hcii.calo.controller.TaskPaneController.isIgnoringModelMessages (  )  [private]

Accessor method for ignoreModelMessages.

Returns:
the value of ignoreModelMessages

void edu.cmu.hcii.calo.controller.TaskPaneController.performUpdate ( Message  msg  )  [private]

Determines whether the task pane or the individual task views need to be updated based on the message that has been received from the TaskManager, and invokes the appropriate operations.

Parameters:
msg the message received from the manager

void edu.cmu.hcii.calo.controller.TaskPaneController.setIgnoreModelMessages ( boolean  ignoreModelMessages  )  [private]

Setter method for ignoringUpdates.

Parameters:
ignoreModelMessages the ignoringUpdates to set


Member Data Documentation

TaskPaneView edu.cmu.hcii.calo.controller.TaskPaneController.view [private]

The task pane.

boolean edu.cmu.hcii.calo.controller.TaskPaneController.ignoreModelMessages = false [private]

Tells the controller to ignore model messages to assure atomic updates.


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