public class ParentLocation extends UifDictionaryBeanBase implements Serializable
Modifier and Type | Field and Description |
---|---|
protected List<BreadcrumbItem> |
resolvedBreadcrumbItems |
componentCode, namespaceCode
Constructor and Description |
---|
ParentLocation() |
Modifier and Type | Method and Description |
---|---|
List<BreadcrumbItem> |
constructParentLocationBreadcrumbItems(View view,
Object currentModel,
Map<String,Object> currentContext)
Construct the parent location breadcrumbItems that represent all the parent views/pages configured through
parentLocation by traversing through each view by id referenced in parentViewUrl in a chain recursively.
|
BreadcrumbItem |
getPageBreadcrumbItem()
The pageBreadcrumbItem to use for the parent location view breadcrumb.
|
String |
getParentPageLabel()
The parentPageLabel is the text used for breadcrumbItem label of the parent page.
|
UrlInfo |
getParentPageUrl()
The parentPageUrl representing a page url that is the parent of this View.
|
String |
getParentViewLabel()
The parentViewLabel is the text used for breadcrumbItem label of the parent view.
|
UrlInfo |
getParentViewUrl()
The parentViewUrl representing the url that is the parent of this View.
|
List<BreadcrumbItem> |
getResolvedBreadcrumbItems()
The resolved/generated breadcrumbItems determined by traversing the parentLocation chain.
|
BreadcrumbItem |
getViewBreadcrumbItem()
The viewBreadcrumbItem to use for the parent location view breadcrumb.
|
void |
setPageBreadcrumbItem(BreadcrumbItem pageBreadcrumbItem)
Set the pageBreadcrumbItem
|
void |
setParentPageLabel(String parentPageLabel)
Set the parentPageLabel
|
void |
setParentPageUrl(UrlInfo parentPageUrl)
Set the parentPageUrl
|
void |
setParentViewLabel(String parentViewLabel)
Set the parentViewLabel
|
void |
setParentViewUrl(UrlInfo parentViewUrl)
Set the parentViewUrl
|
void |
setViewBreadcrumbItem(BreadcrumbItem breadcrumbItem)
Set the viewBreadcrumbItem
|
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode
protected List<BreadcrumbItem> resolvedBreadcrumbItems
public ParentLocation()
public List<BreadcrumbItem> constructParentLocationBreadcrumbItems(View view, Object currentModel, Map<String,Object> currentContext)
view
- the current view being processedcurrentModel
- the currentModelcurrentContext
- the currentContextpublic UrlInfo getParentViewUrl()
This url can explicitly set an href or can set a controller and viewId. Parent view traversal is only performed if the controller and viewId properties are set and NOT the explicit href (this affects if breadcrumbs are generated in a recursive chain).
public void setParentViewUrl(UrlInfo parentViewUrl)
parentViewUrl
- public UrlInfo getParentPageUrl()
This url can explicitly set an href or can set a pageId. The parentViewUrl MUST be set before this option can be set. If the needed behavior is such that the parent view breadcrumbItem should not be shown and only this item should be shown, set 'parentLocation.viewBreadcrumbItem.render' to false.
public void setParentPageUrl(UrlInfo parentPageUrl)
parentPageUrl
- public String getParentViewLabel()
If not set, the the label is determined by looking at the parent View's breadcrumbItem and then its headerText. If the parent view's retrieved value contain expressions, those expressions must be able to be evaluated in the current context (ie, the properties they reference must also exist on the current form at the same location) or an exception will be thrown.
public void setParentViewLabel(String parentViewLabel)
parentViewLabel
- public String getParentPageLabel()
If not set, the the label is determined by looking at the parent PageGroup's breadcrumbItem and then its headerText. This retrieval can only happen if the parentViewUrl is set. If the parent PageGroup's retrieved value contain expressions, those expressions must be able to be evaluated in the current context (ie, the properties they reference must also exist on the current form at the same location) or an exception will be thrown.
public void setParentPageLabel(String parentPageLabel)
parentPageLabel
- public BreadcrumbItem getViewBreadcrumbItem()
public void setViewBreadcrumbItem(BreadcrumbItem breadcrumbItem)
breadcrumbItem
- public BreadcrumbItem getPageBreadcrumbItem()
public void setPageBreadcrumbItem(BreadcrumbItem pageBreadcrumbItem)
pageBreadcrumbItem
- public List<BreadcrumbItem> getResolvedBreadcrumbItems()
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.