org.exoplatform.answer.webui
Class UIFormSelectBoxWithGroups

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.webui.form.UIFormInputBase<String>
              extended by org.exoplatform.webui.form.UIFormStringInput
                  extended by org.exoplatform.answer.webui.UIFormSelectBoxWithGroups
All Implemented Interfaces:
org.exoplatform.webui.form.UIFormInput<String>

public class UIFormSelectBoxWithGroups
extends org.exoplatform.webui.form.UIFormStringInput

Represents a select element


Nested Class Summary
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
 
Fields inherited from class org.exoplatform.webui.form.UIFormStringInput
PASSWORD_TYPE, TEXT_TYPE
 
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
 
Constructor Summary
UIFormSelectBoxWithGroups(String name, String bindingExpression, List<SelectItem> options)
           
 
Method Summary
 UIFormSelectBoxWithGroups addOptionGroup(String label, List<SelectOption> options)
           
 void decode(Object input, org.exoplatform.webui.application.WebuiRequestContext context)
           
protected  org.exoplatform.webui.form.UIForm getFrom()
           
 List<SelectItem> getOptions()
           
 String[] getSelectedValues()
           
 void processRender(org.exoplatform.webui.application.WebuiRequestContext context)
           
protected  String renderOnChangeEvent(org.exoplatform.webui.form.UIForm uiForm)
           
 void reset()
           
 UIFormSelectBoxWithGroups setDisabled(boolean disabled)
           
 UIFormSelectBoxWithGroups setMultiple(boolean bl)
           
 void setOnChange(String onchange)
           
 UIFormSelectBoxWithGroups setOptions(List<SelectItem> options)
           
 UIFormSelectBoxWithGroups setSelectedValues(String[] values)
           
 UIFormSelectBoxWithGroups setSize(int i)
           
 UIFormSelectBoxWithGroups setValue(String value)
           
 
Methods inherited from class org.exoplatform.webui.form.UIFormStringInput
getMaxLength, setMaxLength, setType
 
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, setBindingField, setDefaultValue, setEditable, setEnable, setHTMLAttribute, setLabel, setName, setReadOnly
 
Methods inherited from class org.exoplatform.webui.core.UIContainer
addChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypes
 
Methods inherited from class org.exoplatform.webui.core.UIComponent
broadcast, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIFormSelectBoxWithGroups

public UIFormSelectBoxWithGroups(String name,
                                 String bindingExpression,
                                 List<SelectItem> options)
Method Detail

setMultiple

public final UIFormSelectBoxWithGroups setMultiple(boolean bl)

setSize

public final UIFormSelectBoxWithGroups setSize(int i)

setValue

public UIFormSelectBoxWithGroups setValue(String value)
Specified by:
setValue in interface org.exoplatform.webui.form.UIFormInput<String>
Overrides:
setValue in class org.exoplatform.webui.form.UIFormInputBase<String>

getSelectedValues

public String[] getSelectedValues()

setSelectedValues

public UIFormSelectBoxWithGroups setSelectedValues(String[] values)

getOptions

public final List<SelectItem> getOptions()

setOptions

public final UIFormSelectBoxWithGroups setOptions(List<SelectItem> options)

addOptionGroup

public UIFormSelectBoxWithGroups addOptionGroup(String label,
                                                List<SelectOption> options)

reset

public void reset()
Specified by:
reset in interface org.exoplatform.webui.form.UIFormInput<String>
Overrides:
reset in class org.exoplatform.webui.form.UIFormInputBase<String>

setOnChange

public void setOnChange(String onchange)

setDisabled

public UIFormSelectBoxWithGroups setDisabled(boolean disabled)
Overrides:
setDisabled in class org.exoplatform.webui.form.UIFormInputBase<String>

decode

public void decode(Object input,
                   org.exoplatform.webui.application.WebuiRequestContext context)
Overrides:
decode in class org.exoplatform.webui.form.UIFormStringInput

renderOnChangeEvent

protected String renderOnChangeEvent(org.exoplatform.webui.form.UIForm uiForm)
                              throws Exception
Throws:
Exception

getFrom

protected org.exoplatform.webui.form.UIForm getFrom()

processRender

public void processRender(org.exoplatform.webui.application.WebuiRequestContext context)
                   throws Exception
Overrides:
processRender in class org.exoplatform.webui.form.UIFormStringInput
Throws:
Exception


Copyright © 2003–2014 eXo Platform SAS. All rights reserved.