Class BreadcrumbOptions
- All Implemented Interfaces:
Serializable,Cloneable,Copyable
- Direct Known Subclasses:
PageBreadcrumbOptions
This class allows for complete override of all breadcrumbs, and ability to add breadcrumbs before the view and page breadcrumb items. Important note: breadcrumbOptions for preViewBreadcrumbs, prePageBreadcrumbs, and breadcrumbOverrides are inherited from the View if not explicitly set from the PageGroup level's breadcrumbOptions (if they contain a value at the view level and the property is null at the page level - default behavior). Explicitly providing an empty list or setting these properties at the PageGroup level will override this inheritance.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()OverrideObject.clone()to assign the public modifier.voidfinalizeBreadcrumbs(Object model, Container parent, BreadcrumbItem breadcrumbItem) Finalize the setup of the BreadcrumbOptions and the BreadcrumbItem for the View.protected voidfinalizeBreadcrumbsUrl(Object model, Container parent, BreadcrumbItem breadcrumbItem) Finalize the setup of url for the BreadcrumbItem.The breadcrumbOverrides are a complete override for all breadcrumbs shown expect for parent location/path breadcrumbs.The homewardPathBreadcrumbs represent the path to "Home" location, these appear before anything else - including parentLocation/path based breadcrumbs.The prePageBreadcrumbs list represents BreadcrumbItems that will be shown before the PageGroup's BreadcrumbItem, but after the View's BreadcrumbItem.The preViewBreadcrumbs list represents BreadcrumbItems that will be shown before the View's BreadcrumbItem, but after any parent location breadcrumbs/path based breadcrumbs (if in use)voidsetBreadcrumbOverrides(List<BreadcrumbItem> breadcrumbOverrides) Set the breadcrumbOverrides listvoidsetHomewardPathBreadcrumbs(List<BreadcrumbItem> homewardPathBreadcrumbs) Set the homewardPathBreadcrumbsvoidsetPrePageBreadcrumbs(List<BreadcrumbItem> prePageBreadcrumbs) Set the prePageBreadcrumbsvoidsetPreViewBreadcrumbs(List<BreadcrumbItem> preViewBreadcrumbs) Set the preViewBreadcrumbsvoidsetupBreadcrumbs(Object model) Sets up the history and breadcrumb configuration for this View.
-
Constructor Details
-
BreadcrumbOptions
public BreadcrumbOptions()
-
-
Method Details
-
setupBreadcrumbs
Sets up the history and breadcrumb configuration for this View. Should be called from performInitialization.- Parameters:
model- the model
-
finalizeBreadcrumbs
Finalize the setup of the BreadcrumbOptions and the BreadcrumbItem for the View. To be called from the performFinalize method.- Parameters:
model- the modelparent- parent containerbreadcrumbItem- breadcrumb item to finalize
-
finalizeBreadcrumbsUrl
protected void finalizeBreadcrumbsUrl(Object model, Container parent, BreadcrumbItem breadcrumbItem) Finalize the setup of url for the BreadcrumbItem.- Parameters:
model- the modelparent- the parentbreadcrumbItem- the breadcrumb item
-
getHomewardPathBreadcrumbs
The homewardPathBreadcrumbs represent the path to "Home" location, these appear before anything else - including parentLocation/path based breadcrumbs.- Returns:
- the homewardPathBreadcrumbs to render
-
setHomewardPathBreadcrumbs
Set the homewardPathBreadcrumbs- Parameters:
homewardPathBreadcrumbs-
-
getPreViewBreadcrumbs
The preViewBreadcrumbs list represents BreadcrumbItems that will be shown before the View's BreadcrumbItem, but after any parent location breadcrumbs/path based breadcrumbs (if in use)- Returns:
- the preViewBreadcrumbs to render
-
setPreViewBreadcrumbs
Set the preViewBreadcrumbs- Parameters:
preViewBreadcrumbs-
-
getPrePageBreadcrumbs
The prePageBreadcrumbs list represents BreadcrumbItems that will be shown before the PageGroup's BreadcrumbItem, but after the View's BreadcrumbItem.- Returns:
- the preViewBreadcrumbs to render
-
setPrePageBreadcrumbs
Set the prePageBreadcrumbs- Parameters:
prePageBreadcrumbs-
-
getBreadcrumbOverrides
The breadcrumbOverrides are a complete override for all breadcrumbs shown expect for parent location/path breadcrumbs.The BreadcrumbItems set in this list will be used instead of any View, PageGroup, preViewBreadcrumbs, or prePageBreadcrumbs BreadcrumbItems already set. Each item can be customized fully. If parent location/path breadcrumbs should also not be shown, set renderParentLocations to false. All other render options set in BreadcrumbOptions will be ignored/not apply as a result of setting this override list.
- Returns:
- the breadcrumbOverride list
-
setBreadcrumbOverrides
Set the breadcrumbOverrides list- Parameters:
breadcrumbOverrides-
-
clone
Description copied from interface:CopyableOverrideObject.clone()to assign the public modifier.- Specified by:
clonein interfaceCopyable- Overrides:
clonein classObject- Returns:
Object.clone()- Throws:
CloneNotSupportedException- IfCloneableis not implemented. This should not be possible when using this interface.- See Also:
-