|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.logabit.webtools.navigation.NavigationEntryContainer
com.logabit.webtools.navigation.Navigation
public class Navigation
A navigation object contains all navigation entries. Furthermore it holds the state of the currently activated navigation entry and is able to prepare and return additional information like the current bread crumb for example.
| Constructor Summary | |
|---|---|
Navigation()
|
|
| Method Summary | |
|---|---|
NavigationEntry |
createChild(java.lang.String id,
java.lang.String uri,
java.lang.String label,
java.lang.String hint,
boolean isDefault,
boolean isHidden,
boolean isClickable)
A factory method which creates a new navigation entry already containing the current navigation object. |
boolean |
entryExists(java.lang.String id)
|
java.util.Map<java.lang.String,NavigationEntry> |
getAllEntries()
Returns a map that contains all entries of the navigation. |
java.util.List<NavigationEntry> |
getBreadCrumb()
Prepares the bread crumb based on the currently activated entry id. |
java.lang.String |
getCurrentEntryId()
|
Navigation |
getNavigation()
Return the navigation, this container belongs to. |
NavigationEntry |
getParent()
Returns the parent entry of this entry or null if this entry is a first level entry. |
void |
setCurrentEntryId(java.lang.String currentEntryId)
|
| Methods inherited from class com.logabit.webtools.navigation.NavigationEntryContainer |
|---|
addChild, getChildren, getNumberOfChildren, hasChildren |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Navigation()
| Method Detail |
|---|
public void setCurrentEntryId(java.lang.String currentEntryId)
public java.lang.String getCurrentEntryId()
public java.util.List<NavigationEntry> getBreadCrumb()
public java.util.Map<java.lang.String,NavigationEntry> getAllEntries()
public Navigation getNavigation()
NavigationEntryContainer
getNavigation in class NavigationEntryContainer
public NavigationEntry createChild(java.lang.String id,
java.lang.String uri,
java.lang.String label,
java.lang.String hint,
boolean isDefault,
boolean isHidden,
boolean isClickable)
NavigationEntryContainer
createChild in class NavigationEntryContainerid - - The id of the entry to create.
public NavigationEntry getParent()
NavigationEntryContainer
getParent in class NavigationEntryContainerpublic boolean entryExists(java.lang.String id)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||