Nuxeo ECM Projects 5.4.3-SNAPSHOT

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

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.ChainSelectBase
All Implemented Interfaces:
EditableValueHolder, NamingContainer, StateHolder, ValueHolder
Direct Known Subclasses:
ChainSelectMany, ChainSelectOne

public abstract class ChainSelectBase
extends UIInput
implements NamingContainer

Author:
George Lefter

Field Summary
static String VOCABULARY_SCHEMA
           
static String XVOCABULARY_SCHEMA
          Directory with a parent column.
 
Fields inherited from class javax.faces.component.UIInput
COMPONENT_FAMILY, COMPONENT_TYPE, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID
 
Fields inherited from interface javax.faces.component.NamingContainer
SEPARATOR_CHAR
 
Method Summary
 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()
           
 int getListboxSize()
           
 boolean getQualifiedParentKeys()
           
 String getReRender()
           
abstract  String[] getSelection()
           
 boolean getShowObsolete()
           
 String getStyle()
           
 String getStyleClass()
           
 boolean getTranslate()
           
 boolean isRecursive()
           
 List<DirectoryEntry> resolveKeys(String[] keys)
          Resolves a list of keys (a selection) to a list of coresponding directory items.
 void restoreState(FacesContext context, Object state)
           
 Object saveState(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)
           
 void setShowObsolete(boolean showObsolete)
           
 void setStyle(String style)
           
 void setStyleClass(String styleClass)
           
 void setTranslate(boolean translate)
           
 
Methods inherited from class javax.faces.component.UIInput
addValidator, addValueChangeListener, decode, getConverterMessage, getFamily, 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

VOCABULARY_SCHEMA

public static final String VOCABULARY_SCHEMA
See Also:
Constant Field Values

XVOCABULARY_SCHEMA

public static final String XVOCABULARY_SCHEMA
Directory with a parent column.

See Also:
Constant Field Values
Method Detail

getDirectory

public String getDirectory(int level)

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

getDirectories

public String[] getDirectories()

isRecursive

public boolean isRecursive()

getDirectoryEntries

public 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.

Parameters:
level - the index of the listbox for which to compute the items
selectedKeys - the keys for the items selected on the previous levels
Returns:
a list of directory items

resolveKeys

public List<DirectoryEntry> resolveKeys(String[] keys)
Resolves a list of keys (a selection) to a list of coresponding directory items. Example: [a, b, c] is resolved to [getNode(a), getNode(b), getNode(c)]

Parameters:
keys -
Returns:

getComponentId

public String getComponentId(int level)

getKeySeparator

public String getKeySeparator()

setKeySeparator

public void setKeySeparator(String keySeparator)

getDefaultRootKey

public String getDefaultRootKey()

setDefaultRootKey

public void setDefaultRootKey(String defaultRootKey)

getDisplayValueOnly

public boolean getDisplayValueOnly()

setDisplayValueOnly

public void setDisplayValueOnly(boolean displayValueOnly)

getListboxSize

public int getListboxSize()

setListboxSize

public void setListboxSize(int listboxSize)

getDisplay

public String getDisplay()

setDisplay

public void setDisplay(String display)

getQualifiedParentKeys

public boolean getQualifiedParentKeys()

getDirectoryNames

public String getDirectoryNames()

setDirectoryNames

public void setDirectoryNames(String directoryNames)

getDepth

public int getDepth()

setDepth

public void setDepth(int depth)

getStyle

public String getStyle()

setStyle

public void setStyle(String style)

getStyleClass

public String getStyleClass()

setStyleClass

public void setStyleClass(String styleClass)

getTranslate

public boolean getTranslate()

setTranslate

public void setTranslate(boolean translate)

getShowObsolete

public boolean getShowObsolete()

setShowObsolete

public void setShowObsolete(boolean showObsolete)

getAllowBranchSelection

public boolean getAllowBranchSelection()

setAllowBranchSelection

public void setAllowBranchSelection(boolean allowBranchSelection)

getReRender

public String getReRender()

setReRender

public void setReRender(String reRender)

getSelection

public abstract String[] getSelection()

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.