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, views
i18n, 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, getViews
copyCommonAttributes, equals, getDepth, getI18n, getIcon, getParent, getPath, hashCode, isEnabled, isHidden, isParent, setEnabled, setHidden, setI18n, setIcon, setParent, setPath, setViewSuffix
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
public NavigationModel()
public NavigationModel(String id)
id
- the ID of the NavigationModelpublic String getId()
NavigationNode
getId
in interface NavigationNode
getId
in class AbstractNavigationNode
public String getPathPrefix()
getPathPrefix
in interface NavigationNode
getPathPrefix
in class AbstractNavigationNode
public void setPathPrefix(String pathPrefix)
public String getPathSeparator()
getPathSeparator
in interface NavigationNode
getPathSeparator
in class AbstractNavigationNode
public void setPathSeparator(String pathSeparator)
public String getIconPrefix()
getIconPrefix
in interface NavigationNode
getIconPrefix
in class AbstractNavigationNode
public void setIconPrefix(String iconPrefix)
public String getIconSeparator()
getIconSeparator
in interface NavigationNode
getIconSeparator
in class AbstractNavigationNode
public void setIconSeparator(String iconSeparator)
public String getIconSuffix()
getIconSuffix
in interface NavigationNode
getIconSuffix
in class AbstractNavigationNode
public void setIconSuffix(String iconSuffix)
public String getI18nPrefix()
getI18nPrefix
in interface NavigationNode
getI18nPrefix
in class AbstractNavigationNode
public void setI18nPrefix(String i18nPrefix)
public String getI18nSeparator()
getI18nSeparator
in interface NavigationNode
getI18nSeparator
in class AbstractNavigationNode
public void setI18nSeparator(String i18nSeparator)
public String getI18nSuffix()
getI18nSuffix
in interface NavigationNode
getI18nSuffix
in class AbstractNavigationNode
public void setI18nSuffix(String i18nSuffix)
public String getViewSuffix()
getViewSuffix
in interface NavigationNode
getViewSuffix
in class AbstractNavigationNode
public 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-2020 Eclipse Foundation. All Rights Reserved.