Next Previous Up Top Contents Index

5.3 Defining the callbacks

5.3.3 Updating the user interface

This section describes a number of miscellaneous methods that are required for smooth operation of the task list manager. Each of the methods defined here ensures that the task list manager displays the correct information and gives the user access to appropriate commands in any given situation. Here is a list of the methods defined in this section, together with a brief description of each one:

initialize

An initialize method is provided for <task-frame> that ensures information is displayed correctly when the task list manager is first displayed. This method is described in Section 5.3.3.1.

frame-selected-task

This method returns the task that is currently selected in the task list manager. This method is described in Section 5.3.3.2.
frame-selected-task-setter

This is a setter method for frame-selected-task, and is used to select or deselect item in the task list manager. This method is described in Section 5.3.3.2.
note-task-selection-change

Two methods are defined that deal with updating the GUI whenever a change is made to the task selection state. This method is described in Section 5.3.3.3.
refresh-task-frame

This method can be called to refresh the task frame at any time. This method is described in Section 5.3.3.4.

Each of these methods should be added to the file frame.dylan.

5.3.3.1 - Initializing a new instance of <task-frame>
5.3.3.2 - Determining and setting the selected task
5.3.3.3 - Enabling and disabling buttons in the interface
5.3.3.4 - Refreshing the list of tasks

Building Applications Using DUIM - 26 May 1999

Next Previous Up Top Contents Index