Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.ui.web.directory
Class ChainSelectListboxComponent

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIOutput
              extended by javax.faces.component.UIInput
                  extended by org.nuxeo.ecm.platform.ui.web.directory.ChainSelectListboxComponent
All Implemented Interfaces:
EditableValueHolder, StateHolder, ValueHolder

public class ChainSelectListboxComponent
extends UIInput

Author:
George Lefter

Field Summary
 boolean ajaxUpdated
           
static String COMPONENT_FAMILY
           
static String COMPONENT_TYPE
           
 
Fields inherited from class javax.faces.component.UIInput
CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID
 
Constructor Summary
ChainSelectListboxComponent()
           
 
Method Summary
 void decode(FacesContext context)
          This method reads submitted data and rebuilds the current list of values based on selections in the parent components.
 Boolean getBooleanProperty(String name, Boolean defaultValue)
           
 ChainSelect getChain()
           
 String getCssStyle()
           
 String getCssStyleClass()
           
 String getDirectoryName()
           
 VocabularyEntryList getDirectoryValues()
           
 String getDisplay()
           
 Boolean getDisplayIdAndLabel()
           
 String getDisplayIdAndLabelSeparator()
           
 Boolean getDisplayObsoleteEntries()
           
 String getDisplayValueOnlySeparator()
           
 String getFamily()
           
 Integer getIndex()
           
 Boolean getLocalize()
           
 String getOnchange()
           
 Map<String,DirectorySelectItem> getOptions()
           
 String getOrdering()
           
 Object getProperty(String name)
           
 String getSize()
           
 String getStringProperty(String name, String defaultValue)
           
 boolean isAjaxUpdated()
           
 boolean isMultiSelect()
           
 LinkedHashMap<String,DirectorySelectItem> rebuildOptions()
          Reload listbox values based on previous selections in the chain.
 void restoreState(FacesContext context, Object state)
           
 Object saveState(FacesContext context)
           
 void setAjaxUpdated(boolean ajaxUpdated)
           
 void setCssStyle(String cssStyle)
           
 void setCssStyleClass(String cssStyleClass)
           
 void setDirectoryName(String newDirectory)
           
 void setDirectoryValues(VocabularyEntryList directoryValues)
           
 void setDisplay(String display)
           
 void setDisplayIdAndLabel(Boolean displayIdAndLabel)
           
 void setDisplayIdAndLabelSeparator(String displayIdAndLabelSeparator)
           
 void setDisplayObsoleteEntries(Boolean showObsolete)
           
 void setDisplayValueOnlySeparator(String displayValueOnlySeparator)
           
 void setIndex(Integer index)
           
 void setLocalize(Boolean localize)
           
 void setOnchange(String onchange)
           
 void setOrdering(String ordering)
           
 void setSize(String size)
           
 
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.UIOutput
getConverter, getLocalValue, getValue, setConverter
 
Methods inherited from class javax.faces.component.UIComponentBase
broadcast, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId, getValueExpression, setValueExpression
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.faces.component.ValueHolder
getConverter, getLocalValue, getValue, setConverter
 

Field Detail

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

ajaxUpdated

public boolean ajaxUpdated
Constructor Detail

ChainSelectListboxComponent

public ChainSelectListboxComponent()
Method Detail

getFamily

public String getFamily()
Overrides:
getFamily in class UIInput

isMultiSelect

public boolean isMultiSelect()

getDisplayIdAndLabelSeparator

public String getDisplayIdAndLabelSeparator()

setDisplayIdAndLabelSeparator

public void setDisplayIdAndLabelSeparator(String displayIdAndLabelSeparator)

restoreState

public void restoreState(FacesContext context,
                         Object state)
Specified by:
restoreState in interface StateHolder
Overrides:
restoreState in class UIInput

saveState

public Object saveState(FacesContext context)
Specified by:
saveState in interface StateHolder
Overrides:
saveState in class UIInput

getDirectoryName

public String getDirectoryName()

setDirectoryName

public void setDirectoryName(String newDirectory)

getDirectoryValues

public VocabularyEntryList getDirectoryValues()

setDirectoryValues

public void setDirectoryValues(VocabularyEntryList directoryValues)

getOptions

public Map<String,DirectorySelectItem> getOptions()

getDisplayIdAndLabel

public Boolean getDisplayIdAndLabel()

setDisplayIdAndLabel

public void setDisplayIdAndLabel(Boolean displayIdAndLabel)

getDisplayObsoleteEntries

public Boolean getDisplayObsoleteEntries()

setDisplayObsoleteEntries

public void setDisplayObsoleteEntries(Boolean showObsolete)

setOnchange

public void setOnchange(String onchange)

getOnchange

public String getOnchange()

getChain

public ChainSelect getChain()

getProperty

public Object getProperty(String name)

getStringProperty

public String getStringProperty(String name,
                                String defaultValue)

getBooleanProperty

public Boolean getBooleanProperty(String name,
                                  Boolean defaultValue)

getDisplayValueOnlySeparator

public String getDisplayValueOnlySeparator()

setDisplayValueOnlySeparator

public void setDisplayValueOnlySeparator(String displayValueOnlySeparator)

isAjaxUpdated

public boolean isAjaxUpdated()

setAjaxUpdated

public void setAjaxUpdated(boolean ajaxUpdated)

getIndex

public Integer getIndex()
Returns:
position of this component in the parent children list

setIndex

public void setIndex(Integer index)

getCssStyle

public String getCssStyle()

setCssStyle

public void setCssStyle(String cssStyle)

getCssStyleClass

public String getCssStyleClass()

setCssStyleClass

public void setCssStyleClass(String cssStyleClass)

getSize

public String getSize()

setSize

public void setSize(String size)

getLocalize

public Boolean getLocalize()

setLocalize

public void setLocalize(Boolean localize)

rebuildOptions

public LinkedHashMap<String,DirectorySelectItem> rebuildOptions()
Reload listbox values based on previous selections in the chain. (functionality moved from ChainSelect)


decode

public void decode(FacesContext context)
This method reads submitted data and rebuilds the current list of values based on selections in the parent components.

Overrides:
decode in class UIInput

getOrdering

public String getOrdering()

setOrdering

public void setOrdering(String ordering)

getDisplay

public String getDisplay()

setDisplay

public void setDisplay(String display)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.