de.matthiasmann.twl.textarea
Class TextAreaModel.TextElement

java.lang.Object
  extended by de.matthiasmann.twl.textarea.TextAreaModel.Element
      extended by de.matthiasmann.twl.textarea.TextAreaModel.TextElement
Enclosing interface:
TextAreaModel

public static class TextAreaModel.TextElement
extends TextAreaModel.Element


Constructor Summary
TextAreaModel.TextElement(Style style, java.lang.String text)
           
 
Method Summary
 java.lang.String getText()
          Returns ths text.
 void setText(java.lang.String text)
          Replaces the text of this element.
 
Methods inherited from class de.matthiasmann.twl.textarea.TextAreaModel.Element
getStyle, setStyle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextAreaModel.TextElement

public TextAreaModel.TextElement(Style style,
                                 java.lang.String text)
Method Detail

getText

public java.lang.String getText()
Returns ths text.

Returns:
the text.

setText

public void setText(java.lang.String text)
Replaces the text of this element. This method does not cause the model callback to be fired.

Parameters:
text - the new text. Must not be null.