Package adams.flow.control
Class AbstractTee.TeeSwingWorker
- java.lang.Object
-
- javax.swing.SwingWorker<String,Object>
-
- adams.flow.control.AbstractTee.TeeSwingWorker
-
- All Implemented Interfaces:
Runnable
,Future<String>
,RunnableFuture<String>
- Enclosing class:
- AbstractTee
public static class AbstractTee.TeeSwingWorker extends SwingWorker<String,Object>
SwingWorker for asynchronous execution of the tee's sub-actors.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.SwingWorker
SwingWorker.StateValue
-
-
Field Summary
Fields Modifier and Type Field Description protected Token
m_Input
the input token.protected AbstractTee
m_Owner
the owning tee actor.
-
Constructor Summary
Constructors Constructor Description TeeSwingWorker(AbstractTee owner, Token input)
Initializes the worker.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
doInBackground()
Executes the sub-actors.protected void
done()
Execution finished.-
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress
-
-
-
-
Field Detail
-
m_Owner
protected AbstractTee m_Owner
the owning tee actor.
-
m_Input
protected Token m_Input
the input token.
-
-
Constructor Detail
-
TeeSwingWorker
public TeeSwingWorker(AbstractTee owner, Token input)
Initializes the worker.- Parameters:
owner
- the owning tee actorinput
- the current input token
-
-
Method Detail
-
doInBackground
protected String doInBackground() throws Exception
Executes the sub-actors.- Specified by:
doInBackground
in classSwingWorker<String,Object>
- Returns:
- the result of the execution, null if everything OK, otherwise error message
- Throws:
Exception
-
done
protected void done()
Execution finished.- Overrides:
done
in classSwingWorker<String,Object>
-
-