| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.click.control.AbstractControl
net.sf.click.control.Field
net.sf.click.control.Button
net.sf.click.control.Submit
net.sf.click.extras.control.PageSubmit
Provides a Page redirect Submit control: <input type='submit'>.
    form.add(new Submit("ok", " OK ", this, "onOkClick"));
    form.add(new PageSubmit("cancel", "Cancel", HomePage.class));
 
 
 See also the W3C HTML reference
 INPUT
| Field Summary | |
protected  Class | 
pageClass
The target page to redirect to.  | 
| Fields inherited from class net.sf.click.control.Submit | 
clicked | 
| Fields inherited from class net.sf.click.control.Field | 
disabled, error, focus, form, help, label, readonly, required, tabindex, title, validate, value | 
| Fields inherited from class net.sf.click.control.AbstractControl | 
actionListener, attributes, listener, listenerMethod, messages, name, parent, styles | 
| Fields inherited from interface net.sf.click.Control | 
CONTROL_MESSAGES | 
| Constructor Summary | |
PageSubmit()
Create an PageSubmit button with no name or target page class defined.  | 
|
PageSubmit(String name)
Create a PageSubmit button with the given name.  | 
|
PageSubmit(String name,
           Class pageClass)
Create a PageSubmit button with the given name and target pageClass.  | 
|
PageSubmit(String name,
           String label)
Create a PageSubmit button with the given name and label.  | 
|
PageSubmit(String name,
           String label,
           Class pageClass)
Create a PageSubmit button with the given name, label and target pageClass.  | 
|
| Method Summary | |
 Class | 
getPageClass()
Return the target page class to redirect to.  | 
 boolean | 
onClick()
The submit buttons callback listener, which will redirect the page to the defined target page class and return false to abort any further processing.  | 
 void | 
setPageClass(Class pageClass)
Set the target page class to redirect to.  | 
| Methods inherited from class net.sf.click.control.Submit | 
bindRequestValue, getCancelJavaScriptValidation, getType, isClicked, onProcess, setCancelJavaScriptValidation | 
| Methods inherited from class net.sf.click.control.Button | 
getControlSizeEst, getOnClick, getTag, onRender, render, setOnClick | 
| Methods inherited from class net.sf.click.control.Field | 
getError, getErrorLabel, getFocus, getFocusJavaScript, getForm, getHelp, getId, getLabel, getRequestValue, getTabIndex, getTextAlign, getTitle, getValidate, getValidationJavaScript, getValue, getValueObject, getWidth, isDisabled, isHidden, isReadonly, isRequired, isValid, onInit, setDisabled, setError, setErrorMessage, setErrorMessage, setErrorMessage, setErrorMessage, setFocus, setForm, setHelp, setLabel, setListener, setParent, setReadonly, setRequired, setTabIndex, setTextAlign, setTitle, setValidate, setValue, setValueObject, setWidth, validate | 
| Methods inherited from class net.sf.click.control.AbstractControl | 
addStyleClass, appendAttributes, getActionListener, getAttribute, getAttributes, getContext, getHtmlImports, getMessage, getMessage, getMessage, getMessages, getName, getPage, getParent, getStyle, getStyles, hasAttribute, hasAttributes, hasStyles, onDeploy, onDestroy, registerActionEvent, removeStyleClass, renderTagBegin, renderTagEnd, setActionListener, setAttribute, setId, setName, setStyle, toString | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
protected Class pageClass
| Constructor Detail | 
public PageSubmit(String name)
name - the button name
public PageSubmit(String name,
                  String label)
name - the button namelabel - the button display label
public PageSubmit(String name,
                  Class pageClass)
name - the button namepageClass - the target page class
public PageSubmit(String name,
                  String label,
                  Class pageClass)
name - the button namelabel - the button display labelpageClass - the target page classpublic PageSubmit()
| Method Detail | 
public Class getPageClass()
public void setPageClass(Class pageClass)
pageClass - the target page class to redirect topublic boolean onClick()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||