edu.cmu.hcii.calo.view.task.viewer.SortButtonGroup Class Reference

List of all members.

Detailed Description

A simple class that ensures that only one of the ListSortButtons added to it will be active at any one time by deactivating all the others when a new one is made active.

Note:
Once a button is added to a group, it will remain in the group until it is explicitly removed, even if you drop the reference to the button group.
Author:
Brian Ellis


Public Member Functions

void Change (PropertyChangeEvent e)
 Invoked when a sort button becomes active.
void add (ListSortButton button)
 Adds a button to this group.
void remove (ListSortButton button)
 Removes a button from this group.

Private Attributes

List< ListSortButtonsortButtons = new ArrayList<ListSortButton>()
 The buttons that have been added to this group.


Member Function Documentation

void edu.cmu.hcii.calo.view.task.viewer.SortButtonGroup.Change ( PropertyChangeEvent  e  ) 

Invoked when a sort button becomes active.

Deactivates all buttons in the group except that one.

Parameters:
e the property change event
See also:
java.beans.PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)

void edu.cmu.hcii.calo.view.task.viewer.SortButtonGroup.add ( ListSortButton  button  ) 

Adds a button to this group.

Parameters:
button the button to add

void edu.cmu.hcii.calo.view.task.viewer.SortButtonGroup.remove ( ListSortButton  button  ) 

Removes a button from this group.

Parameters:
button the button to remove


Member Data Documentation

List<ListSortButton> edu.cmu.hcii.calo.view.task.viewer.SortButtonGroup.sortButtons = new ArrayList<ListSortButton>() [private]

The buttons that have been added to this group.


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