| |
|
| java.lang.Object com.salmonllc.html.HtmlComponent com.salmonllc.jsp.JspContainer com.salmonllc.jsp.JspForm
JspForm | public class JspForm extends JspContainer (Code) | | This container implements an HTML Form Tag
|
JspForm | public JspForm(String name, HtmlPage p)(Code) | | Creates a new JSP Box
Parameters: name - Parameters: p - |
addSubmitListener | public void addSubmitListener(SubmitListener l)(Code) | | This method adds a listener the will be notified when this button causes the page to be submitted.
Parameters: l - The listener to add. |
findParentForm | public static JspForm findParentForm(HtmlComponent comp)(Code) | | Returns the form component that an HtmlComponent lives in or null if it isn't in a JspForm
Parameters: comp - |
getAction | public String getAction()(Code) | | Returns the action for this form (The URL invoked when the form is posted)
|
getEncType | public String getEncType()(Code) | | Gets the mime type encoding of the data sent "application/x-www-form-urlencoded" (the default), is usually used if the METHOD attribute has the value POST. "multipart/form-data" is used when the form contains a file upload element (INPUT TYPE="FILE").
|
getMethod | public String getMethod()(Code) | | Returns the method for this form (GET or POST)
|
getOnReset | public String getOnReset()(Code) | | Returns the javascript code that executes if the user resets the form
|
getOnSubmit | public String getOnSubmit()(Code) | | Gets the javascript code that executes if the user submits the form
|
getTarget | public String getTarget()(Code) | | Gets the window that will display the results of the submit
|
isAutoScrollEnabled | public boolean isAutoScrollEnabled()(Code) | | Allows the user to find out if auto scrolling is enabled
boolean |
isLastActionFromForward | boolean isLastActionFromForward()(Code) | | |
isScrollPositionSet | public boolean isScrollPositionSet()(Code) | | The form component can track the scroll position of the page when it was submitted for some browsers. This method will return whether or not the position was set for the last submit.
|
processParms | public boolean processParms(Hashtable parms, int rowNo) throws Exception(Code) | | This method will process the parms from a post for every component in the container.
Parameters: parms - Parameters: rowNo - throws: Exception - |
removeSubmitListener | public void removeSubmitListener(SubmitListener l)(Code) | | This method removes a listener from the list that will be notified if this button causes the page to be submitted.
Parameters: l - The listener to remove. |
scrollToLastPosition | public void scrollToLastPosition()(Code) | | If the scroll position is set, scroll to the same spot on the page as it was when it was submitted
|
setAction | public void setAction(String action)(Code) | | Sets the action for this form (The URL invoked when the form is posted)
Parameters: action - |
setAutoScrollEnabled | public void setAutoScrollEnabled(boolean b)(Code) | | Allows for the user to set whether they want auto scrolling enabled. defaults to true
Parameters: b - |
setEncType | public void setEncType(String encType)(Code) | | Sets the mime type encoding of the data sent "application/x-www-form-urlencoded" (the default), is usually used if the METHOD attribute has the value POST. "multipart/form-data" is used when the form contains a file upload element (INPUT TYPE="FILE").
Parameters: encType - |
setMethod | public void setMethod(String method)(Code) | | Sets the method for this form (GET or POST)
Parameters: method - |
setOnReset | public void setOnReset(String onReset)(Code) | | Sets the javascript code that executes if the user resets the form
Parameters: onReset - |
setOnSubmit | public void setOnSubmit(String onSubmit)(Code) | | Sets the javascript code that executes if the user submits the form
Parameters: onSubmit - |
setTarget | public void setTarget(String target)(Code) | | Sets the window that will display the results of the submit
Parameters: target - |
|
|
|