|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.uif.util.BreadcrumbOptions
public class BreadcrumbOptions
BreadcrumbOptions represents the options for the current view breadcrumbs that are displayed.
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.
Constructor Summary | |
---|---|
BreadcrumbOptions()
|
Method Summary | ||
---|---|---|
BreadcrumbOptions |
clone()
Override Object.clone() to assign the public modifier. |
|
|
copy()
Return a copy of the class. |
|
void |
finalizeBreadcrumbs(Object model,
Container parent,
BreadcrumbItem breadcrumbItem)
Finalize the setup of the BreadcrumbOptions and the BreadcrumbItem for the View. |
|
protected void |
finalizeBreadcrumbsUrl(Object model,
Container parent,
BreadcrumbItem breadcrumbItem)
Finalize the setup of url for the BreadcrumbItem. |
|
List<BreadcrumbItem> |
getBreadcrumbOverrides()
The breadcrumbOverrides are a complete override for all breadcrumbs shown expect for parent location/path breadcrumbs. |
|
List<BreadcrumbItem> |
getHomewardPathBreadcrumbs()
The homewardPathBreadcrumbs represent the path to "Home" location, these appear before anything else - including parentLocation/path based breadcrumbs. |
|
List<BreadcrumbItem> |
getPrePageBreadcrumbs()
The prePageBreadcrumbs list represents BreadcrumbItems that will be shown before the PageGroup's BreadcrumbItem, but after the View's BreadcrumbItem. |
|
List<BreadcrumbItem> |
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) |
|
void |
preventModification()
Modification is not controlled at this level. |
|
void |
setBreadcrumbOverrides(List<BreadcrumbItem> breadcrumbOverrides)
Set the breadcrumbOverrides list |
|
void |
setHomewardPathBreadcrumbs(List<BreadcrumbItem> homewardPathBreadcrumbs)
Set the homewardPathBreadcrumbs |
|
void |
setPrePageBreadcrumbs(List<BreadcrumbItem> prePageBreadcrumbs)
Set the prePageBreadcrumbs |
|
void |
setPreViewBreadcrumbs(List<BreadcrumbItem> preViewBreadcrumbs)
Set the preViewBreadcrumbs |
|
void |
setupBreadcrumbs(Object model)
Sets up the history and breadcrumb configuration for this View. |
|
Copyable |
unwrap()
Get the innermost copyable instance, if wrapped by a proxy. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BreadcrumbOptions()
Method Detail |
---|
public void setupBreadcrumbs(Object model)
model
- the modelpublic void finalizeBreadcrumbs(Object model, Container parent, BreadcrumbItem breadcrumbItem)
model
- the modelparent
- parent containerbreadcrumbItem
- breadcrumb item to finalizeprotected void finalizeBreadcrumbsUrl(Object model, Container parent, BreadcrumbItem breadcrumbItem)
model
- the modelparent
- the parentbreadcrumbItem
- the breadcrumb itempublic List<BreadcrumbItem> getHomewardPathBreadcrumbs()
public void setHomewardPathBreadcrumbs(List<BreadcrumbItem> homewardPathBreadcrumbs)
homewardPathBreadcrumbs
- public List<BreadcrumbItem> getPreViewBreadcrumbs()
public void setPreViewBreadcrumbs(List<BreadcrumbItem> preViewBreadcrumbs)
preViewBreadcrumbs
- public List<BreadcrumbItem> getPrePageBreadcrumbs()
public void setPrePageBreadcrumbs(List<BreadcrumbItem> prePageBreadcrumbs)
prePageBreadcrumbs
- public List<BreadcrumbItem> getBreadcrumbOverrides()
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.
public void setBreadcrumbOverrides(List<BreadcrumbItem> breadcrumbOverrides)
breadcrumbOverrides
- public BreadcrumbOptions clone() throws CloneNotSupportedException
Copyable
Object.clone()
to assign the public modifier.
clone
in interface Copyable
clone
in class Object
Object.clone()
CloneNotSupportedException
- If Cloneable
is not implemented. This should not
be possible when using this interface.Copyable.clone()
public void preventModification()
preventModification
in interface Copyable
Copyable.preventModification()
public final <T> T copy()
Copyable
copy
in interface Copyable
T
- copyable type
Copyable.copy()
,
CopyUtils.copy(Copyable)
public Copyable unwrap()
unwrap
in interface Copyable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |