|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mguennewig.pobjform.AbstractFormElement
de.mguennewig.pobjform.AbstractValueElement
de.mguennewig.pobjform.AbstractArrayElement
public abstract class AbstractArrayElement
Abstract array element.
| Constructor Summary | |
|---|---|
AbstractArrayElement(PObjForm form,
ArrayEntry entry)
Creates a new abstract array element. |
|
| 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 |
appendToList(java.util.List<FormElement> list)
|
void |
clear()
Removes all elements from this list. |
FormEntry |
getChildEntry()
Returns the form entry specification for the child elements. |
java.lang.String |
getCurrentString()
Returns the string representation of the current object. |
FormElement |
getElement(int i)
Returns the form element at the specified position in this list. |
java.util.List<java.lang.Object> |
getInitialObject()
Returns the initial object. |
java.lang.String |
getInitialString()
Returns the string representation of the initial object. |
int |
getNumElements()
Returns the number of form elements in this list. |
java.util.List<java.lang.Object> |
getObject()
Returns the current object. |
boolean |
hasChanged()
Tests whether the data for this element has been changed. |
boolean |
isMandatory()
Tests whether data for this element must be entered. |
boolean |
isVisible()
Tests whether this element will write anything visible. |
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. |
void |
setCurrentAsInitialState()
Copies the current state to the initial state. |
void |
setObject(java.lang.Object obj)
Sets the current object to the new value. |
void |
setProperty(java.lang.String property)
Sets the property to a new value, and propagates the change to all child elements. |
void |
setVisible(boolean visible)
Sets whether this element will be written visibly. |
void |
validate()
Checks for a valid value in this form element and any possible children. |
| Methods inherited from class de.mguennewig.pobjform.AbstractFormElement |
|---|
getContainer, getEntry, getForm, getLabel, getProperty, getPullInPrefix, isPulledIn, omitRowHeader, setLabel, setPullInPrefix, startsNewCell |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.mguennewig.pobjform.FormElement |
|---|
getContainer, getEntry, getForm, getLabel, getProperty, getPullInPrefix, isPulledIn, omitRowHeader, setLabel, setPullInPrefix, startsNewCell |
| Constructor Detail |
|---|
public AbstractArrayElement(PObjForm form,
ArrayEntry entry)
| Method Detail |
|---|
public final void setProperty(java.lang.String property)
setProperty in interface FormElementsetProperty in class AbstractFormElementpublic final boolean isMandatory()
isMandatory in interface FormElementfalse;public boolean isVisible()
isVisible in interface FormElementfalse;public void setVisible(boolean visible)
setVisible in interface FormElementpublic void appendToList(java.util.List<FormElement> list)
appendToList in interface FormElementappendToList in class AbstractFormElementpublic final boolean hasChanged()
hasChanged in interface FormElementpublic final void validate()
validate in interface FormElementpublic final java.util.List<java.lang.Object> getObject()
getObject in interface ValueElementList of the values of the child elements. The list is
empty if the child elements are not ValueElements.public final void setObject(java.lang.Object obj)
setObject in interface ValueElementobj - Must be a List that specifies the values for the child
elements.setObject(List)public final java.util.List<java.lang.Object> getInitialObject()
getInitialObject in interface ValueElementList of the values of the child elements. The list is
empty if the child elements are not ValueElements.public final void setCurrentAsInitialState()
setCurrentAsInitialState in interface ValueElementpublic final java.lang.String getInitialString()
getInitialString in interface ValueElementpublic final java.lang.String getCurrentString()
getCurrentString in interface ValueElementpublic final FormEntry getChildEntry()
getChildEntry in interface ArrayElementArrayEntry.getChildEntry()public final FormElement addElement()
addElement in interface ArrayElementArrayElement.addElement(int)public FormElement addElement(int index)
Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).
addElement in interface ArrayElementPObjForm.createFormElement(FormEntry),
ArrayElement.getChildEntry()public void clear()
clear in interface ArrayElementpublic final FormElement getElement(int i)
getElement in interface ArrayElementpublic final int getNumElements()
getNumElements in interface ArrayElementpublic final java.util.Iterator<FormElement> iterator()
iterator in interface ArrayElementiterator in interface java.lang.Iterable<FormElement>public void removeAllElements()
removeAllElements in interface ArrayElementpublic void removeElement(int index)
removeElement in interface ArrayElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||