|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.web.form.HistoryFlow
public class HistoryFlow
HistoryFlow represents the a flow of urls. When the flow is continued, the flow inherits the urls/breadcrumbs from a previous flow. Using a flow key it is possible to jump back to previous flows.
Field Summary | |
---|---|
protected BreadcrumbItem |
currentViewItem
|
protected String |
flowKey
|
protected String |
flowReturnPoint
|
protected String |
flowStartPoint
|
protected Stack<UrlInfo> |
flowUrls
|
protected List<BreadcrumbItem> |
pastItems
|
Constructor Summary | |
---|---|
HistoryFlow(String flowKey)
Initialize a new HistoryFlow with a key |
Method Summary | |
---|---|
void |
clear()
Clear all urls on the history stack and accumulated breadcrumbs |
void |
continueFlow(HistoryFlow prevFlow)
Continue a new flow from a previous flow. |
String |
getCurrentLocation()
Get the last url on the history stack |
BreadcrumbItem |
getCurrentViewItem()
Get the item which represents the most current BreadcrumbItem for the View for this flow |
String |
getFlowKey()
The flowKey used to identify the HistoryFlow |
String |
getFlowReturnPoint()
The returnPoint used to jump back to a previous flow |
String |
getFlowStartPoint()
|
Stack<UrlInfo> |
getFlowUrls()
Get all urls in the HistoryFlow stack |
List<BreadcrumbItem> |
getPastItems()
Get all the past BreadcrumbItems (these represents the path to the current item) |
void |
push(String url)
Push the url onto the history stack |
void |
push(UrlInfo urlInfo)
Push the url onto the history stack |
void |
setCurrentViewItem(BreadcrumbItem currentViewItem)
Set the current BreadcrumbItem |
void |
setFlowKey(String flowKey)
Set the flowKey for this HistoryFlow |
void |
setFlowReturnPoint(String flowReturnPoint)
Set the returnPoint for use to jump back to the previous flow |
void |
setFlowStartPoint(String flowStartPoint)
|
void |
setFlowUrls(Stack<UrlInfo> flowUrls)
Set the flowUrls for this HistoryFlow |
void |
setPastItems(List<BreadcrumbItem> pastItems)
Set the past BreadcrumbItems |
void |
update(String url)
Update the last url on the history stack with the new value |
void |
update(UrlInfo urlInfo)
Update the last url on the history stack with the new value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String flowKey
protected String flowReturnPoint
protected String flowStartPoint
protected Stack<UrlInfo> flowUrls
protected BreadcrumbItem currentViewItem
protected List<BreadcrumbItem> pastItems
Constructor Detail |
---|
public HistoryFlow(String flowKey)
flowKey
- the flowKey to useMethod Detail |
---|
public Stack<UrlInfo> getFlowUrls()
public void setFlowUrls(Stack<UrlInfo> flowUrls)
flowUrls
- public String getFlowReturnPoint()
public void setFlowReturnPoint(String flowReturnPoint)
flowReturnPoint
- public String getFlowStartPoint()
public void setFlowStartPoint(String flowStartPoint)
public String getFlowKey()
public void setFlowKey(String flowKey)
flowKey
- public void push(String url)
url
- the url to pushpublic void push(UrlInfo urlInfo)
urlInfo
- the urlInfo object to pushpublic void update(String url)
url
- the url to update topublic void update(UrlInfo urlInfo)
urlInfo
- the UrlInfo object to update topublic String getCurrentLocation()
public void clear()
public void continueFlow(HistoryFlow prevFlow)
prevFlow
- public BreadcrumbItem getCurrentViewItem()
public void setCurrentViewItem(BreadcrumbItem currentViewItem)
currentViewItem
- public List<BreadcrumbItem> getPastItems()
public void setPastItems(List<BreadcrumbItem> pastItems)
pastItems
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |