Class InvestigatorTabJob
- java.lang.Object
-
- adams.gui.tools.wekainvestigator.job.InvestigatorTabJob
-
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
InvestigatorTabRunnableJob
public abstract class InvestigatorTabJob extends Object implements Runnable
For running jobs in aAbstractInvestigatorTab.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractInvestigatorTabm_Ownerthe owner.protected Stringm_Titlethe title of the job.
-
Constructor Summary
Constructors Constructor Description InvestigatorTabJob(AbstractInvestigatorTab owner, String title)Initializes the job.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voiddoRun()Performs the actual execution.AbstractInvestigatorTabgetOwner()Returns the owner.StringgetTitle()Returns the title of the job.protected voidpostRun()Gets called after execution.protected voidpreRun()Gets called before the execution.voidrun()Executes the job.
-
-
-
Field Detail
-
m_Owner
protected AbstractInvestigatorTab m_Owner
the owner.
-
m_Title
protected String m_Title
the title of the job.
-
-
Constructor Detail
-
InvestigatorTabJob
public InvestigatorTabJob(AbstractInvestigatorTab owner, String title)
Initializes the job.- Parameters:
owner- the owning tab
-
-
Method Detail
-
getOwner
public AbstractInvestigatorTab getOwner()
Returns the owner.- Returns:
- the owner
-
getTitle
public String getTitle()
Returns the title of the job.- Returns:
- the title
-
preRun
protected void preRun()
Gets called before the execution.
-
doRun
protected abstract void doRun()
Performs the actual execution.
-
postRun
protected void postRun()
Gets called after execution.
-
-