org.nakedobjects.object.value
Class MultilineTextString

java.lang.Object
  extended byorg.nakedobjects.object.value.AbstractNakedValue
      extended byorg.nakedobjects.object.value.TextString
          extended byorg.nakedobjects.object.value.MultilineTextString
All Implemented Interfaces:
Naked, NakedValue, java.io.Serializable

public class MultilineTextString
extends TextString

See Also:
Serialized Form

Constructor Summary
MultilineTextString()
           
MultilineTextString(MultilineTextString textString)
           
MultilineTextString(java.lang.String text)
           
 
Method Summary
protected  boolean isCharDisallowed(char c)
          disallow CR, LF and TAB
 void restoreString(java.lang.String data)
          Takes a storage string and uses it reinstate this value object to its previous state/
 void setValue(java.lang.String text)
          Sets this object text to be same as the specified text.
 
Methods inherited from class org.nakedobjects.object.value.TextString
clear, contains, contains, copyObject, endsWith, endsWith, equals, getLogger, getObjectHelpText, isEmpty, isSameAs, isSameAs, isSameAs, isSameAs, isSameAs, parse, reset, saveString, setText, setText, setValue, startsWith, startsWith, stringValue, title
 
Methods inherited from class org.nakedobjects.object.value.AbstractNakedValue
about, addNakedValueListener, checkCanOperate, contextualTitle, deepCopy, dumpObject, fireValueChanged, fireValueChanged, getClassName, getFullClassName, isNull, isValid, nakedValueListeners, removeNakedValueListener, setAbout, setNull, setValidity, summary, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultilineTextString

public MultilineTextString()

MultilineTextString

public MultilineTextString(java.lang.String text)
Parameters:
text -

MultilineTextString

public MultilineTextString(MultilineTextString textString)
Parameters:
textString -
Method Detail

setValue

public void setValue(java.lang.String text)
Description copied from class: TextString
Sets this object text to be same as the specified text.

Overrides:
setValue in class TextString

restoreString

public void restoreString(java.lang.String data)
Description copied from interface: NakedValue
Takes a storage string and uses it reinstate this value object to its previous state/

Specified by:
restoreString in interface NakedValue
Overrides:
restoreString in class TextString

isCharDisallowed

protected boolean isCharDisallowed(char c)
Description copied from class: TextString
disallow CR, LF and TAB

Overrides:
isCharDisallowed in class TextString
Parameters:
c -
Returns:
boolean