|
||||||||||
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.TextField net.sf.click.extras.control.TelephoneField
Provides a Telephone Field control: <input type='text'>.
Telephone Field |
<html> <head> $cssImports </head> <body> $form </body> </html> $jsImportsSee also W3C HTML reference INPUT
Field Summary |
Fields inherited from class net.sf.click.control.TextField |
maxLength, minLength, size, VALIDATE_TEXTFIELD_FUNCTION |
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 | |
TelephoneField()
Create a TelephoneField with no name defined. |
|
TelephoneField(String name)
Construct the TelephoneField with the given name. |
|
TelephoneField(String name,
boolean required)
Construct the TelephoneField with the given name and required status. |
|
TelephoneField(String name,
String label)
Construct the TelephoneField with the given name and label. |
|
TelephoneField(String name,
String label,
boolean required)
Construct the TelephoneField with the given name, label and required status. |
|
TelephoneField(String name,
String label,
int size)
Construct the TelephoneField with the given name, label and size. |
|
TelephoneField(String name,
String label,
int size,
boolean required)
Construct the TelephoneField with the given name, label, size and required status. |
Method Summary | |
void |
validate()
Validate the TelephoneField request submission. |
Methods inherited from class net.sf.click.control.TextField |
getControlSizeEst, getMaxLength, getMinLength, getSize, getTag, getType, getValidationJavaScript, render, setMaxLength, setMinLength, setSize |
Methods inherited from class net.sf.click.control.Field |
bindRequestValue, getError, getErrorLabel, getFocus, getFocusJavaScript, getForm, getHelp, getId, getLabel, getRequestValue, getTabIndex, getTextAlign, getTitle, getValidate, getValue, getValueObject, getWidth, isDisabled, isHidden, isReadonly, isRequired, isValid, onInit, onProcess, setDisabled, setError, setErrorMessage, setErrorMessage, setErrorMessage, setErrorMessage, setFocus, setForm, setHelp, setLabel, setListener, setParent, setReadonly, setRequired, setTabIndex, setTextAlign, setTitle, setValidate, setValue, setValueObject, setWidth |
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, onRender, 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 |
Constructor Detail |
public TelephoneField(String name)
name
- the name of the fieldpublic TelephoneField(String name, boolean required)
name
- the name of the fieldrequired
- the field required statuspublic TelephoneField(String name, String label)
name
- the name of the fieldlabel
- the label of the fieldpublic TelephoneField(String name, String label, boolean required)
name
- the name of the fieldlabel
- the label of the fieldrequired
- the field required statuspublic TelephoneField(String name, String label, int size)
name
- the name of the fieldlabel
- the label of the fieldsize
- the size of the fieldpublic TelephoneField(String name, String label, int size, boolean required)
name
- the name of the fieldlabel
- the label of the fieldsize
- the size of the fieldrequired
- the field required statuspublic TelephoneField()
Method Detail |
public void validate()
- /click-control.properties
- field-maxlength-error
- field-minlength-error
- field-required-error
- /net/sf/click/extras/control/TelephoneField.properties
- telephone-format-error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |