de.matthiasmann.twl.textarea
Class TextAreaModel.ContainerElement

java.lang.Object
  extended by de.matthiasmann.twl.textarea.TextAreaModel.Element
      extended by de.matthiasmann.twl.textarea.TextAreaModel.ContainerElement
All Implemented Interfaces:
java.lang.Iterable<TextAreaModel.Element>
Direct Known Subclasses:
TextAreaModel.BlockElement, TextAreaModel.LinkElement, TextAreaModel.ListElement, TextAreaModel.OrderedListElement, TextAreaModel.ParagraphElement, TextAreaModel.TableCellElement
Enclosing interface:
TextAreaModel

public static class TextAreaModel.ContainerElement
extends TextAreaModel.Element
implements java.lang.Iterable<TextAreaModel.Element>


Field Summary
protected  java.util.ArrayList<TextAreaModel.Element> children
           
 
Constructor Summary
TextAreaModel.ContainerElement(Style style)
           
 
Method Summary
 void add(TextAreaModel.Element element)
           
 TextAreaModel.Element getElement(int index)
           
 int getNumElements()
           
 java.util.Iterator<TextAreaModel.Element> iterator()
           
 
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
 

Field Detail

children

protected final java.util.ArrayList<TextAreaModel.Element> children
Constructor Detail

TextAreaModel.ContainerElement

public TextAreaModel.ContainerElement(Style style)
Method Detail

iterator

public java.util.Iterator<TextAreaModel.Element> iterator()
Specified by:
iterator in interface java.lang.Iterable<TextAreaModel.Element>

getElement

public TextAreaModel.Element getElement(int index)

getNumElements

public int getNumElements()

add

public void add(TextAreaModel.Element element)