Class BreadCrumbParticipantDelegate
- java.lang.Object
-
- org.apache.wicket.extensions.breadcrumb.panel.BreadCrumbParticipantDelegate
-
- All Implemented Interfaces:
Serializable
,IBreadCrumbParticipant
,IClusterable
public abstract class BreadCrumbParticipantDelegate extends Object implements IBreadCrumbParticipant
Base implementation forPanel
/Component
basedIBreadCrumbParticipant
that decouples the implementation from the actual panel class.- Author:
- eelcohillenius
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BreadCrumbParticipantDelegate(Component component)
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Component
getComponent()
Gets the participating component.void
onActivate(IBreadCrumbParticipant previous)
If the previous participant is not null (and a component, which it should be), replace that component on it's parent with this one.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.wicket.extensions.breadcrumb.IBreadCrumbParticipant
getTitle
-
-
-
-
Constructor Detail
-
BreadCrumbParticipantDelegate
public BreadCrumbParticipantDelegate(Component component)
Construct.- Parameters:
component
-
-
-
Method Detail
-
getComponent
public Component getComponent()
Description copied from interface:IBreadCrumbParticipant
Gets the participating component. Typically, this is a panel.- Specified by:
getComponent
in interfaceIBreadCrumbParticipant
- Returns:
- The participating component, must return a non-null value
- See Also:
IBreadCrumbParticipant.getComponent()
-
onActivate
public void onActivate(IBreadCrumbParticipant previous)
If the previous participant is not null (and a component, which it should be), replace that component on it's parent with this one.- Specified by:
onActivate
in interfaceIBreadCrumbParticipant
- Parameters:
previous
- The previously active bread crumb participant, possibly null- See Also:
IBreadCrumbParticipant.onActivate(org.apache.wicket.extensions.breadcrumb.IBreadCrumbParticipant)
-
-