Interface IBreadCrumbParticipant
-
- All Superinterfaces:
org.apache.wicket.util.io.IClusterable,Serializable
- All Known Implementing Classes:
BreadCrumbPanel,BreadCrumbParticipantDelegate
public interface IBreadCrumbParticipant extends org.apache.wicket.util.io.IClusterable
Bread crumb participants function as proxies for components that are part of a bread crumb hierarchy. An example of a bread crumb is:Home > Products & Solutions > Hardware > Desktop SystemsIn apanel based implementation, Home, Products & Solutions etc would be separate panels that all are bread crumb participants: for instance the Home participant'stitlewould return 'Home', andthe componentwould be the corresponding panel.- Author:
- Eelco Hillenius
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.wicket.ComponentgetComponent()Gets the participating component.org.apache.wicket.model.IModel<String>getTitle()Gets the title of the bread crumb, which will be used for displaying it.voidonActivate(IBreadCrumbParticipant previous)Called when the corresponding bread crumb is activated.
-
-
-
Method Detail
-
getComponent
org.apache.wicket.Component getComponent()
Gets the participating component. Typically, this is a panel.- Returns:
- The participating component, must return a non-null value
-
getTitle
org.apache.wicket.model.IModel<String> getTitle()
Gets the title of the bread crumb, which will be used for displaying it.- Returns:
- The title of the bread crumb
-
onActivate
void onActivate(IBreadCrumbParticipant previous)
Called when the corresponding bread crumb is activated.- Parameters:
previous- The previously active bread crumb participant, possibly null
-
-