org.nuxeo.ecm.platform.ui.web.directory
Class ChainSelect
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
javax.faces.component.UIInput
org.nuxeo.ecm.platform.ui.web.directory.ChainSelect
- All Implemented Interfaces:
- EditableValueHolder, StateHolder, ValueHolder
public class ChainSelect
- extends UIInput
DOCUMENT ME.
Refactor me and it's christmas.
- Author:
- George Lefter
Methods inherited from class javax.faces.component.UIInput |
addValidator, addValueChangeListener, getConverterMessage, getRequiredMessage, getSubmittedValue, getValidator, getValidatorMessage, getValidators, getValueChangeListener, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, resetValue, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener, updateModel, validate |
Methods inherited from class javax.faces.component.UIComponentBase |
broadcast, encodeChildren, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
COMPONENT_TYPE
public static final String COMPONENT_TYPE
- See Also:
- Constant Field Values
COMPONENT_FAMILY
public static final String COMPONENT_FAMILY
- See Also:
- Constant Field Values
DEFAULT_KEY_SEPARATOR
public static final String DEFAULT_KEY_SEPARATOR
- See Also:
- Constant Field Values
DEFAULT_PARENT_KEY
public static final String DEFAULT_PARENT_KEY
ChainSelect
public ChainSelect()
isAllowBranchSelection
public boolean isAllowBranchSelection()
setAllowBranchSelection
public void setAllowBranchSelection(boolean allowBranchSelection)
isAllowRootSelection
public boolean isAllowRootSelection()
setAllowRootSelection
public void setAllowRootSelection(boolean allowRootSelection)
getFamily
public String getFamily()
- Overrides:
getFamily
in class UIInput
getRendererType
public String getRendererType()
- Overrides:
getRendererType
in class UIComponentBase
restoreState
public void restoreState(FacesContext context,
Object state)
- Specified by:
restoreState
in interface StateHolder
- Overrides:
restoreState
in class UIInput
saveState
public Object saveState(FacesContext arg0)
- Specified by:
saveState
in interface StateHolder
- Overrides:
saveState
in class UIInput
getSelectionKeyList
public List<String> getSelectionKeyList()
addToSelectionKeyList
public void addToSelectionKeyList(String key)
decode
public void decode(FacesContext context)
- Overrides:
decode
in class UIInput
format
public static String format(Object o)
formatAr
public static String formatAr(String[] ar)
encodeBegin
public void encodeBegin(FacesContext context)
throws IOException
- Overrides:
encodeBegin
in class UIComponentBase
- Throws:
IOException
encodeEnd
public void encodeEnd(FacesContext context)
throws IOException
- Overrides:
encodeEnd
in class UIComponentBase
- Throws:
IOException
getProperty
public Object getProperty(String name)
getStringProperty
public String getStringProperty(String name,
String defaultValue)
getBooleanProperty
public Boolean getBooleanProperty(String name,
boolean defaultValue)
getLocalize
public Boolean getLocalize()
setLocalize
public void setLocalize(Boolean localize)
getCssStyle
public String getCssStyle()
setCssStyle
public void setCssStyle(String cssStyle)
getCssStyleClass
public String getCssStyleClass()
setCSsStyleClass
public void setCSsStyleClass(String cssStyleClass)
getOnchange
public String getOnchange()
setOnchange
public void setOnchange(String onchange)
getSelection
public Selection getSelection(int i)
setSelections
public void setSelections(Selection[] sels)
getSize
public Integer getSize()
setSize
public void setSize(Integer size)
getOptions
public Map<String,DirectorySelectItem> getOptions(int index)
setOptions
public void setOptions(int index,
Map<String,DirectorySelectItem> opts)
rebuildOptions
public void rebuildOptions()
- If the user changes selection for position k, all options for n>k will
be reset. We only have to rebuild options for position k+1.
getComponent
public ChainSelectListboxComponent getComponent(int i)
isMultiSelect
public boolean isMultiSelect()
setMultiSelect
public void setMultiSelect(boolean multiSelect)
getSelections
public Selection[] getSelections()
isQualifiedParentKeys
public boolean isQualifiedParentKeys()
setQualifiedParentKeys
public void setQualifiedParentKeys(boolean fullyQualifiedParentKey)
getDisplayValueOnly
public Boolean getDisplayValueOnly()
setDisplayValueOnly
public void setDisplayValueOnly(Boolean displayValueOnly)
getDisplayValueOnlyStyle
public String getDisplayValueOnlyStyle()
setDisplayValueOnlyStyle
public void setDisplayValueOnlyStyle(String displayValueOnlyStyle)
getDisplayValueOnlyStyleClass
public String getDisplayValueOnlyStyleClass()
setDisplayValueOnlyStyleClass
public void setDisplayValueOnlyStyleClass(String displayValueOnlyStyleClass)
getMultiParentSelect
public boolean getMultiParentSelect()
setMultiParentSelect
public void setMultiParentSelect(boolean multiParentSelect)
encodeValue
public String[] encodeValue(Selection[] selections)
createSelection
public Selection createSelection(List<String> columns)
createSelection
public Selection createSelection(String[] columns)
getComponentValue
public Selection[] getComponentValue()
setComponentValue
public void setComponentValue(Selection[] componentValue)
getLastSelectedComponentIndex
public int getLastSelectedComponentIndex()
setLastSelectedComponentIndex
public void setLastSelectedComponentIndex(int index)
setCompAtIndex
public void setCompAtIndex(int index,
ChainSelectListboxComponent comp)
getKeySeparator
public String getKeySeparator()
setKeySeparator
public void setKeySeparator(String keySeparator)
getDefaultRootKey
public String getDefaultRootKey()
setDefaultRootKey
public void setDefaultRootKey(String defaultRootKey)
validateValue
public void validateValue(FacesContext context,
Object newValue)
- Overrides:
validateValue
in class UIInput
Copyright © 2011 Nuxeo SAS. All Rights Reserved.