|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.uif.view.History
public class History
History class used to keep track of views visited so they can be displayed in the ui as breadcrumbs - both as homeward path and history path interpretations
Field Summary | |
---|---|
static String |
ENTRY_TOKEN
|
static String |
VAR_TOKEN
|
Constructor Summary | |
---|---|
History()
|
Method Summary | |
---|---|
void |
buildCurrentEntryFromRequest(UifFormBase form,
javax.servlet.http.HttpServletRequest request)
Sets the current HistoryEntry using information from the form and the request. |
void |
buildHistoryFromParameterString(String parameterString)
Takes in the encoded history query parameter string passed on the url and parses it to create the list of historyEntries. |
protected String |
buildViewTitle(UifFormBase form)
Builds the title for the view to display in history (for example breadcrumbs) |
HistoryEntry |
getCurrent()
Gets the current view's HistoryEntry. |
List<HistoryEntry> |
getGeneratedBreadcrumbs()
Generates a list of HistoryEntries that can be used as breadcrumbs by the breadcrumb widget. |
HistoryEntry |
getGeneratedCurrentBreadcrumb()
Gets the current HistoryEntry in the breadcrumb format described in getGeneratedBreadcrumbs |
List<HistoryEntry> |
getHistoryEntries()
Gets a list of the current HistoryEntries not including the current entry. |
String |
getHistoryParameterString()
Gets the encoded and tokenized history parameter string that is representative of the HistoryEntries currently in History and includes the current view's HistoryEntry. |
List<HistoryEntry> |
getHomewardPath()
Gets the predetermined homeward path for this view's history. |
boolean |
isAppendHomewardPath()
|
boolean |
isAppendPassedHistory()
|
void |
pushToHistory(String viewId,
String pageId,
String title,
String url,
String formKey)
Pushes the information passed in to history. |
void |
setAppendHomewardPath(boolean appendHomewardPath)
When this is set to true, the homeward path will be appended. |
void |
setAppendPassedHistory(boolean appendPassedHistory)
Appends the passed history as each different view is shown. |
void |
setCurrent(HistoryEntry current)
|
void |
setHistoryEntries(List<HistoryEntry> history)
|
void |
setHomewardPath(List<HistoryEntry> homewardPath)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ENTRY_TOKEN
public static final String VAR_TOKEN
Constructor Detail |
---|
public History()
Method Detail |
---|
public List<HistoryEntry> getGeneratedBreadcrumbs()
public HistoryEntry getGeneratedCurrentBreadcrumb()
public void pushToHistory(String viewId, String pageId, String title, String url, String formKey)
viewId
- pageId
- title
- url
- formKey
- public void buildCurrentEntryFromRequest(UifFormBase form, javax.servlet.http.HttpServletRequest request)
form
- request
- public void buildHistoryFromParameterString(String parameterString)
parameterString
- public String getHistoryParameterString()
protected String buildViewTitle(UifFormBase form)
Retrieves the viewLabelFieldPropertyName from the view if configured, otherwise attempts to find the title attribute for the default data object. If view label property is found the corresponding property value is retrieved and appended to the title for the view
TODO: Possibly move so it can be used for the actual view title, not just history
form
- - form instance containing the view and view data
public List<HistoryEntry> getHomewardPath()
public void setHomewardPath(List<HistoryEntry> homewardPath)
homewardPath
- the homewardPath to setpublic List<HistoryEntry> getHistoryEntries()
public void setHistoryEntries(List<HistoryEntry> history)
history
- the history to setpublic HistoryEntry getCurrent()
public void setCurrent(HistoryEntry current)
current
- the current to setpublic void setAppendHomewardPath(boolean appendHomewardPath)
appendHomewardPath
- the appendHomewardPath to setpublic boolean isAppendHomewardPath()
public void setAppendPassedHistory(boolean appendPassedHistory)
appendPassedHistory
- the appendPassedHistory to setpublic boolean isAppendPassedHistory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |