edu.cmu.hcii.calo.view.task.CompleteBox Class Reference

List of all members.

Detailed Description

A check box for use with the TaskView.

This is different from a standard check box in that it has a transparent background and does not expect a text label (and will, in fact, complain if you try to set one).

Note:
This class is no longer used, because we are now using an image for the complete checkboxes due to user confusion over whether the check box was intended to select the task (as in many Web interfaces). It is being left in for completeness, however.
Deprecated:
Author:
Brian Ellis


Public Member Functions

 CompleteBox ()
 Constructs a CompleteBox with no action.
 CompleteBox (Action a)
 Constructs a CompleteBox with the given action.
 CompleteBox (Icon icon)
 Constructs a CompleteBox with the given icon.
 CompleteBox (Icon icon, boolean selected)
 Constructs a CompleteBox with the given icon and initial selection state.
void setText (String text)
 Throws an UnsupportedOperationException because CompleteBoxes cannot have text labels.

Protected Member Functions

void fireStateChanged ()
 Fires the state change event, and then sets the tooltip text of the button appropriately.

Private Member Functions

 CompleteBox (String text)
 Private superclass constructor.
 CompleteBox (String text, boolean selected)
 Private superclass constructor.
 CompleteBox (String text, Icon icon)
 Private superclass constructor.
 CompleteBox (String text, Icon icon, boolean selected)
 Private superclass constructor.
void setup ()
 Sets up the visual appearance of this view.


Constructor & Destructor Documentation

edu.cmu.hcii.calo.view.task.CompleteBox.CompleteBox (  ) 

Constructs a CompleteBox with no action.

edu.cmu.hcii.calo.view.task.CompleteBox.CompleteBox ( Action  a  ) 

Constructs a CompleteBox with the given action.

Parameters:
a the action to assign

edu.cmu.hcii.calo.view.task.CompleteBox.CompleteBox ( Icon  icon  ) 

Constructs a CompleteBox with the given icon.

Parameters:
icon the icon to use

edu.cmu.hcii.calo.view.task.CompleteBox.CompleteBox ( Icon  icon,
boolean  selected 
)

Constructs a CompleteBox with the given icon and initial selection state.

Parameters:
icon the icon to use
selected the initial selection state

edu.cmu.hcii.calo.view.task.CompleteBox.CompleteBox ( String  text  )  [private]

Private superclass constructor.

Do not use.

Parameters:
text text label

edu.cmu.hcii.calo.view.task.CompleteBox.CompleteBox ( String  text,
boolean  selected 
) [private]

Private superclass constructor.

Do not use.

Parameters:
text text label
selected initial selection state

edu.cmu.hcii.calo.view.task.CompleteBox.CompleteBox ( String  text,
Icon  icon 
) [private]

Private superclass constructor.

Do not use.

Parameters:
text text label
icon icon

edu.cmu.hcii.calo.view.task.CompleteBox.CompleteBox ( String  text,
Icon  icon,
boolean  selected 
) [private]

Private superclass constructor.

Do not use.

Parameters:
text text label
icon icon
selected initial selection state


Member Function Documentation

void edu.cmu.hcii.calo.view.task.CompleteBox.setText ( String  text  ) 

Throws an UnsupportedOperationException because CompleteBoxes cannot have text labels.

Parameters:
text the text to (ostensibly) set
See also:
javax.swing.AbstractButton.setText(java.lang.String)

void edu.cmu.hcii.calo.view.task.CompleteBox.fireStateChanged (  )  [protected]

Fires the state change event, and then sets the tooltip text of the button appropriately.

See also:
javax.swing.AbstractButton.fireStateChanged()

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

Sets up the visual appearance of this view.


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