edu.cmu.hcii.calo.view.TaskPaneView Class Reference

Collaboration diagram for edu.cmu.hcii.calo.view.TaskPaneView:

Collaboration graph
[legend]
List of all members.

Detailed Description

A view that shows a scrollable task pane with three subpanes (to-do, on hold, and completed).

Author:
Brian Ellis


Public Member Functions

 TaskPaneView ()
 Constructor for TaskPaneView.
void doLayout ()
 
See also:
java.awt.Container.doLayout()

Dimension getPreferredScrollableViewportSize ()
 
See also:
javax.swing.Scrollable.getPreferredScrollableViewportSize()

Dimension getPreferredSize ()
int getScrollableBlockIncrement (Rectangle theVisibleRect, int theOrientation, int theDirection)
 
See also:
javax.swing.Scrollable.getScrollableBlockIncrement(java.awt.Rectangle, int, int)

boolean getScrollableTracksViewportHeight ()
 
See also:
javax.swing.Scrollable.getScrollableTracksViewportHeight()

boolean getScrollableTracksViewportWidth ()
 
See also:
javax.swing.Scrollable.getScrollableTracksViewportWidth()

int getScrollableUnitIncrement (Rectangle theVisibleRect, int theOrientation, int theDirection)
 
See also:
javax.swing.Scrollable.getScrollableUnitIncrement(java.awt.Rectangle, int, int)

void Change (PropertyChangeEvent e)

Static Public Member Functions

static void main (String[] args)
 A test program that creates and shows a TaskView.

Protected Member Functions

void doFilter ()
void makeNewTask ()

Static Package Attributes

static TaskPaneView paneView
 Test instance.

Private Member Functions

void setup ()
 Sets up the visual appearance of the view.

Private Attributes

TaskSubpaneView todoList
 The to-do list subpane.
TaskSubpaneView pendingTasks
 The pending tasks subpane.
TaskSubpaneView completedTasks
 The completed tasks subpane.
SearchField inputAndFilterField
IconButton addTaskButton

Static Private Attributes

static final long serialVersionUID = 7083012944101041073L
 Prevent serialization collisions.
static final TaskFilter TODO_FILTER
static final TaskFilter PENDING_FILTER
static final TaskFilter COMPLETED_FILTER


Constructor & Destructor Documentation

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

Constructor for TaskPaneView.


Member Function Documentation

static void edu.cmu.hcii.calo.view.TaskPaneView.main ( String[]  args  )  [static]

A test program that creates and shows a TaskView.

Parameters:
args command-line args; don't bother passing any

void edu.cmu.hcii.calo.view.TaskPaneView.doLayout (  ) 

See also:
java.awt.Container.doLayout()

Dimension edu.cmu.hcii.calo.view.TaskPaneView.getPreferredScrollableViewportSize (  ) 

See also:
javax.swing.Scrollable.getPreferredScrollableViewportSize()

Dimension edu.cmu.hcii.calo.view.TaskPaneView.getPreferredSize (  ) 

int edu.cmu.hcii.calo.view.TaskPaneView.getScrollableBlockIncrement ( Rectangle  theVisibleRect,
int  theOrientation,
int  theDirection 
)

See also:
javax.swing.Scrollable.getScrollableBlockIncrement(java.awt.Rectangle, int, int)

boolean edu.cmu.hcii.calo.view.TaskPaneView.getScrollableTracksViewportHeight (  ) 

See also:
javax.swing.Scrollable.getScrollableTracksViewportHeight()

boolean edu.cmu.hcii.calo.view.TaskPaneView.getScrollableTracksViewportWidth (  ) 

See also:
javax.swing.Scrollable.getScrollableTracksViewportWidth()

int edu.cmu.hcii.calo.view.TaskPaneView.getScrollableUnitIncrement ( Rectangle  theVisibleRect,
int  theOrientation,
int  theDirection 
)

See also:
javax.swing.Scrollable.getScrollableUnitIncrement(java.awt.Rectangle, int, int)

void edu.cmu.hcii.calo.view.TaskPaneView.setup (  )  [private]

Sets up the visual appearance of the view.

void edu.cmu.hcii.calo.view.TaskPaneView.doFilter (  )  [protected]

Todo:
This should be case-insensitive.

void edu.cmu.hcii.calo.view.TaskPaneView.makeNewTask (  )  [protected]

void edu.cmu.hcii.calo.view.TaskPaneView.Change ( PropertyChangeEvent  e  ) 


Member Data Documentation

final long edu.cmu.hcii.calo.view.TaskPaneView.serialVersionUID = 7083012944101041073L [static, private]

Prevent serialization collisions.

TaskPaneView edu.cmu.hcii.calo.view.TaskPaneView.paneView [static, package]

Test instance.

TaskSubpaneView edu.cmu.hcii.calo.view.TaskPaneView.todoList [private]

The to-do list subpane.

TaskSubpaneView edu.cmu.hcii.calo.view.TaskPaneView.pendingTasks [private]

The pending tasks subpane.

TaskSubpaneView edu.cmu.hcii.calo.view.TaskPaneView.completedTasks [private]

The completed tasks subpane.

SearchField edu.cmu.hcii.calo.view.TaskPaneView.inputAndFilterField [private]

IconButton edu.cmu.hcii.calo.view.TaskPaneView.addTaskButton [private]

final TaskFilter edu.cmu.hcii.calo.view.TaskPaneView.TODO_FILTER [static, private]

Initial value:

 new TaskFilter() {

        @Override
        public boolean shouldShowTask(Task t) {
            if (t.isComplete()) {
                return false;
            }
            if (t.getPendingState().isPending()) {
                return false;
            }
            return true;
        }

    }

final TaskFilter edu.cmu.hcii.calo.view.TaskPaneView.PENDING_FILTER [static, private]

Initial value:

 new TaskFilter() {

        @Override
        public boolean shouldShowTask(Task t) {
            if (t.getPendingState().isPending()) {
                return true;
            }
            return false;
        }

    }

final TaskFilter edu.cmu.hcii.calo.view.TaskPaneView.COMPLETED_FILTER [static, private]

Initial value:

 new TaskFilter() {

        @Override
        public boolean shouldShowTask(Task t) {
            if (t.isComplete()) {
                return true;
            }
            return false;
        }

    }


The documentation for this class was generated from the following file:
Generated on Mon Jul 9 12:34:41 2007 for CALO by  doxygen 1.5.2