Package adams.gui.core
Class DelayedActionRunnable.AbstractAction
- java.lang.Object
-
- adams.gui.core.DelayedActionRunnable.AbstractAction
-
- Enclosing class:
- DelayedActionRunnable
public abstract static class DelayedActionRunnable.AbstractAction extends Object
Ancestor for actions to be executed after a delay.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description protected DelayedActionRunnable
m_Owner
the owning thread.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractAction(DelayedActionRunnable owner)
Initializes the action.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract String
execute()
Executes the action.DelayedActionRunnable
getOwner()
Returns the owning runnable.
-
-
-
Field Detail
-
m_Owner
protected DelayedActionRunnable m_Owner
the owning thread.
-
-
Constructor Detail
-
AbstractAction
protected AbstractAction(DelayedActionRunnable owner)
Initializes the action.- Parameters:
owner
- the owning runnable
-
-
Method Detail
-
getOwner
public DelayedActionRunnable getOwner()
Returns the owning runnable.- Returns:
- the owner
-
execute
public abstract String execute()
Executes the action.- Returns:
- null if successful, otherwise error message
-
-