org.oddjob.designer
Class OddjobDesigner
java.lang.Object
org.oddjob.framework.BaseComponent
org.oddjob.framework.BasePrimary
org.oddjob.framework.SimpleJob
org.oddjob.designer.OddjobDesigner
- All Implemented Interfaces:
- Iconic, Resetable, java.lang.Runnable, Stateful, Stoppable
- public class OddjobDesigner
- extends SimpleJob
- implements Stoppable
- Description:
- Run a GUI designer for Oddjob.
- Author:
- Rob Gordon
|
Method Summary |
protected int |
execute()
Execute this job. |
void |
forceLoad(java.io.File file)
|
java.io.File |
getFile()
Get the config file name. |
protected void |
load()
Load Oddjob from the configuration file. |
void |
onStop()
Stop the monitor. |
void |
save()
|
void |
setDir(java.io.File dir)
Set the default directory. |
void |
setExplorer(OddjobExplorer expl)
|
void |
setFile(java.io.File configFile)
Set the config file name. |
| Methods inherited from class org.oddjob.framework.BaseComponent |
addIconListener, addJobStateListener, addPropertyChangeListener, arooaRuntime, arooaRuntime, canHardReset, canSoftReset, configure, destroy, getLocation, iconForId, lastJobStateEvent, onDestroy, removeIconListener, removeJobStateListener, removePropertyChangeListener, setJobStateComplete, setJobStateException, setJobStateNotComplete |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
OddjobDesigner
public OddjobDesigner()
- Constructor.
setFile
public void setFile(java.io.File configFile)
- Set the config file name.
- Parameters:
configFile - The config file name.
getFile
public java.io.File getFile()
- Get the config file name.
- Returns:
- The config file name.
setDir
public void setDir(java.io.File dir)
- Set the default directory.
- Parameters:
dir - A directory.
setExplorer
public void setExplorer(OddjobExplorer expl)
forceLoad
public void forceLoad(java.io.File file)
load
protected void load()
- Load Oddjob from the configuration file.
save
public void save()
execute
protected int execute()
throws java.lang.Exception
- Description copied from class:
SimpleJob
- Execute this job.
- Specified by:
execute in class SimpleJob
- Returns:
- 0 if the job is complete, anything else otherwise.
- Throws:
java.lang.Exception - If the unexpected occurs.
onStop
public void onStop()
- Stop the monitor.
- Overrides:
onStop in class SimpleJob