edu.neu.ccs.gui
Class ChangeAction
java.lang.Object
javax.swing.AbstractAction
edu.neu.ccs.gui.ChangeAction
- All Implemented Interfaces:
- Action, ActionListener, Cloneable, EventListener, Serializable
- public abstract class ChangeAction
- extends AbstractAction
Encapsulates an action that is performed
as a result of a ChangeEvent.
- Since:
- 1.0.1
- Version:
- 2.2
- See Also:
- Serialized Form
|
Constructor Summary |
ChangeAction()
Constructs a change action with no name or icon. |
ChangeAction(String name)
Constructs a change action with the given name but no icon. |
ChangeAction(String name,
Icon icon)
Constructs a change action with the given name and icon. |
ChangeAction
public ChangeAction()
- Constructs a change action with no name or icon.
ChangeAction
public ChangeAction(String name)
- Constructs a change action with the given name but no icon.
- Parameters:
name - the name for this action
ChangeAction
public ChangeAction(String name,
Icon icon)
- Constructs a change action with the given name and icon.
- Parameters:
name - the name for this actionicon - the icon for this action
actionPerformed
public final void actionPerformed(ActionEvent evt)
- Performs this action by calling the
changeActionPerformed method of this class
intended to perform tasks requiring information
contained in the ChangeEvent
triggering this action.
If the given event is not a
ChangeActionEvent,
this action is not performed.
- Parameters:
evt - an object encapsulating an event
that triggered this action
changeActionPerformed
public abstract void changeActionPerformed(ChangeEvent gevt)
- Performs the tasks encapsulated by this action.
Subclasses should override this method to provide
tasks this action performs.
- Parameters:
gevt - the change event that triggered this action