|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.colle.forms.Structure
This class defines a grouping of form elements. Created: 10 Jul 2001
| Field Summary |
| Fields inherited from interface net.sf.colle.forms.FormElement |
ERROR_INVALID, ERROR_REQUIRED, UNKNOWN, VALID |
| Constructor Summary | |
Structure(String psName,
Object pxApplicationElement,
FormElement pxParent)
Create a new structure element. |
|
| Method Summary | |
void |
add(FormElement pxElement)
Appends the specified element to the end of this list. |
Object |
getApplicationElement()
Returns the application object that corresponds to this form object. |
FormElement |
getElement(String psName)
Returns a form element by it's name. |
String |
getErrorCode()
Returns the error code of the element |
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)
Maps the element into a DOM document. |
protected org.jdom.Element |
mapImpl(org.jdom.Element pxElement)
|
void |
service(HttpServletRequest pxRequest,
org.jdom.Element pxOldValue)
Process the returing 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 Structure(String psName,
Object pxApplicationElement,
FormElement pxParent)
psName - name of elementpxParent - path to the parent in the xml tree| Method Detail |
public void add(FormElement pxElement)
pxElement - element to be datapublic void map(org.jdom.Element pxElement)
map in interface FormElementpxElement - parent element to add new elements ontopublic FormElement getElement(String psName)
psName - name of form element
public String getErrorCode()
getErrorCode in interface FormElementpublic String getName()
FormElement
getName in interface FormElementFormElementpublic Object getApplicationElement()
FormElement
getApplicationElement in interface FormElementFormElementpublic String getPath()
FormElement
getPath in interface FormElementFormElement
public void service(HttpServletRequest pxRequest,
org.jdom.Element pxOldValue)
service in interface FormElementpxRequest - http request to fetch data frompxOldValue - form element details when the form was sent to the userpublic void setErrorCode(String psCode)
FormElement
setErrorCode in interface FormElementpsCode - error codeFormElementpublic void setToDefault(boolean pbRecursive)
setToDefault in interface FormElementpbRecursive - on true set child elementspublic int validate(boolean pbRecursive)
validate in interface FormElementpbRecursive - on true check child elements
protected org.jdom.Element mapImpl(org.jdom.Element pxElement)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||