public abstract class AbstractItemSelector
extends javax.faces.component.UIInput
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractItemSelector.ItemSelectorEvent
Class representing the clicking of a breadcrumb element.
|
| Modifier and Type | Field and Description |
|---|---|
protected String |
avmStore
current AVM store being browsed
|
protected Boolean |
disabled
Flag to show whether the component is disabled
|
protected String |
initialSelectionId
id of the initially selected item, if value is not set
|
protected String |
label
label to be displayed before a space is selected
|
protected int |
mode
what mode the component is in
|
protected static int |
MODE_BEFORE_SELECTION |
protected static int |
MODE_CANCEL_SELECTION |
protected static int |
MODE_CONFIRM_SELECTION |
protected static int |
MODE_DRILLDOWN_SELECTION |
protected static int |
MODE_INITIAL_SELECTION |
protected String |
navigationId
currently browsing node id
|
protected static String |
OPTION |
protected Integer |
spacing
cellspacing between options
|
| Constructor and Description |
|---|
AbstractItemSelector()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
broadcast(javax.faces.event.FacesEvent event) |
void |
decode(javax.faces.context.FacesContext context) |
void |
encodeBegin(javax.faces.context.FacesContext context) |
protected String |
encodeFieldValues(int mode,
String id) |
abstract Collection<org.alfresco.service.cmr.repository.NodeRef> |
getChildrenForNode(javax.faces.context.FacesContext context)
Returns a collection of child associations for the current navigation node
|
abstract String |
getDefaultLabel()
Retrieves the default label to show if none has been defined and nothing has been selected
|
protected static org.alfresco.service.cmr.dictionary.DictionaryService |
getDictionaryService(javax.faces.context.FacesContext context)
Use Spring JSF integration to return the Dictionary Service bean instance
|
abstract String |
getFamily() |
protected static org.alfresco.service.cmr.repository.NodeService |
getFastNodeService(javax.faces.context.FacesContext context)
Use Spring JSF integration to return the node Service bean instance
|
protected String |
getHiddenFieldName()
We use a unique hidden field name based on our client Id.
|
String |
getInitialSelection() |
abstract String |
getItemIcon(javax.faces.context.FacesContext context,
org.alfresco.service.cmr.repository.NodeRef ref) |
String |
getLabel() |
protected static org.alfresco.service.cmr.repository.NodeService |
getNodeService(javax.faces.context.FacesContext context)
Use Spring JSF integration to return the Node Service bean instance
|
abstract String |
getParentNodeId(javax.faces.context.FacesContext context)
Retrieves the id of the parent node of the current navigation node
|
abstract Collection<org.alfresco.service.cmr.repository.NodeRef> |
getRootChildren(javax.faces.context.FacesContext context)
Returns a collection of child associations of the root
|
Integer |
getSpacing() |
boolean |
isDisabled()
Determines whether the component should be rendered in a disabled state
|
protected String |
renderNodeLink(javax.faces.context.FacesContext context,
String id,
String name,
String prefix,
StringBuilder buf)
Render a node descendant as a clickable link
|
void |
restoreState(javax.faces.context.FacesContext context,
Object state) |
Object |
saveState(javax.faces.context.FacesContext context) |
void |
setDisabled(boolean disabled)
Determines whether the component should be rendered in a disabled state
|
void |
setInitialSelection(String initialSelection) |
void |
setLabel(String label) |
void |
setSpacing(Integer spacing) |
addValidator, addValueChangeListener, compareValues, getConvertedValue, getSubmittedValue, getValidator, getValidators, getValue, getValueChangeListener, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, setImmediate, setLocalValueSet, setRequired, setSubmittedValue, setValid, setValidator, setValue, setValueChangeListener, updateModel, validate, validateValuegetConverter, getLocalValue, setConverteraddFacesListener, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBindingprotected static final String OPTION
protected static final int MODE_BEFORE_SELECTION
protected static final int MODE_INITIAL_SELECTION
protected static final int MODE_DRILLDOWN_SELECTION
protected static final int MODE_CONFIRM_SELECTION
protected static final int MODE_CANCEL_SELECTION
protected String label
protected Integer spacing
protected int mode
protected String navigationId
protected String avmStore
protected String initialSelectionId
protected Boolean disabled
public abstract String getFamily()
getFamily in class javax.faces.component.UIInputUIComponent.getFamily()public abstract String getDefaultLabel()
public abstract String getParentNodeId(javax.faces.context.FacesContext context)
context - The Faces contextpublic abstract Collection<org.alfresco.service.cmr.repository.NodeRef> getChildrenForNode(javax.faces.context.FacesContext context)
context - The Faces contextpublic abstract Collection<org.alfresco.service.cmr.repository.NodeRef> getRootChildren(javax.faces.context.FacesContext context)
context - The Faces contextpublic abstract String getItemIcon(javax.faces.context.FacesContext context, org.alfresco.service.cmr.repository.NodeRef ref)
ref - NodeRef to the item to get the icon forpublic void restoreState(javax.faces.context.FacesContext context,
Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class javax.faces.component.UIInputStateHolder.restoreState(javax.faces.context.FacesContext, java.lang.Object)public Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHoldersaveState in class javax.faces.component.UIInputStateHolder.saveState(javax.faces.context.FacesContext)public void decode(javax.faces.context.FacesContext context)
decode in class javax.faces.component.UIInputUIComponentBase.decode(javax.faces.context.FacesContext)public void broadcast(javax.faces.event.FacesEvent event)
throws javax.faces.event.AbortProcessingException
broadcast in class javax.faces.component.UIInputjavax.faces.event.AbortProcessingExceptionUIInput.broadcast(javax.faces.event.FacesEvent)public void encodeBegin(javax.faces.context.FacesContext context)
throws IOException
encodeBegin in class javax.faces.component.UIComponentBaseIOExceptionUIComponentBase.encodeBegin(javax.faces.context.FacesContext)public String getLabel()
public void setLabel(String label)
label - The label to set.public Integer getSpacing()
public void setSpacing(Integer spacing)
spacing - The spacing to set.public String getInitialSelection()
public void setInitialSelection(String initialSelection)
initialSelection - The initial selection to set.public boolean isDisabled()
public void setDisabled(boolean disabled)
disabled - true to disable the componentprotected String getHiddenFieldName()
protected String renderNodeLink(javax.faces.context.FacesContext context, String id, String name, String prefix, StringBuilder buf)
context - FacesContextid - The idname - The nameprefix - The prefixbuf - String bufferprotected static org.alfresco.service.cmr.repository.NodeService getNodeService(javax.faces.context.FacesContext context)
context - FacesContextprotected static org.alfresco.service.cmr.repository.NodeService getFastNodeService(javax.faces.context.FacesContext context)
context - FacesContextprotected static org.alfresco.service.cmr.dictionary.DictionaryService getDictionaryService(javax.faces.context.FacesContext context)
context - FacesContextCopyright © 2005–2018 Alfresco Software. All rights reserved.