Inheritance diagram for edu.cmu.hcii.calo.controller.TaskPaneController:
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) |
| |
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. |
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.
view | the view to send updates to |
void edu.cmu.hcii.calo.controller.TaskPaneController.onMessageReceived | ( | Observable | sender, | |
final Message | msg | |||
) |
void edu.cmu.hcii.calo.controller.TaskPaneController.Change | ( | PropertyChangeEvent | e | ) |
This method gets called when a bound property is changed.
e | A PropertyChangeEvent object describing the event source and the property that has changed. |
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.
e | the PropertyChangeEvent that we're handling, whose name must be TaskViewPropertyNames.TASK_ORDER_PROPERTY_NAME |
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.
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.
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.
msg | the message received from the manager |
void edu.cmu.hcii.calo.controller.TaskPaneController.setIgnoreModelMessages | ( | boolean | ignoreModelMessages | ) | [private] |
Setter method for ignoringUpdates.
ignoreModelMessages | the ignoringUpdates to set |
The task pane.
boolean edu.cmu.hcii.calo.controller.TaskPaneController.ignoreModelMessages = false [private] |
Tells the controller to ignore model messages to assure atomic updates.