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 Systems
     
    In a panel based implementation, Home, Products & Solutions etc would be separate panels that all are bread crumb participants: for instance the Home participant's title would return 'Home', and the component would be the corresponding panel.
    Author:
    Eelco Hillenius
    • 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<StringgetTitle()
        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