adapforms.form.elements
Class GroupElement

java.lang.Object
  extended by adapforms.form.elements.FormElement
      extended by adapforms.form.elements.GroupElement
All Implemented Interfaces:
ElementContainer

public class GroupElement
extends FormElement
implements ElementContainer

Allows grouping of form elements.

The group can basically be used in two ways:
(1) Logical structure invisible to the user: label is null.
(2) Both logical and visual structure (headline or similar) : label is non-null.

Author:
Henrik Gammelmark, geemark@cs.au.dk

Constructor Summary
GroupElement(java.lang.String id, SimpleLabel label, java.util.List<FormElement> elements)
           
 
Method Summary
 GroupElement clone(java.lang.String id, SimpleLabel label)
          Create a clone of the element, given a new ID and label.
 java.util.List<FormElement> getElements()
          Ordered list of form elements contained in this instance.
 java.lang.String toString()
          Used for pretty-printing the element.
 
Methods inherited from class adapforms.form.elements.FormElement
cloneFinalize, getElementID, getLabel, getRolesRead, getUIFlags, isRelevant, setRelevant, setRolesRead, setUIFlags, toStringHelper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GroupElement

public GroupElement(java.lang.String id,
                    SimpleLabel label,
                    java.util.List<FormElement> elements)
Method Detail

clone

public GroupElement clone(java.lang.String id,
                          SimpleLabel label)
Description copied from class: FormElement
Create a clone of the element, given a new ID and label.

Important: The method should call FormElement.cloneFinalize(FormElement) before returning. This adds common parameters to the clone.

Specified by:
clone in class FormElement

getElements

public java.util.List<FormElement> getElements()
Description copied from interface: ElementContainer
Ordered list of form elements contained in this instance.

Specified by:
getElements in interface ElementContainer

toString

public java.lang.String toString()
Description copied from class: FormElement
Used for pretty-printing the element. See Form.prettyPrintStructure().

Specified by:
toString in class FormElement