edu.cmu.hcii.calo.model.RelevantAction Class Reference

List of all members.

Detailed Description

Represents a CALO action, displayed in the Relevant Info pane.

This class is intended to be anonymously subclassed so that the performAction() method can be implemented on a case-by-case basis.

Author:
Brian Ellis


Public Member Functions

 RelevantAction (String title, Image icon)
 Constructs a new RelevantAction.
Image getIcon ()
 Accessor method for icon.
String getTitle ()
 Accessor method for title.
abstract void performAction ()
 Performs the action associated with this RelevantAction.

Private Attributes

String title
 The title of this action, shown in the interface.
Image icon
 The icon for this action.


Constructor & Destructor Documentation

edu.cmu.hcii.calo.model.RelevantAction.RelevantAction ( String  title,
Image  icon 
)

Constructs a new RelevantAction.

Parameters:
title the title of this action
icon the icon of this action
Exceptions:
IllegalArgumentException if title or icon are null


Member Function Documentation

Image edu.cmu.hcii.calo.model.RelevantAction.getIcon (  ) 

Accessor method for icon.

Returns:
the value of icon

String edu.cmu.hcii.calo.model.RelevantAction.getTitle (  ) 

Accessor method for title.

Returns:
the value of title

abstract void edu.cmu.hcii.calo.model.RelevantAction.performAction (  )  [pure virtual]

Performs the action associated with this RelevantAction.

This is an abstract method because each RelevantAction has a unique associated action that it performs.


Member Data Documentation

String edu.cmu.hcii.calo.model.RelevantAction.title [private]

The title of this action, shown in the interface.

Image edu.cmu.hcii.calo.model.RelevantAction.icon [private]

The icon for this action.


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