public class NavigationModel extends Group
| Modifier and Type | Field and Description |
|---|---|
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 |
groups, viewNames, viewsi18n, icon, path, viewSuffix| Constructor and Description |
|---|
NavigationModel()
Construct a new, anonymous, empty NavigationModel
|
NavigationModel(String id)
Construct a new emtpy NavigationModel with the specified ID.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
addGroup, addView, copyGroupsAndViews, findViewInternal, getGroup, getGroups, getView, getViewByName, getViewscopyCommonAttributes, equals, getDepth, getI18n, getIcon, getParent, getPath, hashCode, isEnabled, isHidden, isParent, setEnabled, setHidden, setI18n, setIcon, setParent, setPath, setViewSuffixpublic 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
public NavigationModel()
public NavigationModel(String id)
id - the ID of the NavigationModelpublic String getId()
NavigationNodegetId in interface NavigationNodegetId in class AbstractNavigationNodepublic String getPathPrefix()
getPathPrefix in interface NavigationNodegetPathPrefix in class AbstractNavigationNodepublic void setPathPrefix(String pathPrefix)
public String getPathSeparator()
getPathSeparator in interface NavigationNodegetPathSeparator in class AbstractNavigationNodepublic void setPathSeparator(String pathSeparator)
public String getIconPrefix()
getIconPrefix in interface NavigationNodegetIconPrefix in class AbstractNavigationNodepublic void setIconPrefix(String iconPrefix)
public String getIconSeparator()
getIconSeparator in interface NavigationNodegetIconSeparator in class AbstractNavigationNodepublic void setIconSeparator(String iconSeparator)
public String getIconSuffix()
getIconSuffix in interface NavigationNodegetIconSuffix in class AbstractNavigationNodepublic void setIconSuffix(String iconSuffix)
public String getI18nPrefix()
getI18nPrefix in interface NavigationNodegetI18nPrefix in class AbstractNavigationNodepublic void setI18nPrefix(String i18nPrefix)
public String getI18nSeparator()
getI18nSeparator in interface NavigationNodegetI18nSeparator in class AbstractNavigationNodepublic void setI18nSeparator(String i18nSeparator)
public String getI18nSuffix()
getI18nSuffix in interface NavigationNodegetI18nSuffix in class AbstractNavigationNodepublic void setI18nSuffix(String i18nSuffix)
public String getViewSuffix()
getViewSuffix in interface NavigationNodegetViewSuffix in class AbstractNavigationNodepublic 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 namesCopyright © 2015-2021 Eclipse Foundation. All Rights Reserved.