org.oddjob.designer.model
Class DesignElementType

java.lang.Object
  extended byjava.util.Observable
      extended byorg.oddjob.designer.model.DesignAdult
          extended byorg.oddjob.designer.model.DesignElementType
All Implemented Interfaces:
DesignElement
Direct Known Subclasses:
BrokenScheduleDE, BufferDE, DesignElementAttribute, EnvironmentDE, FileDE, FormatDE, IntervalScheduleDE, NowScheduleDE, ParentSchedule, PropertiesDE, PropertyDE, ScheduleInstructionDE, SystemDE

public abstract class DesignElementType
extends DesignAdult
implements DesignElement

A DesignElementType is a DesignElement which can be created from a factory. These are the configuration elements for the ValueType objects that appear in Variables and Lists.

Author:
Rob Gordon.

Field Summary
protected  java.util.Observer detailObserver
           
 
Fields inherited from class org.oddjob.designer.model.DesignAdult
parent
 
Constructor Summary
DesignElementType()
          Constructor.
 
Method Summary
 void clear()
          Clear the DesignElement of Data.
 DesignDefinition detail()
          The method is overridden by sub classes which have a detailed definition for their configuration.
 SimpleTextAttribute getName()
          Get the name.
 boolean hasDetail()
          Has the the element got detail, i.e more than just an attribute.
 void setName(SimpleTextAttribute name)
          Set the name.
 java.lang.String type()
          Get the type.
 void type(java.lang.String type)
          Set the type.
 
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
 

Field Detail

detailObserver

protected java.util.Observer detailObserver
Constructor Detail

DesignElementType

public DesignElementType()
Constructor.

Method Detail

type

public void type(java.lang.String type)
Set the type. This will be called by the factory after creation.

Parameters:
type -

type

public java.lang.String type()
Get the type. This is used as the element name.

Returns:
The type.

setName

public void setName(SimpleTextAttribute name)
Set the name.

Parameters:
name - The name.

getName

public SimpleTextAttribute getName()
Get the name.

Returns:
The name.

hasDetail

public boolean hasDetail()
Description copied from interface: DesignElement
Has the the element got detail, i.e more than just an attribute.

Specified by:
hasDetail in interface DesignElement
Returns:
true if it has, false otherwise.

detail

public DesignDefinition detail()
The method is overridden by sub classes which have a detailed definition for their configuration.

Specified by:
detail in interface DesignElement
Returns:
The DesignDefinition for their configuration.

clear

public void clear()
Clear the DesignElement of Data. This method will be called when a selection changes.

Specified by:
clear in interface DesignElement