|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectwicket.Component
wicket.MarkupContainer
wicket.markup.html.WebMarkupContainer
wicket.markup.html.WebMarkupContainerWithAssociatedMarkup
wicket.markup.html.panel.Panel
wicket.extensions.breadcrumb.BreadCrumbBar
A component that renders bread crumbs. By default, it renders a horizontal list from left to right (oldest left) with bread crumb links and a ' / ' as a seperator, e.g.
first / second / thirdThis component also functions as a implementation of
bread crumb model. This component holds the state
as well as doing the rendering. Override and provide your own markup file if
you want to work with other elements, e.g. uls instead of spans.
| Nested Class Summary | |
protected class |
BreadCrumbBar.BreadCrumbsListView
List view for rendering the bread crumbs. |
| Nested classes inherited from class wicket.markup.html.WebMarkupContainerWithAssociatedMarkup |
wicket.markup.html.WebMarkupContainerWithAssociatedMarkup.HeaderPartContainer |
| Nested classes inherited from class wicket.Component |
wicket.Component.ComponentModelChange, wicket.Component.EnabledChange, wicket.Component.IVisitor, wicket.Component.VisibilityChange |
| Field Summary |
| Fields inherited from class wicket.Component |
ENABLE, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED6, FLAG_RESERVED7, FLAG_RESERVED8, PATH_SEPARATOR, RENDER |
| Constructor Summary | |
BreadCrumbBar(java.lang.String id)
Construct. |
|
BreadCrumbBar(java.lang.String id,
boolean addDefaultCssStyle)
Deprecated. As of 1.2.1 calling this method with addDefaultCssStyle == true doesn't add any style anymore. Use your own markup file or css header contribution
if you want a different style/ look. The default
implementation doesn't use unnumbered lists anymore because
of the issues described here
This method will be removed in 2.0 |
|
| Method Summary | |
protected void |
activate(IBreadCrumbParticipant breadCrumbParticipant)
Activates the bread crumb participant. |
void |
addDefaultCssStyle()
Deprecated. As of 1.2.1 calling this method is a no-op. Use your own markup file or css header contribution
if you want a different style/ look. The default
implementation doesn't use unnumbered lists anymore because
of the issues described here
This method will be removed in 2.0 |
void |
addListener(IBreadCrumbModelListener listener)
Adds a bread crumb model listener. |
java.util.List |
allBreadCrumbParticipants()
Lists the bread crumb participants in this model. |
IBreadCrumbParticipant |
getActive()
Gets the currently active participant, if any. |
protected boolean |
getEnableLinkToCurrent()
Gets whether the current bread crumb should be displayed as a link (e.g. |
protected wicket.Component |
newBreadCrumbComponent(java.lang.String id,
int index,
int total,
IBreadCrumbParticipant breadCrumbParticipant)
Creates a new bread crumb component. |
void |
removeListener(IBreadCrumbModelListener listener)
Removes a bread crumb model listener. |
void |
setActive(IBreadCrumbParticipant breadCrumbParticipant)
Sets the bread crumb as the active one. |
| Methods inherited from class wicket.markup.html.panel.Panel |
onComponentTag, onComponentTagBody, renderHead |
| Methods inherited from class wicket.markup.html.WebMarkupContainerWithAssociatedMarkup |
newHeaderPartContainer, renderHeadFromAssociatedMarkupFile |
| Methods inherited from class wicket.markup.html.WebMarkupContainer |
getMarkupType, getWebPage |
| Methods inherited from class wicket.MarkupContainer |
add, autoAdd, contains, findMarkupStream, get, getAssociatedMarkupStream, getMarkupStream, internalAdd, internalAttach, internalDetach, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, replace, setMarkupStream, setModel, size, toString, toString, visitChildren, visitChildren |
| Methods inherited from class wicket.Component |
add, addStateChange, checkComponentTag, checkComponentTagAttribute, continueToOriginalDestination, debug, detachBehaviors, detachModel, detachModels, error, exceptionMessage, fatal, findPage, findParent, findParentWithAssociatedMarkup, getApplication, getApplicationPages, getApplicationSettings, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getEscapeModelStrings, getFeedbackMessage, getFlag, getFlag, getId, getLocale, getLocalizer, getMarkupAttributes, getMarkupId, getMetaData, getModel, getModelComparator, getModelObject, getModelObjectAsString, getOutputMarkupId, getPage, getPageFactory, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResponse, getSession, getSizeInBytes, getString, getString, getString, getStyle, getVariation, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnAttach, internalOnDetach, internalOnModelChanged, isActionAuthorized, isAncestorOf, isBehaviorAccepted, isEnableAllowed, isEnabled, isHeadRendered, isIgnoreAttributeModifier, isRenderAllowed, isVersioned, isVisible, isVisibleInHierarchy, modelChanged, modelChanging, newPage, newPage, onAfterRender, onAttach, onBeforeRender, onBeginRequest, onDetach, onEndRequest, onModelChanged, onModelChanging, onRender, redirectToInterceptPage, remove, render, render, renderComponent, renderComponent, renderComponentTag, rendered, renderedBehaviors, replaceComponentTagBody, replaceWith, resetHeadRendered, sameRootModel, sameRootModel, setAuto, setEnabled, setEscapeModelStrings, setFlag, setFlag, setIgnoreAttributeModifier, setMetaData, setModelObject, setOutputMarkupId, setRedirect, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisible, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, warn |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public BreadCrumbBar(java.lang.String id)
id - Component id
public BreadCrumbBar(java.lang.String id,
boolean addDefaultCssStyle)
css header contribution
if you want a different style/ look. The default
implementation doesn't use unnumbered lists anymore because
of the issues described here
This method will be removed in 2.0
id - Component idaddDefaultCssStyle - Whether the default style should
be added *| Method Detail |
public final void addDefaultCssStyle()
css header contribution
if you want a different style/ look. The default
implementation doesn't use unnumbered lists anymore because
of the issues described here
This method will be removed in 2.0
public final void addListener(IBreadCrumbModelListener listener)
IBreadCrumbModel
addListener in interface IBreadCrumbModellistener - The listener to addIBreadCrumbModel.addListener(wicket.extensions.breadcrumb.IBreadCrumbModelListener)public final java.util.List allBreadCrumbParticipants()
IBreadCrumbModel
allBreadCrumbParticipants in interface IBreadCrumbModelbread crumb participants.IBreadCrumbModel.allBreadCrumbParticipants()public IBreadCrumbParticipant getActive()
IBreadCrumbModel
getActive in interface IBreadCrumbModelIBreadCrumbModel.getActive()public final void removeListener(IBreadCrumbModelListener listener)
IBreadCrumbModel
removeListener in interface IBreadCrumbModellistener - The listener to removeIBreadCrumbModel.removeListener(wicket.extensions.breadcrumb.IBreadCrumbModelListener)public final void setActive(IBreadCrumbParticipant breadCrumbParticipant)
IBreadCrumbModelbread crumb as the active one.
Implementations should call
bread crumb added
when the bread crumb was not yet part of the model, and
bread crumb removed
for every crumb that was removed as the result of this call.
setActive in interface IBreadCrumbModelbreadCrumbParticipant - The bread crump that should be set as the currently activeIBreadCrumbModel.setActive(wicket.extensions.breadcrumb.IBreadCrumbParticipant)protected final void activate(IBreadCrumbParticipant breadCrumbParticipant)
breadCrumbParticipant - The participant to activateprotected boolean getEnableLinkToCurrent()
protected wicket.Component newBreadCrumbComponent(java.lang.String id,
int index,
int total,
IBreadCrumbParticipant breadCrumbParticipant)
id - The component idindex - The index of the bread crumbtotal - The total number of bread crumbs in the current modelbreadCrumbParticipant - the bread crumb
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||