protected class BreadCrumbBar.BreadCrumbsListView extends ListView<IBreadCrumbParticipant> implements IBreadCrumbModelListener
ENABLE, FLAG_INITIALIZED, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING, RFLAG_CONTAINER_HAS_REMOVALS
Constructor and Description |
---|
BreadCrumbsListView(String id)
Construct.
|
Modifier and Type | Method and Description |
---|---|
void |
breadCrumbActivated(IBreadCrumbParticipant previousParticipant,
IBreadCrumbParticipant breadCrumbParticipant)
Called when a bread crumb was activated.
|
void |
breadCrumbAdded(IBreadCrumbParticipant breadCrumbParticipant)
Called when a bread crumb was added to the model.
|
void |
breadCrumbRemoved(IBreadCrumbParticipant breadCrumbParticipant)
Called when a bread crumb was removed from the model.
|
protected void |
onBeforeRender()
Called on all visible components before any component is rendered.
|
protected void |
populateItem(ListItem<IBreadCrumbParticipant> item)
Populate a given item.
|
getList, getListItemModel, getModel, getModelObject, getReuseItems, getStartIndex, getViewSize, moveDownLink, moveUpLink, newItem, onBeginPopulateItem, onPopulate, removeLink, renderChild, renderItem, renderIterator, setList, setModel, setModelObject, setReuseItems, setStartIndex, setViewSize
dequeue, getMarkup, onRender
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession
add, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeuePreamble, findChildComponent, findComponentToDequeue, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkupType, getRegionMarkup, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onComponentTagBody, onDetach, onInitialize, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, stream, streamChildren, toString, toString, visitChildren, visitChildren
add, addStateChange, beforeRender, canCallListener, canCallListenerAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, createConverter, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnModelChanged, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isInitialized, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onComponentTag, onConfigure, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderPart, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlForListener, urlForListener, visitParents, visitParents, warn, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public BreadCrumbsListView(String id)
id
- Component idpublic void breadCrumbActivated(IBreadCrumbParticipant previousParticipant, IBreadCrumbParticipant breadCrumbParticipant)
IBreadCrumbModelListener
breadCrumbActivated
in interface IBreadCrumbModelListener
previousParticipant
- The previously active participantbreadCrumbParticipant
- The bread crumb that was activated.public void breadCrumbAdded(IBreadCrumbParticipant breadCrumbParticipant)
IBreadCrumbModelListener
breadCrumbAdded
in interface IBreadCrumbModelListener
breadCrumbParticipant
- The new bread crumbpublic void breadCrumbRemoved(IBreadCrumbParticipant breadCrumbParticipant)
IBreadCrumbModelListener
breadCrumbRemoved
in interface IBreadCrumbModelListener
breadCrumbParticipant
- The bread crumb that was removedprotected void onBeforeRender()
Component
NOTE: If you override this, you *must* call super.onBeforeRender() within
your implementation.
Because this method is responsible for cascading Component.onBeforeRender()
call to its
children it is strongly recommended that super call is made at the end of the override.
onBeforeRender
in class AbstractRepeater
AbstractRepeater.onBeforeRender()
protected void populateItem(ListItem<IBreadCrumbParticipant> item)
ListView
be careful to add any components to the list item. So, don't do:
add(new Label("foo", "bar"));but:
item.add(new Label("foo", "bar"));
populateItem
in class ListView<IBreadCrumbParticipant>
item
- The item to populateCopyright © 2006–2022 Apache Software Foundation. All rights reserved.