org.oddjob.jobs.swing
Class ChooseFile

java.lang.Object
  extended byorg.oddjob.framework.BaseComponent
      extended byorg.oddjob.framework.BasePrimary
          extended byorg.oddjob.framework.SimpleJob
              extended byorg.oddjob.jobs.swing.ChooseFile
All Implemented Interfaces:
Iconic, Resetable, java.lang.Runnable, Stateful

public class ChooseFile
extends SimpleJob

Pop up a dialog to select a file.

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
ChooseFile()
           
 
Method Summary
 int execute()
          Execute this job.
 java.io.File getChosen()
           
 void setDir(java.io.File dir)
           
 
Methods inherited from class org.oddjob.framework.SimpleJob
hardReset, independant, onStop, 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.Stateful
addJobStateListener, removeJobStateListener
 

Constructor Detail

ChooseFile

public ChooseFile()
Method Detail

getChosen

public java.io.File getChosen()

setDir

public void setDir(java.io.File dir)

execute

public 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.