org.oddjob.designer
Class OddjobDesigner

java.lang.Object
  extended byorg.oddjob.framework.BaseComponent
      extended byorg.oddjob.framework.BasePrimary
          extended byorg.oddjob.framework.SimpleJob
              extended byorg.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

Field Summary
 
Fields inherited from class org.oddjob.framework.BasePrimary
stop
 
Fields inherited from class org.oddjob.framework.BaseComponent
changes, destroyed, iconHelper, location, lock, stateHandler
 
Constructor Summary
OddjobDesigner()
          Constructor.
 
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.SimpleJob
hardReset, independant, run, softReset, stop
 
Methods inherited from class org.oddjob.framework.BasePrimary
configurationComplete, getLogger, getName, logger, setContext, setJobStateReady, setLogger, setName, sleep, toString
 
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
 
Methods inherited from interface org.oddjob.Stoppable
stop
 
Methods inherited from interface org.oddjob.Stateful
addJobStateListener, removeJobStateListener
 

Constructor Detail

OddjobDesigner

public OddjobDesigner()
Constructor.

Method Detail

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