de.mguennewig.pobjform
Interface ArrayElement

All Superinterfaces:
FormElement, java.lang.Iterable<FormElement>, ValueElement
All Known Subinterfaces:
PClassSearchForm.Restrict, PClassSearchForm.Sort
All Known Implementing Classes:
AbstractArrayElement, HtmlArrayElement, PClassHtmlSearchForm.HtmlRestrict, PClassHtmlSearchForm.HtmlSort, PClassSwingSearchForm.SwingRestrict, PClassSwingSearchForm.SwingSort, SwingArrayElement

public interface ArrayElement
extends ValueElement, java.lang.Iterable<FormElement>

Class description goes here.

Author:
Michael Günnewig

Method Summary
 FormElement addElement()
          Adds a form element at the end of the list.
 FormElement addElement(int index)
          Inserts the a form element at the specified position in this list.
 void clear()
          Removes all elements from this list.
 FormEntry getChildEntry()
          Returns the form entry specification for the child elements.
 FormElement getElement(int i)
          Returns the form element at the specified position in this list.
 int getNumElements()
          Returns the number of form elements in this list.
 java.util.Iterator<FormElement> iterator()
          Returns an iterator over the form elements in this list in proper sequence.
 void removeAllElements()
          Removes all form elements from this list.
 void removeElement(int index)
          Removes the form element at the specified position in this list.
 
Methods inherited from interface de.mguennewig.pobjform.ValueElement
getCurrentString, getInitialObject, getInitialString, getObject, setCurrentAsInitialState, setObject
 
Methods inherited from interface de.mguennewig.pobjform.FormElement
appendToList, getContainer, getEntry, getForm, getLabel, getProperty, getPullInPrefix, hasChanged, isMandatory, isPulledIn, isVisible, omitRowHeader, setLabel, setProperty, setPullInPrefix, setVisible, startsNewCell, validate
 

Method Detail

getChildEntry

FormEntry getChildEntry()
Returns the form entry specification for the child elements.

See Also:
ArrayEntry.getChildEntry()

addElement

FormElement addElement()
Adds a form element at the end of the list.

Returns:
The added form element.
See Also:
addElement(int)

addElement

FormElement addElement(int index)
Inserts the a form element at the specified position in this list.

Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).

Returns:
The added form element.
See Also:
PObjForm.createFormElement(FormEntry), getChildEntry()

clear

void clear()
Removes all elements from this list.


getElement

FormElement getElement(int i)
Returns the form element at the specified position in this list.


getNumElements

int getNumElements()
Returns the number of form elements in this list.


iterator

java.util.Iterator<FormElement> iterator()
Returns an iterator over the form elements in this list in proper sequence.

Specified by:
iterator in interface java.lang.Iterable<FormElement>

removeAllElements

void removeAllElements()
Removes all form elements from this list.


removeElement

void removeElement(int index)
Removes the form element at the specified position in this list.