|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.click.control.AbstractControl net.sf.click.control.Field net.sf.click.control.Button net.sf.click.control.Submit
Provides a Submit control: <input type='submit'>.
Form
Javadoc example.
See also the W3C HTML reference
INPUT
Field Summary | |
protected boolean |
clicked
The button is 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 | |
Submit()
Create an Submit button with no name defined. |
|
Submit(String name)
Create a Submit button with the given name. |
|
Submit(String name,
Object listener,
String method)
Create a Submit button with the given name, listener object and listener method. |
|
Submit(String name,
String label)
Create a Submit button with the given name and label. |
|
Submit(String name,
String label,
Object listener,
String method)
Create a Submit button with the given name, label, listener object and listener method. |
Method Summary | |
void |
bindRequestValue()
Bind the request submission, setting the Field.value and
clicked properties if defined. |
boolean |
getCancelJavaScriptValidation()
Return true if client side JavaScript form validation will be cancelled by pressing this button. |
String |
getType()
Return the input type: 'submit'. |
boolean |
isClicked()
Returns the true if the submit button was clicked, or false otherwise. |
boolean |
onProcess()
Process the submit event and return true to continue event processing. |
void |
setCancelJavaScriptValidation(boolean cancel)
Set whether client side JavaScript form validation will be cancelled by pressing this button. |
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 boolean clicked
Constructor Detail |
public Submit(String name)
name
- the button namepublic Submit(String name, String label)
name
- the button namelabel
- the button display labelpublic Submit(String name, Object listener, String method)
name
- the button namelistener
- the listener target objectmethod
- the listener method to call
IllegalArgumentException
- if listener is null or if the method
is blankpublic Submit(String name, String label, Object listener, String method)
name
- the button namelabel
- the button display labellistener
- the listener target objectmethod
- the listener method to call
IllegalArgumentException
- if listener is null or if the method
is blankpublic Submit()
Method Detail |
public boolean getCancelJavaScriptValidation()
public void setCancelJavaScriptValidation(boolean cancel)
cancel
- the cancel JavaScript form validation flagpublic boolean isClicked()
public String getType()
getType
in class Button
public void bindRequestValue()
Field.value
and
clicked
properties if defined.
bindRequestValue
in class Field
public boolean onProcess()
onProcess
in interface Control
onProcess
in class Button
Field.onProcess()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |