edu.neu.ccs.gui
Class ThreadedAction
java.lang.Object
edu.neu.ccs.gui.ActionWrapper
edu.neu.ccs.gui.ThreadedAction
- All Implemented Interfaces:
- Action, ActionListener, EventListener
- public class ThreadedAction
- extends ActionWrapper
An ActionWrapper that performs
its encapsulated action in a newly created separate thread.
- Since:
- 2.0
- Version:
- 2.2
|
Method Summary |
void |
actionPerformed(ActionEvent event)
Invokes the actionPerformed method
of the encapsulated action
in a newly created separate thread
that is executed as a daemon thread. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThreadedAction
public ThreadedAction()
- Constructs an empty wrapper .
ThreadedAction
public ThreadedAction(Action action)
- Constructs a wrapper that encapsulates the given action.
- Parameters:
action - the action to encapsulate
and perform in a separate thread
actionPerformed
public void actionPerformed(ActionEvent event)
- Invokes the
actionPerformed method
of the encapsulated action
in a newly created separate thread
that is executed as a daemon thread.
- Specified by:
actionPerformed in interface ActionListener- Specified by:
actionPerformed in class ActionWrapper
- Parameters:
event - the event that invoked this action