public class UIBreadcrumb extends UICommand
Modifier and Type | Class and Description |
---|---|
static class |
UIBreadcrumb.BreadcrumbEvent
Class representing the clicking of a breadcrumb element.
|
Modifier and Type | Field and Description |
---|---|
static String |
SEPARATOR
the separator for a breadcrumb path value
|
COMPONENT_FAMILY, COMPONENT_TYPE
Constructor and Description |
---|
UIBreadcrumb()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
appendHandler(IBreadcrumbHandler handler)
Append a handler object to the current breadcrumb structure
|
void |
broadcast(FacesEvent event) |
String |
getFamily() |
String |
getSeparator()
Get the separator string to output between each breadcrumb element
|
boolean |
getShowRoot()
Get whether to show the root of the path
|
Object |
getValue()
Override getValue() to deal with converting a String path into a valid List of IBreadcrumbHandler
|
void |
restoreState(FacesContext context,
Object state) |
Object |
saveState(FacesContext context) |
void |
setSelectedPathIndex(int index)
Set the selected path index.
|
void |
setSeparator(String separator)
Set separator
|
void |
setShowRoot(boolean showRoot)
Set whether to show the root of the path
|
addActionListener, getAction, getActionListener, getActionListeners, isImmediate, queueEvent, removeActionListener, setAction, setActionListener, setImmediate, setValue
addFacesListener, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
public static final String SEPARATOR
public String getFamily()
getFamily
in class UICommand
UIComponent.getFamily()
public void restoreState(FacesContext context, Object state)
restoreState
in interface StateHolder
restoreState
in class UICommand
StateHolder.restoreState(javax.faces.context.FacesContext, java.lang.Object)
public Object saveState(FacesContext context)
saveState
in interface StateHolder
saveState
in class UICommand
StateHolder.saveState(javax.faces.context.FacesContext)
public void broadcast(FacesEvent event) throws AbortProcessingException
broadcast
in class UICommand
AbortProcessingException
UICommand.broadcast(javax.faces.event.FacesEvent)
public void setSelectedPathIndex(int index)
public Object getValue()
public void appendHandler(IBreadcrumbHandler handler)
handler
- The IBreadcrumbHandler to appendpublic String getSeparator()
public void setSeparator(String separator)
separator
- the separator string to output between each breadcrumb elementpublic boolean getShowRoot()
public void setShowRoot(boolean showRoot)
showRoot
- Whether to show the root of the pathCopyright © 2005–2017 Alfresco Software. All rights reserved.