public class ChainSelect extends javax.faces.component.UIInput implements ResettableComponent
Refactor me and it's christmas.
| Modifier and Type | Field and Description | 
|---|---|
static String | 
COMPONENT_FAMILY  | 
static String | 
COMPONENT_TYPE  | 
static String | 
DEFAULT_KEY_SEPARATOR  | 
static String | 
DEFAULT_PARENT_KEY  | 
protected String | 
defaultRootKey
Value used to filter on parent key when searching for a hierarchical directory roots. 
 | 
protected Boolean | 
resetCacheOnUpdate
New attribute to handle bad behaviour on ajax re-render, forcing local cache refresh 
 | 
| Constructor and Description | 
|---|
ChainSelect()  | 
addValidator, addValueChangeListener, clearInitialState, compareValues, getConvertedValue, getConverterMessage, getRequiredMessage, getSubmittedValue, getValidator, getValidatorMessage, getValidators, getValue, getValueChangeListener, getValueChangeListeners, isEmpty, isImmediate, isLocalValueSet, isRequired, isValid, markInitialState, processDecodes, processValidators, removeValidator, removeValueChangeListener, resetValue, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener, updateModel, validategetConverter, getLocalValue, setConverteraddClientBehavior, addFacesListener, broadcast, encodeChildren, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEventencodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTreepublic static final String COMPONENT_TYPE
public static final String COMPONENT_FAMILY
public static final String DEFAULT_KEY_SEPARATOR
public static final String DEFAULT_PARENT_KEY
protected String defaultRootKey
If not set, will use null.
protected Boolean resetCacheOnUpdate
public ChainSelect()
public boolean isAllowBranchSelection()
public void setAllowBranchSelection(boolean allowBranchSelection)
public boolean isAllowRootSelection()
public void setAllowRootSelection(boolean allowRootSelection)
public String getRendererType()
getRendererType in class javax.faces.component.UIComponentBasepublic void restoreState(javax.faces.context.FacesContext context, Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class javax.faces.component.UIInputpublic Object saveState(javax.faces.context.FacesContext arg0)
saveState in interface javax.faces.component.StateHoldersaveState in class javax.faces.component.UIInputpublic List<String> getSelectionKeyList()
public void addToSelectionKeyList(String key)
public void decode(javax.faces.context.FacesContext context)
decode in class javax.faces.component.UIInputpublic void encodeBegin(javax.faces.context.FacesContext context) throws IOException
encodeBegin in class javax.faces.component.UIComponentBaseIOExceptionpublic void encodeEnd(javax.faces.context.FacesContext context) throws IOException
encodeEnd in class javax.faces.component.UIComponentBaseIOExceptionpublic Object getProperty(String name)
public String getStringProperty(String name, String defaultValue)
public Boolean getBooleanProperty(String name, boolean defaultValue)
public Boolean getLocalize()
public void setLocalize(Boolean localize)
public String getCssStyle()
public void setCssStyle(String cssStyle)
public String getCssStyleClass()
public void setCSsStyleClass(String cssStyleClass)
public String getOnchange()
public void setOnchange(String onchange)
public Selection getSelection(int i)
public void setSelections(Selection[] sels)
public Map<String,DirectorySelectItem> getOptions(int index)
public void setOptions(int index, Map<String,DirectorySelectItem> opts)
public void rebuildOptions()
public ChainSelectListboxComponent getComponent(javax.faces.component.UIComponent parent, int i)
public ChainSelectListboxComponent getComponent(int i)
public boolean isMultiSelect()
public void setMultiSelect(boolean multiSelect)
public Selection[] getSelections()
public boolean isQualifiedParentKeys()
public void setQualifiedParentKeys(boolean fullyQualifiedParentKey)
public Boolean getDisplayValueOnly()
public void setDisplayValueOnly(Boolean displayValueOnly)
public String getDisplayValueOnlyStyle()
public void setDisplayValueOnlyStyle(String displayValueOnlyStyle)
public String getDisplayValueOnlyStyleClass()
public void setDisplayValueOnlyStyleClass(String displayValueOnlyStyleClass)
public boolean getMultiParentSelect()
public void setMultiParentSelect(boolean multiParentSelect)
public String[] encodeValue(Selection[] selections)
public Selection createSelection(List<String> columns)
public Selection createSelection(String[] columns)
public Selection[] getComponentValue()
public void setComponentValue(Selection[] componentValue)
public int getLastSelectedComponentIndex()
public void setLastSelectedComponentIndex(int index)
public void setCompAtIndex(int index, ChainSelectListboxComponent comp)
public String getKeySeparator()
public void setKeySeparator(String keySeparator)
public String getDefaultRootKey()
public void setDefaultRootKey(String defaultRootKey)
public void validateValue(javax.faces.context.FacesContext context, Object newValue)
validateValue in class javax.faces.component.UIInputpublic Boolean getResetCacheOnUpdate()
public void setResetCacheOnUpdate(Boolean resetCacheOnUpdate)
public void processUpdates(javax.faces.context.FacesContext context)
processUpdates in class javax.faces.component.UIInputpublic void resetCachedModel()
resetCachedModel in interface ResettableComponentCopyright © 2019 Nuxeo. All rights reserved.