org.oddjob.designer.elements
Class MultiLineTextDE

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

public class MultiLineTextDE
extends MultiLineBaseDE

The type is used to define an attribute of some type which can contain multiline text. The incoming XML could be of the form.

1. The text attribute of a type.

 <sometype text="Some text"/>
 
2. inlined like this.
 <sometype>
   <text value="Some text"/>
 </sometype>
 
3. Or like this.
 <sometype>
   <text>Some text"</text>
 </sometype>
 
This class will read in all the above but when returning the XML it will always inline if the text contains a \n and will alway return 1 instead of 2.


Field Summary
 
Fields inherited from class org.oddjob.designer.model.DesignElementType
detailObserver
 
Fields inherited from class org.oddjob.designer.model.DesignAdult
parent
 
Constructor Summary
MultiLineTextDE()
           
 
Method Summary
 java.lang.String getValue()
           
 
Methods inherited from class org.oddjob.designer.elements.MultiLineBaseDE
addText, attribute, attribute, clear, detail, hasDetail, setValue, 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

MultiLineTextDE

public MultiLineTextDE()
Method Detail

getValue

public java.lang.String getValue()
Overrides:
getValue in class MultiLineBaseDE