org.oddjob.designer.model
Class DesignElementAttribute

java.lang.Object
  extended byjava.util.Observable
      extended byorg.oddjob.designer.model.DesignAdult
          extended byorg.oddjob.designer.model.DesignElementType
              extended byorg.oddjob.designer.model.DesignElementAttribute
All Implemented Interfaces:
DesignAttribute, DesignElement
Direct Known Subclasses:
ConnectionDE, DateDE, FilePersisterDE, FilesDE, InputDE, ListDE, MapDE, MultiLineBaseDE, OutputDE, ScheduleDE, ScheduleListDE, SingleSelectionDE, SqlPersisterDE

public abstract class DesignElementAttribute
extends DesignElementType
implements DesignAttribute

A DesignElement which can also be an attribute. Subclasses of this type are for the most flexible types. The types these DesignElements represent can appear as attributes, as types (in lists, variables etc) and inline.

Author:
Rob Gordon.

Field Summary
 
Fields inherited from class org.oddjob.designer.model.DesignElementType
detailObserver
 
Fields inherited from class org.oddjob.designer.model.DesignAdult
parent
 
Constructor Summary
DesignElementAttribute()
           
 
Method Summary
 java.lang.String attribute()
          Get the attribute text.
 void attribute(java.lang.String value)
          Set the attribute text.
 void clear()
          Clear the DesignElement of Data.
 
Methods inherited from class org.oddjob.designer.model.DesignElementType
detail, getName, hasDetail, setName, type, 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
 
Methods inherited from interface org.oddjob.designer.model.DesignElement
detail, hasDetail
 

Constructor Detail

DesignElementAttribute

public DesignElementAttribute()
Method Detail

attribute

public java.lang.String attribute()
Description copied from interface: DesignAttribute
Get the attribute text.

Specified by:
attribute in interface DesignAttribute
Returns:
The attribute text. Can be null.

attribute

public void attribute(java.lang.String value)
Description copied from interface: DesignAttribute
Set the attribute text.

Specified by:
attribute in interface DesignAttribute
Parameters:
value - The attribute. May be null.

clear

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

Specified by:
clear in interface DesignElement
Overrides:
clear in class DesignElementType