Nuxeo ECM Projects 5.4.3-SNAPSHOT

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

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

public class ChainSelectOutputComponent
extends UIOutput

Component to display a chained directory entry.

Author:
George Lefter

Field Summary
static String COMPONENT_FAMILY
           
static String COMPONENT_TYPE
           
 
Constructor Summary
ChainSelectOutputComponent()
           
 
Method Summary
 Selection createSelection(String keyEnum)
          Transform a comma-separated list of keys into a selection.
 String getCssStyle()
           
 String getCssStyleClass()
           
 String getDirectoryNameList()
           
 String getDisplay()
          Hide legacy "displayIdAndLabel" property.
 boolean getDisplayIdAndLabel()
          Deprecated. use display=id|label|idAndLabel instead
 String getDisplayKeySeparator()
           
 boolean getDisplayObsoleteEntries()
           
 String getEntrySeparator()
           
 String getFamily()
           
 boolean getHandleMultipleValues()
           
 String getKeySeparator()
           
 boolean getLocalize()
           
 boolean getQualifiedParentKeys()
           
 void restoreState(FacesContext context, Object state)
           
 Object saveState(FacesContext context)
           
 void setCssStyle(String cssStyle)
           
 void setCssStyleClass(String cssStyleClass)
           
 void setDirectoryNameList(String directoryNameList)
           
 void setDisplay(String display)
           
 void setDisplayIdAndLabel(boolean displayIdAndLabel)
           
 void setDisplayKeySeparator(String keySeparator)
           
 void setDisplayObsoleteEntries(boolean displayObsoleteEntries)
           
 void setDisplayObsoleteEntries(Boolean displayObsoleteEntries)
           
 void setEntrySeparator(String entrySeparator)
           
 void setHandleMultipleValues(boolean handleMultipleValues)
           
 void setKeySeparator(String keySeparator)
           
 void setLocalize(boolean localize)
           
 void setQualifiedParentKeys(boolean qualifiedParentKeys)
           
 void setQualifiedParentKeys(Boolean qualifiedParentKeys)
           
 
Methods inherited from class javax.faces.component.UIOutput
getConverter, getLocalValue, getValue, setConverter, setValue
 
Methods inherited from class javax.faces.component.UIComponentBase
broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, 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
 

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
Constructor Detail

ChainSelectOutputComponent

public ChainSelectOutputComponent()
Method Detail

getFamily

public String getFamily()
Overrides:
getFamily in class UIOutput

getKeySeparator

public String getKeySeparator()

setDisplayKeySeparator

public void setDisplayKeySeparator(String keySeparator)

getDisplayKeySeparator

public String getDisplayKeySeparator()

setKeySeparator

public void setKeySeparator(String keySeparator)

getQualifiedParentKeys

public boolean getQualifiedParentKeys()

getHandleMultipleValues

public boolean getHandleMultipleValues()

setHandleMultipleValues

public void setHandleMultipleValues(boolean handleMultipleValues)

setQualifiedParentKeys

public void setQualifiedParentKeys(boolean qualifiedParentKeys)

getDisplayIdAndLabel

@Deprecated
public boolean getDisplayIdAndLabel()
Deprecated. use display=id|label|idAndLabel instead


setDisplayIdAndLabel

public void setDisplayIdAndLabel(boolean displayIdAndLabel)

getLocalize

public boolean getLocalize()

setLocalize

public void setLocalize(boolean localize)

getDisplay

public String getDisplay()
Hide legacy "displayIdAndLabel" property. Use "display" if set; else if "displayIdAndLabel" is true, return "idAndLabel", else default to "label".

Returns:
whether to display the id, the label or both

setDisplay

public void setDisplay(String display)

saveState

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

restoreState

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

getDisplayObsoleteEntries

public boolean getDisplayObsoleteEntries()

createSelection

public Selection createSelection(String keyEnum)
Transform a comma-separated list of keys into a selection. The list can be separated by the keySeparator string

Parameters:
keyEnum - the comma-separated list of keys
Returns:

getEntrySeparator

public String getEntrySeparator()

setEntrySeparator

public void setEntrySeparator(String entrySeparator)

getCssStyle

public String getCssStyle()

setCssStyle

public void setCssStyle(String cssStyle)

getCssStyleClass

public String getCssStyleClass()

setCssStyleClass

public void setCssStyleClass(String cssStyleClass)

setDisplayObsoleteEntries

public void setDisplayObsoleteEntries(Boolean displayObsoleteEntries)

setDisplayObsoleteEntries

public void setDisplayObsoleteEntries(boolean displayObsoleteEntries)

setQualifiedParentKeys

public void setQualifiedParentKeys(Boolean qualifiedParentKeys)

getDirectoryNameList

public String getDirectoryNameList()

setDirectoryNameList

public void setDirectoryNameList(String directoryNameList)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.