org.oddjob.designer.components
Class BaseDC

java.lang.Object
  extended byjava.util.Observable
      extended byorg.oddjob.designer.model.DesignAdult
          extended byorg.oddjob.designer.components.BaseDC
All Implemented Interfaces:
DesignComponent
Direct Known Subclasses:
ClientDC, CopyDC, DeleteDC, EchoDC, EmptyDC, ExecDC, ExistsDC, HsqldbDC, JustJobDC, MkdirDC, OddjobDC, RenameDC, ResetJobDC, ScheduleDC, SchedulerDC, ScriptDC, ServerDC, SqlDC, StartJobDC, StructuralDC, TimerDC, TriggerDC, UnscheduleDC, VariablesDC, WaitDC

public abstract class BaseDC
extends DesignAdult
implements DesignComponent

The base class which provides default implementation for a standard DesignComponent.

This class extends DesignAdult so that a component may have DesignElement children if required.


Field Summary
protected  SimpleDE idField
           
protected  SimpleDE nameField
           
 
Fields inherited from class org.oddjob.designer.model.DesignAdult
parent
 
Constructor Summary
BaseDC()
           
 
Method Summary
 SimpleHierarchy availableActions()
           
 FieldGroup basePanel()
           
 SimpleDE getId()
           
 SimpleDE getName()
           
 java.lang.String name()
          Used to name the component in the Designer tree view.
 void name(java.lang.String name)
          Used by the DesignFactory to provide the component with a default name.
 void setId(SimpleDE id)
           
 void setName(SimpleDE name)
           
 java.lang.String tag()
          Required for producing the XML.
 void tag(java.lang.String tag)
          Used by the DesignFactory to provide the component with it's tag.
 
Methods inherited from class org.oddjob.designer.model.DesignAdult
addChild, childCount, childElements, children, children, clearChildren, createType, insertChild, parent, removeChild, supportedTypes, supportedTypes
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.oddjob.designer.model.DesignComponent
form
 

Field Detail

idField

protected SimpleDE idField

nameField

protected SimpleDE nameField
Constructor Detail

BaseDC

public BaseDC()
Method Detail

availableActions

public SimpleHierarchy availableActions()
Specified by:
availableActions in interface DesignComponent

getId

public SimpleDE getId()
Returns:
Returns the id.

setId

public void setId(SimpleDE id)
Parameters:
id - The id to set.

getName

public SimpleDE getName()

setName

public void setName(SimpleDE name)

name

public java.lang.String name()
Description copied from interface: DesignComponent
Used to name the component in the Designer tree view. This is not a getter because the name would appear in the XML where it may not be a required attribute.

Specified by:
name in interface DesignComponent
Returns:
The tag name.

name

public void name(java.lang.String name)
Description copied from interface: DesignComponent
Used by the DesignFactory to provide the component with a default name.

Specified by:
name in interface DesignComponent
Parameters:
name - The name

tag

public java.lang.String tag()
Description copied from interface: DesignComponent
Required for producing the XML.

Specified by:
tag in interface DesignComponent
Returns:
The tag name.

tag

public void tag(java.lang.String tag)
Description copied from interface: DesignComponent
Used by the DesignFactory to provide the component with it's tag.

Specified by:
tag in interface DesignComponent
Parameters:
tag - The tag.

basePanel

public FieldGroup basePanel()