public abstract class ChainSelectBase extends javax.faces.component.UIInput implements javax.faces.component.NamingContainer
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowBranchSelection |
protected static String |
DEFAULT_KEYSEPARATOR |
protected String |
defaultRootKey |
protected int |
depth |
protected String |
directoryNames |
protected String |
display |
protected static String |
DISPLAY_ID |
protected static String |
DISPLAY_IDLABEL |
protected static String |
DISPLAY_LABEL |
protected String |
keySeparator |
protected int |
listboxSize |
protected boolean |
qualifiedParentKeys |
protected String |
reRender |
protected static String |
SELECT |
protected Map<String,String[]> |
selectionMap |
protected boolean |
showObsolete |
protected String |
style |
protected String |
styleClass |
protected boolean |
translate |
static String |
VOCABULARY_SCHEMA |
static String |
XVOCABULARY_SCHEMA
Directory with a parent column.
|
COMPONENT_FAMILY, COMPONENT_TYPE, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID, VALIDATE_EMPTY_FIELDS_PARAM_NAME
Modifier | Constructor and Description |
---|---|
protected |
ChainSelectBase() |
Modifier and Type | Method and Description |
---|---|
protected String |
computeItemLabel(javax.faces.context.FacesContext context,
String id,
String label) |
protected void |
decodeSelection(javax.faces.context.FacesContext context) |
protected void |
encodeListbox(javax.faces.context.FacesContext context,
int level,
String[] selectedKeys) |
boolean |
getAllowBranchSelection() |
String |
getComponentId(int level) |
String |
getDefaultRootKey() |
int |
getDepth() |
String[] |
getDirectories() |
String |
getDirectory(int level) |
List<DirectoryEntry> |
getDirectoryEntries(int level,
String[] selectedKeys)
Computes the items that should be displayed for the nth listbox, depending on the options that have been selected
in the previous ones.
|
String |
getDirectoryNames() |
String |
getDisplay() |
boolean |
getDisplayValueOnly() |
String |
getKeySeparator() |
protected javax.faces.component.html.HtmlSelectOneListbox |
getListbox(javax.faces.context.FacesContext context,
int level) |
int |
getListboxSize() |
boolean |
getQualifiedParentKeys() |
String |
getReRender() |
abstract String[] |
getSelection() |
boolean |
getShowObsolete() |
String |
getStyle() |
String |
getStyleClass() |
boolean |
getTranslate() |
protected String[] |
getValueAsArray(String value) |
protected String |
getValueAsString(String[] ar) |
boolean |
isRecursive() |
List<DirectoryEntry> |
resolveKeys(String[] keys)
Resolves a list of keys (a selection) to a list of coresponding directory items.
|
void |
restoreState(javax.faces.context.FacesContext context,
Object state) |
Object |
saveState(javax.faces.context.FacesContext context) |
void |
setAllowBranchSelection(boolean allowBranchSelection) |
void |
setDefaultRootKey(String defaultRootKey) |
void |
setDepth(int depth) |
void |
setDirectoryNames(String directoryNames) |
void |
setDisplay(String display) |
void |
setDisplayValueOnly(boolean displayValueOnly) |
void |
setKeySeparator(String keySeparator) |
void |
setListboxSize(int listboxSize) |
void |
setReRender(String reRender) |
protected void |
setSelection(String[] selection) |
void |
setShowObsolete(boolean showObsolete) |
void |
setStyle(String style) |
void |
setStyleClass(String styleClass) |
void |
setTranslate(boolean translate) |
protected boolean |
validateEntry(javax.faces.context.FacesContext context,
String[] keys) |
addValidator, addValueChangeListener, clearInitialState, compareValues, decode, getConvertedValue, getConverterMessage, getFamily, getRequiredMessage, getSubmittedValue, getValidator, getValidatorMessage, getValidators, getValue, getValueChangeListener, getValueChangeListeners, isEmpty, isImmediate, isLocalValueSet, isRequired, isValid, markInitialState, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, resetValue, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener, updateModel, validate, validateValue
getConverter, getLocalValue, setConverter
addClientBehavior, addFacesListener, broadcast, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
protected static final String DISPLAY_LABEL
protected static final String DISPLAY_ID
protected static final String DISPLAY_IDLABEL
protected static final String DEFAULT_KEYSEPARATOR
protected static final String SELECT
public static final String VOCABULARY_SCHEMA
public static final String XVOCABULARY_SCHEMA
protected String directoryNames
protected String keySeparator
protected boolean qualifiedParentKeys
protected int depth
protected boolean translate
protected boolean showObsolete
protected String styleClass
protected int listboxSize
protected boolean allowBranchSelection
protected String defaultRootKey
protected Map<String,String[]> selectionMap
protected ChainSelectBase()
public String getDirectory(int level)
public void restoreState(javax.faces.context.FacesContext context, Object state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class javax.faces.component.UIInput
public Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
saveState
in class javax.faces.component.UIInput
protected javax.faces.component.html.HtmlSelectOneListbox getListbox(javax.faces.context.FacesContext context, int level)
protected void encodeListbox(javax.faces.context.FacesContext context, int level, String[] selectedKeys) throws IOException
IOException
public String[] getDirectories()
public boolean isRecursive()
public List<DirectoryEntry> getDirectoryEntries(int level, String[] selectedKeys)
level
- the index of the listbox for which to compute the itemsselectedKeys
- the keys for the items selected on the previous levelspublic List<DirectoryEntry> resolveKeys(String[] keys)
keys
- public String getComponentId(int level)
public String getKeySeparator()
public void setKeySeparator(String keySeparator)
public String getDefaultRootKey()
public void setDefaultRootKey(String defaultRootKey)
public boolean getDisplayValueOnly()
public void setDisplayValueOnly(boolean displayValueOnly)
public int getListboxSize()
public void setListboxSize(int listboxSize)
public String getDisplay()
public void setDisplay(String display)
public boolean getQualifiedParentKeys()
public String getDirectoryNames()
public void setDirectoryNames(String directoryNames)
public int getDepth()
public void setDepth(int depth)
public String getStyleClass()
public void setStyleClass(String styleClass)
public boolean getTranslate()
public void setTranslate(boolean translate)
public boolean getShowObsolete()
public void setShowObsolete(boolean showObsolete)
public boolean getAllowBranchSelection()
public void setAllowBranchSelection(boolean allowBranchSelection)
public String getReRender()
public void setReRender(String reRender)
protected String[] getValueAsArray(String value)
protected String getValueAsString(String[] ar)
protected String computeItemLabel(javax.faces.context.FacesContext context, String id, String label)
public abstract String[] getSelection()
protected void decodeSelection(javax.faces.context.FacesContext context)
protected void setSelection(String[] selection)
protected boolean validateEntry(javax.faces.context.FacesContext context, String[] keys)
Copyright © 2016 Nuxeo SA. All rights reserved.