|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.colle.forms.FormList
This class allows form elements to repeat. Created: 08 Oct 2001
| Field Summary |
| Fields inherited from interface net.sf.colle.forms.FormElement |
ERROR_INVALID, ERROR_REQUIRED, UNKNOWN, VALID |
| Constructor Summary | |
FormList(String psName,
Object pxApplicationElement,
FormElement pxParent,
Class pxContainedClass)
Creates a new FormList that will contain form structures. |
|
| Method Summary | |
Object |
getApplicationElement()
Returns the application object that corresponds to this form object. |
String |
getErrorCode()
Returns the error code of the element. |
List |
getList()
Returns the list of repeating form structures. |
String |
getName()
Returns the name of the the form element. |
String |
getPath()
Returns the path to the form element. |
void |
map(org.jdom.Element pxElement)
Write out the the element into the DOM tree. |
void |
service(HttpServletRequest pxRequest,
org.jdom.Element pxOldValue)
Process the returning HTTP request. |
void |
setErrorCode(String psCode)
Sets the error code. |
void |
setToDefault(boolean pbRecursive)
Return value to the default settings. |
int |
validate(boolean pbRecursive)
validate the element. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FormList(String psName,
Object pxApplicationElement,
FormElement pxParent,
Class pxContainedClass)
pxContainedClass - application class this form list will contain| Method Detail |
public void map(org.jdom.Element pxElement)
FormElement
map in interface FormElementpxElement - parent element to add new elements ontoFormElementpublic String getErrorCode()
FormElement
getErrorCode in interface FormElementFormElementpublic String getName()
FormElement
getName in interface FormElementFormElementpublic String getPath()
FormElement
getPath in interface FormElementFormElementpublic Object getApplicationElement()
FormElement
getApplicationElement in interface FormElementFormElement
public void service(HttpServletRequest pxRequest,
org.jdom.Element pxOldValue)
FormElement
service in interface FormElementpxRequest - http request to fetch data frompxOldValue - form element details when the form was sent to the userFormElementpublic void setErrorCode(String psCode)
FormElement
setErrorCode in interface FormElementpsCode - error codeFormElementpublic void setToDefault(boolean pbRecursive)
FormElement
setToDefault in interface FormElementpbRecursive - on true set child elementsFormElementpublic int validate(boolean pbRecursive)
FormElement
validate in interface FormElementpbRecursive - on true check child elements
FormElementpublic List getList()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||