org.oddjob.arooa.design.designer
Class ArooaDesigner

java.lang.Object
  extended by org.oddjob.arooa.design.designer.ArooaDesigner
All Implemented Interfaces:
Runnable, ArooaSessionAware

public class ArooaDesigner
extends Object
implements ArooaSessionAware, Runnable

Description

Run a GUI designer for Oddjob.
Author:
Rob Gordon

Field Summary
 boolean stop
           
 
Constructor Summary
ArooaDesigner()
          Constructor.
 
Method Summary
 ArooaType getArooaType()
           
 File getDir()
           
 ArooaElement getDocumentElement()
          Get the root element.
 File getFile()
          Get the config file name.
 JFrame getFrame()
           
 DesignFactory getRootFactory()
           
 void load(File file)
           
 void run()
           
 void setArooaSession(ArooaSession session)
           
 void setArooaType(ArooaType component)
           
 void setDir(File dir)
          Set the default directory.
 void setDocumentElement(ArooaElement documentElement)
          Set the root element when a designer is restricted to a single root element.
 void setFile(File configFile)
          Set the config file name.
 void setRootFactory(DesignFactory designFactory)
           
 void stop()
          Stop the monitor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stop

public volatile boolean stop
Constructor Detail

ArooaDesigner

public ArooaDesigner()
Constructor.

Method Detail

setArooaSession

public void setArooaSession(ArooaSession session)
Specified by:
setArooaSession in interface ArooaSessionAware

setFile

public void setFile(File configFile)
Set the config file name.

Parameters:
configFile - The config file name.

getFile

public File getFile()
Get the config file name.

Returns:
The config file name.

setDir

public void setDir(File dir)
Set the default directory.

Parameters:
dir - A directory.

getDir

public File getDir()

load

public void load(File file)
          throws FileNotFoundException
Throws:
FileNotFoundException

run

public void run()
Specified by:
run in interface Runnable

stop

public void stop()
Stop the monitor.


getFrame

public JFrame getFrame()

getRootFactory

public DesignFactory getRootFactory()

setRootFactory

public void setRootFactory(DesignFactory designFactory)

getDocumentElement

public ArooaElement getDocumentElement()
Get the root element.

Returns:

setDocumentElement

public void setDocumentElement(ArooaElement documentElement)
Set the root element when a designer is restricted to a single root element.

Parameters:
documentElement -

getArooaType

public ArooaType getArooaType()

setArooaType

public void setArooaType(ArooaType component)