|
||||||||||
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.Select net.sf.click.extras.control.CountrySelect
Provides a Country Select control: <select></select>.
Select |
Option
for
each country that has a supported Locale
from the side
of the JDK.
Note: Newer versions of the JDK seems to support more Locale
s.
Obs.: Especially practial for registration forms.
Field Summary |
Fields inherited from class net.sf.click.control.Select |
multiple, optionList, selectedValues, size, VALIDATE_SELECT_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 | |
CountrySelect()
Create a CountrySelect field with no name defined. |
|
CountrySelect(String name)
Create a CountrySelect field with the given name. |
|
CountrySelect(String name,
boolean required)
Create a CountrySelect field with the given name and required status. |
|
CountrySelect(String name,
String label)
Create a CountrySelect field with the given name and label. |
|
CountrySelect(String name,
String label,
boolean required)
Create a CountrySelect field with the given name, label and required status. |
|
CountrySelect(String name,
String label,
Locale locale)
Create a CountrySelect field with the given name, label and locale. |
Method Summary | |
void |
bindRequestValue()
Bind the request value to the control. |
Locale |
getLocale()
Return the locale for this control. |
protected void |
loadOptionList()
Load the Country Select options if not defined, using all the available countries. |
void |
render(HtmlStringBuffer buffer)
Render the HTML representation of the QuerySelect. |
void |
setLocale(Locale locale)
Set the locale of this control to something else than the Context locale. |
Methods inherited from class net.sf.click.control.Select |
add, add, add, addAll, addAll, addAll, addAll, getControlSizeEst, getMultipleValues, getOptionList, getSelectedValues, getSize, getTag, getValidationJavaScript, isMultiple, setInitialValue, setMultiple, setMultipleValues, setOptionList, setSelectedValues, setSize, validate |
Methods inherited from class net.sf.click.control.Field |
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 CountrySelect(String name)
name
- the name of the fieldpublic CountrySelect(String name, String label)
name
- the name of the fieldlabel
- the label of the fieldpublic CountrySelect(String name, boolean required)
name
- the name of the fieldrequired
- the field required statuspublic CountrySelect(String name, String label, boolean required)
name
- the name of the fieldlabel
- the label of the fieldrequired
- the field required statuspublic CountrySelect(String name, String label, Locale locale)
name
- the name of the fieldlabel
- the label of the fieldlocale
- the Locale of the filedpublic CountrySelect()
Method Detail |
public Locale getLocale()
public void setLocale(Locale locale)
Context
locale.
locale
- the locale to set for this controlContext.getLocale()
public void bindRequestValue()
Select.bindRequestValue()
public void render(HtmlStringBuffer buffer)
buffer
- the specified buffer to render the control's output toAbstractControl.toString()
protected void loadOptionList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |