org.oddjob.designer.elements
Class MultiLineBaseDE

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
                  extended byorg.oddjob.designer.elements.MultiLineBaseDE
All Implemented Interfaces:
DesignAttribute, DesignElement
Direct Known Subclasses:
MultiLineTextDE, ValueDE

public abstract class MultiLineBaseDE
extends DesignElementAttribute

This is the base type for a text type that can contain multline text.


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

Constructor Detail

MultiLineBaseDE

public MultiLineBaseDE()
Method Detail

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
Overrides:
hasDetail in class DesignElementType

detail

public DesignDefinition detail()
Description copied from interface: DesignElement
The method is overridden by sub classes which have a detailed definition for their configuration. For DesignElement which hasn't got detail this method should never be called, and as such it should throw a RuntimeException if it is.

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

attribute

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

Specified by:
attribute in interface DesignAttribute
Overrides:
attribute in class DesignElementAttribute

attribute

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

Specified by:
attribute in interface DesignAttribute
Overrides:
attribute in class DesignElementAttribute

addText

public void addText(java.lang.String text)
Add text. This method uses the attribute to store text. It will only be moved to the text field on reading.

Parameters:
text -

getValue

public java.lang.String getValue()

text

public java.lang.String text()

setValue

public void setValue(java.lang.String value)

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 DesignElementAttribute