|
PAJES 2.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pajes.html.Tag
org.pajes.html.TraversableElement
org.pajes.html.Container
org.pajes.html.Form
Container class for form elements
| Field Summary |
| Fields inherited from class org.pajes.html.Tag |
ON_CLICK_ATTRIBUTE, TAG_CLOSE, TAG_LEFT, TAG_RIGHT |
| Constructor Summary | |
Form()
Creates an empty form with a defualt name. |
|
Form(java.lang.String formName)
Creates a form with the specified name. |
|
Form(java.lang.String formName,
java.lang.String actionURL)
Creates a form with the specified name and a specified action URL. |
|
Form(java.lang.String formName,
java.lang.String actionURL,
java.lang.String targetFrame)
Creates a form with the specified name and an action URL to be directed to a specified frame. |
|
| Method Summary | |
Container |
add(HTML htmlObject)
Over-rides Container.add(HTML) to ensure that the validation
function is not added to the form. |
java.lang.Object |
clone()
Allows a form to be cloned. |
java.lang.String |
getActionURL()
Returns the action URL for this form. |
java.lang.String |
getName()
Returns the name of this form. |
java.lang.String |
getOnChangeFlagName()
Returns the name of the JavaScript variable that flags that changes have been made to the form. |
java.lang.String |
getValidationFunctionName()
Returns the name of the JavaScript validation function that will validate the fields on this form. |
protected org.pajes.html.Tag.Attributes |
initAttributes()
Called whenever a new, empty set of tag attributes is required. |
Form |
setActionURL(java.lang.String actionURL)
Sets the URL to invoked to process the contents of the form. |
protected void |
setAttribute(TagAttribute attribute)
Adds the specified attribute. |
Form |
setFormName(java.lang.String formName)
Sets the name of the form. |
Form |
setMimeType(java.lang.String mimeType)
Sets the MIME encoding type of the form. |
Form |
setOnResetHandler(java.lang.String onResetHandler)
Sets the JavaScript handler for this event. |
Form |
setOnSubmitHandler(java.lang.String onSubmitHandler)
Sets the JavaScript handler for this event. |
Form |
setTargetFrame(java.lang.String targetFrame)
Sets the target frame for the results of the form processing. |
Form |
setUseGetMethod()
Specifies that the form should be submitted using the HTTP GET method. |
Form |
setUsePostMethod()
Specifies that the form should be submitted using the HTTP POST method. |
protected void |
writeContent(Browser browser)
Loops through the container and gets each object contained within it and invokes that objects write method. |
| Methods inherited from class org.pajes.html.Container |
add, add, add, addContent, clear, delete, delete, destroy, get, getContent, getContents, getPosition, insert, replace, set, setContent, setContent, size |
| Methods inherited from class org.pajes.html.TraversableElement |
dump, dump, getAll, getFieldByName, getFirstFieldByName, getFirstTagByAttribute, getFirstTagByClass, getFirstTagByID, getFirstTagByName, getTagByAttribute, getTagByClass, getTagByID, getTagByName, setWritable |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Form()
public Form(java.lang.String formName)
formName - the name of the form.
public Form(java.lang.String formName,
java.lang.String actionURL)
formName - the name of the form.actionURL - the URL to process the form contents.
public Form(java.lang.String formName,
java.lang.String actionURL,
java.lang.String targetFrame)
formName - the name of the form.actionURL - the URL to process the form contents.targetFrame - the name of the frame to receive the result document.| Method Detail |
public Form setActionURL(java.lang.String actionURL)
actionURL - the URL to process the form contents.
public java.lang.String getActionURL()
public Form setFormName(java.lang.String formName)
formName - the name of the form.
public Form setMimeType(java.lang.String mimeType)
mimeType - the MIME type to be used to set the encoding of the form
when it is submitted.
public java.lang.String getName()
public java.lang.String getOnChangeFlagName()
public Form setOnResetHandler(java.lang.String onResetHandler)
onResetHandler - the JavaScript handler for this event.
public Form setOnSubmitHandler(java.lang.String onSubmitHandler)
onSubmitHandler - the JavaScript handler for this event.
public Form setTargetFrame(java.lang.String targetFrame)
targetFrame - the name of the frame to receive the result document.
public Form setUseGetMethod()
setUsePostMethod()public Form setUsePostMethod()
setUseGetMethod()public java.lang.String getValidationFunctionName()
public Container add(HTML htmlObject)
Container.add(HTML) to ensure that the validation
function is not added to the form.
add in class ContainerhtmlObject - the HTML to be added to the form.
public java.lang.Object clone()
clone in interface HTMLclone in class Containerprotected void setAttribute(TagAttribute attribute)
setAttribute in class Tagattribute - The attribute.protected org.pajes.html.Tag.Attributes initAttributes()
initAttributes in class Tag
protected void writeContent(Browser browser)
throws java.io.IOException
writeContent in class Containerbrowser - the browser to which the results are to be output.
java.io.IOException - if an I/O error occurs writing to the browser.
|
PAJES 2.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||