de.matthiasmann.twl.textarea
Interface TextAreaModel

All Superinterfaces:
java.lang.Iterable<TextAreaModel.Element>
All Known Implementing Classes:
HTMLTextAreaModel, SimpleTextAreaModel

public interface TextAreaModel
extends java.lang.Iterable<TextAreaModel.Element>

Data model for the TextArea widget.


Nested Class Summary
static class TextAreaModel.BlockElement
           
static class TextAreaModel.Clear
           
static class TextAreaModel.ContainerElement
           
static class TextAreaModel.Display
           
static class TextAreaModel.Element
           
static class TextAreaModel.FloatPosition
           
static class TextAreaModel.HAlignment
           
static class TextAreaModel.ImageElement
           
static class TextAreaModel.LineBreakElement
           
static class TextAreaModel.LinkElement
           
static class TextAreaModel.ListElement
          A list item in an unordered list
static class TextAreaModel.OrderedListElement
          An ordered list.
static class TextAreaModel.ParagraphElement
           
static class TextAreaModel.TableCellElement
           
static class TextAreaModel.TableElement
           
static class TextAreaModel.TextElement
           
static class TextAreaModel.VAlignment
           
static class TextAreaModel.WidgetElement
           
 
Method Summary
 void addCallback(java.lang.Runnable cb)
          Adds a model change callback which is called when the model is modified.
 void removeCallback(java.lang.Runnable cb)
          Removes the specific callback.
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

addCallback

void addCallback(java.lang.Runnable cb)
Adds a model change callback which is called when the model is modified.

Parameters:
cb - the callback - must not be null.

removeCallback

void removeCallback(java.lang.Runnable cb)
Removes the specific callback.

Parameters:
cb - the callback that should be removed.