Copyright 2002 by aragost

com.aragost.html
Class ElementGroup

java.lang.Object
  |
  +--com.aragost.html.Element
        |
        +--com.aragost.html.ElementGroup

public class ElementGroup
extends Element


Constructor Summary
ElementGroup()
           
 
Method Summary
 void add(Element elm)
          Add an html element to the receiver.
 java.util.List getElements()
          Return the elements contained in the receiver
 boolean isEmpty()
          Checks if the receiver is empty or not, that is if it contains zero elements.
 boolean isNowrap()
          Returns the nowrap.
 void setNowrap(boolean nowrap)
          Sets the nowrap.
 int size()
          Return the number of elements contained in the receiver
 void writeTo(HtmlWriter writer)
          Write the receiver to the specified html writer
 
Methods inherited from class com.aragost.html.Element
isCellLike
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementGroup

public ElementGroup()
Method Detail

writeTo

public void writeTo(HtmlWriter writer)
Write the receiver to the specified html writer

Specified by:
writeTo in class Element
Parameters:
writer - The writer to write the receiver to

add

public void add(Element elm)
Add an html element to the receiver.

Parameters:
elm - The element to add

getElements

public java.util.List getElements()
Return the elements contained in the receiver

Returns:
The elements

isNowrap

public boolean isNowrap()
Returns the nowrap. If a Cell is create with this ElementGroup as contents then the cell gets the nowrap attribute set.

Overrides:
isNowrap in class Element
Returns:
boolean

setNowrap

public void setNowrap(boolean nowrap)
Sets the nowrap.

Parameters:
nowrap - The nowrap to set

size

public int size()
Return the number of elements contained in the receiver

Returns:
the number of elements

isEmpty

public boolean isEmpty()
Checks if the receiver is empty or not, that is if it contains zero elements.

Returns:
true if the receiver is empty

Copyright 2002 by aragost