Class BreadCrumbPanelFactory
- java.lang.Object
-
- org.apache.wicket.extensions.breadcrumb.panel.BreadCrumbPanelFactory
-
- All Implemented Interfaces:
Serializable
,IBreadCrumbPanelFactory
,IClusterable
public final class BreadCrumbPanelFactory extends Object implements IBreadCrumbPanelFactory
Simple factory that creates instances of abread crumb panel
based on the class it is constructed with.- Author:
- Eelco Hillenius
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BreadCrumbPanelFactory(Class<? extends BreadCrumbPanel> panelClass)
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BreadCrumbPanel
create(String componentId, IBreadCrumbModel breadCrumbModel)
Creates a newbread crumb panel
instance.
-
-
-
Constructor Detail
-
BreadCrumbPanelFactory
public BreadCrumbPanelFactory(Class<? extends BreadCrumbPanel> panelClass)
Construct.- Parameters:
panelClass
- The class to use for creating instances. Must be of typeBreadCrumbPanel
, and must have constructorBreadCrumbPanel(String, IBreadCrumbModel)
-
-
Method Detail
-
create
public final BreadCrumbPanel create(String componentId, IBreadCrumbModel breadCrumbModel)
Description copied from interface:IBreadCrumbPanelFactory
Creates a newbread crumb panel
instance. The provided component id must be used when creating the panel.- Specified by:
create
in interfaceIBreadCrumbPanelFactory
- Parameters:
componentId
- The component id for the new panel.breadCrumbModel
- The bread crumb model- Returns:
- A new bread crumb panel instance
- See Also:
IBreadCrumbPanelFactory.create(java.lang.String, org.apache.wicket.extensions.breadcrumb.IBreadCrumbModel)
-
-