|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.click.control.AbstractControl org.apache.click.control.Field org.apache.click.control.Button org.apache.click.control.Submit
public class 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 org.apache.click.control.Field |
---|
disabled, error, focus, form, help, label, labelStyle, labelStyleClass, parentStyleClassHint, parentStyleHint, readonly, required, tabindex, title, trim, validate, value |
Fields inherited from class org.apache.click.control.AbstractControl |
---|
actionListener, attributes, behaviors, headElements, listener, listenerMethod, messages, name, parent, styles |
Fields inherited from interface org.apache.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 org.apache.click.control.Button |
---|
getControlSizeEst, getOnClick, getTag, render, setOnClick |
Methods inherited from class org.apache.click.control.Field |
---|
getError, getErrorLabel, getFocus, getFocusJavaScript, getForm, getHelp, getId, getLabel, getLabelStyle, getLabelStyleClass, getParentStyleClassHint, getParentStyleHint, getRequestValue, getState, getTabIndex, getTextAlign, getTitle, getValidate, getValidationJavaScript, getValue, getValueObject, getWidth, isDisabled, isHidden, isReadonly, isRequired, isTrim, isValid, removeState, renderTagBegin, restoreState, saveState, setDisabled, setError, setErrorMessage, setErrorMessage, setFocus, setForm, setHelp, setLabel, setLabelStyle, setLabelStyleClass, setListener, setParent, setParentStyleClassHint, setParentStyleHint, setReadonly, setRequired, setState, setTabIndex, setTextAlign, setTitle, setTrim, setValidate, setValue, setValueObject, setWidth, validate |
Methods inherited from class org.apache.click.control.AbstractControl |
---|
addBehavior, addStyleClass, appendAttributes, dispatchActionEvent, getActionListener, getAttribute, getAttributes, getBehaviors, getContext, getHeadElements, getHtmlImports, getMessage, getMessage, getMessages, getName, getPage, getParent, getStyle, getStyles, hasAttribute, hasAttributes, hasBehaviors, hasStyles, isAjaxTarget, onDeploy, onDestroy, onInit, onRender, removeBehavior, removeStyleClass, 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 |