This class is intended to be anonymously subclassed so that the performAction() method can be implemented on a case-by-case basis.
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. |
edu.cmu.hcii.calo.model.RelevantAction.RelevantAction | ( | String | title, | |
Image | icon | |||
) |
Constructs a new RelevantAction.
title | the title of this action | |
icon | the icon of this action |
IllegalArgumentException | if title or icon are null |
Image edu.cmu.hcii.calo.model.RelevantAction.getIcon | ( | ) |
Accessor method for icon.
String edu.cmu.hcii.calo.model.RelevantAction.getTitle | ( | ) |
Accessor method for 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.
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.