Module org.apache.wicket.extensions
Class DefaultBreadCrumbsModel
java.lang.Object
org.apache.wicket.extensions.breadcrumb.DefaultBreadCrumbsModel
- All Implemented Interfaces:
Serializable,IBreadCrumbModel,org.apache.wicket.util.io.IClusterable
Default breadcrumb model implementation that should be good for 99% of the use cases out there.
- Author:
- eelcohillenius
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidactivate(IBreadCrumbParticipant breadCrumbParticipant) Activates the bread crumb participant.final voidaddListener(IBreadCrumbModelListener listener) Adds a bread crumb model listener.final List<IBreadCrumbParticipant>Lists the bread crumb participants in this model.Gets the currently active participant, if any.final voidremoveListener(IBreadCrumbModelListener listener) Removes a bread crumb model listener.final voidsetActive(IBreadCrumbParticipant breadCrumbParticipant) Sets thebread crumbas the active one.
-
Constructor Details
-
DefaultBreadCrumbsModel
public DefaultBreadCrumbsModel()Construct.
-
-
Method Details
-
addListener
Description copied from interface:IBreadCrumbModelAdds a bread crumb model listener.- Specified by:
addListenerin interfaceIBreadCrumbModel- Parameters:
listener- The listener to add- See Also:
-
allBreadCrumbParticipants
Description copied from interface:IBreadCrumbModelLists the bread crumb participants in this model.- Specified by:
allBreadCrumbParticipantsin interfaceIBreadCrumbModel- Returns:
- The bread crumbs participants, as list with
bread crumb participants. - See Also:
-
getActive
Description copied from interface:IBreadCrumbModelGets the currently active participant, if any.- Specified by:
getActivein interfaceIBreadCrumbModel- Returns:
- The currently active participant, may be null
- See Also:
-
removeListener
Description copied from interface:IBreadCrumbModelRemoves a bread crumb model listener.- Specified by:
removeListenerin interfaceIBreadCrumbModel- Parameters:
listener- The listener to remove- See Also:
-
setActive
Description copied from interface:IBreadCrumbModelSets thebread crumbas the active one. Implementations should callbread crumb addedwhen the bread crumb was not yet part of the model, andbread crumb removedfor every crumb that was removed as the result of this call.- Specified by:
setActivein interfaceIBreadCrumbModel- Parameters:
breadCrumbParticipant- The bread crump that should be set as the currently active- See Also:
-
activate
Activates the bread crumb participant.- Parameters:
breadCrumbParticipant- The participant to activate
-