|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.webapp.navigation.NavigationNodeBase
info.aduna.webapp.navigation.Group
info.aduna.webapp.navigation.NavigationModel
public class NavigationModel
NavigationModel represents the navigation structure of a web application. A model consists of groups and views.
| Field Summary | |
|---|---|
static String |
DEFAULT_I18N_PREFIX
|
static String |
DEFAULT_I18N_SEPARATOR
|
static String |
DEFAULT_I18N_SUFFIX
|
static String |
DEFAULT_ICON_PREFIX
|
static String |
DEFAULT_ICON_SEPARATOR
|
static String |
DEFAULT_ICON_SUFFIX
|
static String |
DEFAULT_PATH_PREFIX
|
static String |
DEFAULT_PATH_SEPARATOR
|
static String |
DEFAULT_VIEW_SUFFIX
|
static String |
NAVIGATION_MODEL_KEY
|
| Fields inherited from class info.aduna.webapp.navigation.Group |
|---|
groups, viewNames, views |
| Fields inherited from class info.aduna.webapp.navigation.NavigationNodeBase |
|---|
i18n, icon, path, viewSuffix |
| Constructor Summary | |
|---|---|
NavigationModel()
Construct a new, anonymous, empty NavigationModel |
|
NavigationModel(String id)
Construct a new emtpy NavigationModel with the specified ID. |
|
| Method Summary | |
|---|---|
void |
addModel(NavigationModel other)
Add another NavigationModel to this one. |
Object |
clone()
|
View |
findView(String viewName)
Find the view with the specified name in the NavigationModel. |
String |
getI18nPrefix()
|
String |
getI18nSeparator()
|
String |
getI18nSuffix()
|
String |
getIconPrefix()
|
String |
getIconSeparator()
|
String |
getIconSuffix()
|
String |
getId()
Get the ID of the node. |
String |
getPathPrefix()
|
String |
getPathSeparator()
|
String |
getViewSuffix()
|
void |
setI18nPrefix(String i18nPrefix)
|
void |
setI18nSeparator(String i18nSeparator)
|
void |
setI18nSuffix(String i18nSuffix)
|
void |
setIconPrefix(String iconPrefix)
|
void |
setIconSeparator(String iconSeparator)
|
void |
setIconSuffix(String iconSuffix)
|
void |
setNavigationModels(List<String> navigationModelLocations)
Set the locations of the navigation model resources to be used in the construction of this model. |
void |
setPathPrefix(String pathPrefix)
|
void |
setPathSeparator(String pathSeparator)
|
| Methods inherited from class info.aduna.webapp.navigation.Group |
|---|
addGroup, addView, copyGroupsAndViews, findViewInternal, getGroup, getGroups, getView, getViewByName, getViews |
| Methods inherited from class info.aduna.webapp.navigation.NavigationNodeBase |
|---|
copyCommonAttributes, equals, getDepth, getI18n, getIcon, getParent, getPath, hashCode, isEnabled, isHidden, isParent, setEnabled, setHidden, setI18n, setIcon, setParent, setPath, setViewSuffix |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NAVIGATION_MODEL_KEY
public static final String DEFAULT_PATH_PREFIX
public static final String DEFAULT_PATH_SEPARATOR
public static final String DEFAULT_VIEW_SUFFIX
public static final String DEFAULT_ICON_PREFIX
public static final String DEFAULT_ICON_SEPARATOR
public static final String DEFAULT_ICON_SUFFIX
public static final String DEFAULT_I18N_PREFIX
public static final String DEFAULT_I18N_SEPARATOR
public static final String DEFAULT_I18N_SUFFIX
| Constructor Detail |
|---|
public NavigationModel()
public NavigationModel(String id)
id - the ID of the NavigationModel| Method Detail |
|---|
public String getId()
NavigationNode
getId in interface NavigationNodegetId in class NavigationNodeBasepublic String getPathPrefix()
getPathPrefix in interface NavigationNodegetPathPrefix in class NavigationNodeBasepublic void setPathPrefix(String pathPrefix)
public String getPathSeparator()
getPathSeparator in interface NavigationNodegetPathSeparator in class NavigationNodeBasepublic void setPathSeparator(String pathSeparator)
public String getIconPrefix()
getIconPrefix in interface NavigationNodegetIconPrefix in class NavigationNodeBasepublic void setIconPrefix(String iconPrefix)
public String getIconSeparator()
getIconSeparator in interface NavigationNodegetIconSeparator in class NavigationNodeBasepublic void setIconSeparator(String iconSeparator)
public String getIconSuffix()
getIconSuffix in interface NavigationNodegetIconSuffix in class NavigationNodeBasepublic void setIconSuffix(String iconSuffix)
public String getI18nPrefix()
getI18nPrefix in interface NavigationNodegetI18nPrefix in class NavigationNodeBasepublic void setI18nPrefix(String i18nPrefix)
public String getI18nSeparator()
getI18nSeparator in interface NavigationNodegetI18nSeparator in class NavigationNodeBasepublic void setI18nSeparator(String i18nSeparator)
public String getI18nSuffix()
getI18nSuffix in interface NavigationNodegetI18nSuffix in class NavigationNodeBasepublic void setI18nSuffix(String i18nSuffix)
public String getViewSuffix()
getViewSuffix in interface NavigationNodegetViewSuffix in class NavigationNodeBasepublic View findView(String viewName)
viewName - the name of the view, specified as a /-separated hierarchy of
groups, where the part after the last / is interpreted as the name
of the view itself.
public void addModel(NavigationModel other)
other - the model to add to this one.public void setNavigationModels(List<String> navigationModelLocations)
navigationModelLocations - a list of resource namespublic Object clone()
clone in class Group
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||