Package org.exoplatform.webui.form.input
Class UICheckBoxInput
java.lang.Object
org.exoplatform.webui.core.UIComponent
org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.form.UIFormInputBase<Boolean>
org.exoplatform.webui.form.input.UICheckBoxInput
- All Implemented Interfaces:
UIFormInput<Boolean>
Represent an html checkbox input
This class is a replacement for UIFormCheckBoxInput
Still support raising event when user click the checkbox, but now we only accept boolean value.
- Version:
- $Id$
- Author:
- Vu Viet Phuong
-
Nested Class Summary
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
UIContainer.SelectTabActionListener -
Field Summary
Fields inherited from class org.exoplatform.webui.form.UIFormInputBase
bindingField, defaultValue_, DISABLE, disabled, ENABLE, enable_, name, readonly_, typeValue_, validators, value_Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent, USE_WEBUI_RESOURCES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecode(Object input, WebuiRequestContext context) booleanThis method is used to make the action more meaning in the context of a checkboxvoidprocessRender(WebuiRequestContext context) renderOnChangeEvent(UIForm uiForm) setChecked(boolean check) This method is used to make the action more meaning in the context of a checkboxvoidsetComponentEvent(String com) voidsetOnChange(String onchange) voidsetOnChange(String event, String com) Methods inherited from class org.exoplatform.webui.form.UIFormInputBase
addValidator, getBindingField, getDefaultValue, getHTMLAttribute, getLabel, getName, getTypeValue, getValidators, getValue, isDisabled, isEditable, isEnable, isMandatory, isReadOnly, isValid, processDecode, renderHTMLAttributes, reset, setBindingField, setDefaultValue, setDisabled, setEditable, setEnable, setHTMLAttribute, setLabel, setName, setReadOnlyMethods inherited from class org.exoplatform.webui.core.UIContainer
addChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypesMethods inherited from class org.exoplatform.webui.core.UIComponent
broadcast, buildModelObject, createEvent, createUIComponent, createUIComponent, createUIComponent, doAsync, event, event, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getParent, getTemplate, getTemplateResourceResolver, getUIComponentName, isRendered, loadConfirmMesssage, processAction, renderEventURL, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, url, url, url
-
Constructor Details
-
UICheckBoxInput
public UICheckBoxInput() -
UICheckBoxInput
-
-
Method Details
-
setValue
- Specified by:
setValuein interfaceUIFormInput<Boolean>- Overrides:
setValuein classUIFormInputBase<Boolean>
-
isChecked
public boolean isChecked()This method is used to make the action more meaning in the context of a checkbox -
setChecked
This method is used to make the action more meaning in the context of a checkbox -
setOnChange
-
setComponentEvent
-
setOnChange
-
renderOnChangeEvent
- Throws:
Exception
-
decode
- Specified by:
decodein classUIFormInputBase<Boolean>
-
processRender
- Overrides:
processRenderin classUIComponent- Throws:
Exception
-