java.lang.Object | |||
↳ | com.microstrategy.utils.config.AbstractConfigurationElement | ||
↳ | com.microstrategy.utils.config.AbstractConfigurationElementList | ||
↳ | com.microstrategy.web.app.ShortcutList |
The ShortcutList class is a multipurpose class that represents a list of
Shortcut
objects. This objects can be used to display links, menus,
toolbars and pickers.
ShortcutList objects are the in memory representation of the <shortcut-list> elements from the pageConfig.xml file and menus, toolbars and pickers definition files. The properties of this object map directly the attributes of the configuration tag
The following list explains the different types of ShortcutList objects/tag elements used throughout the applicattion:
Menu
GUI Element.
Toolbar
GUI Element.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ATT_BASE_BEAN | xml attribute name for the base bean property of the shortcut list | |||||||||
String | ATT_DESC | xml attribute name for the description of the shortcut list | |||||||||
String | ATT_DESC_ID | xml attribute name for the descriptor ID of the shortcut list | |||||||||
String | ATT_ENABLE_FEATURE_ID | xml attribute name for the enable feature associated with this shortcut list | |||||||||
String | ATT_FEATURE_ID | xml attribute name for the feature associated with this shortcut list | |||||||||
String | ATT_NAME | xml attribute name for the name of the shortcut list | |||||||||
String | ATT_TYPE | xml attribute name for the type associated with this shortcut list | |||||||||
String | NODE_SHORTCUTS | constant for the shorcut list node name | |||||||||
int | TYPE_DEFAULT | ||||||||||
int | TYPE_STYLES |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ShortcutList()
Class constructor.
| |||||||||||
ShortcutList(Node root)
Class constructor.
| |||||||||||
ShortcutList(Document doc)
Class constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
WebAttributeList |
getAttributeList()
Get the attribute list for the instance
| ||||||||||
WebAttributeList | getAttributeList(boolean createElement) | ||||||||||
String |
getBaseBean()
Returns the bean from the pages bean hierarchy associated
with the shortcut list.
| ||||||||||
String |
getDescriptor()
Returns a descriptor that the application should use to display the
shortcut list if the desc-id attribute is missing.
| ||||||||||
String |
getDescriptorID()
Returns the Resource Bundle item id that the application should use
to display the shortcut list in the language of the user's locale.
| ||||||||||
String |
getEnableFeatureId()
Represents a feature that is evaluated to determine whether the
shortcut list object should appear enabled or disabled when
it is rendered.
| ||||||||||
String |
getFeatureID()
Returns the id of a feature that is evaluated to determine
whether the shortcut list object should be displayed.
| ||||||||||
String |
getName()
Returns the name for this shortcut list, a unique identifier of the ShortcutList instance.
| ||||||||||
Shortcut | getShortcut(String name) | ||||||||||
Shortcut | getShortcutByFeatureId(String featureId) | ||||||||||
String |
getString(Messages messages)
Returns the object's localized descriptor.
| ||||||||||
int |
getType()
Returns the ShortcutList's type.
| ||||||||||
void |
setBaseBean(String value)
Indicates the bean from the pages bean hierarchy associated
with the shortcut list.
| ||||||||||
void |
setDescriptor(String descriptor)
Provides a descriptor that the application should use to display the
shortcut list if the desc-id attribute is missing.
| ||||||||||
void |
setDescriptorID(String descriptorID)
Provides the Resource Bundle item id that the application should use
to display the shortcut list in the language of the user's locale.
| ||||||||||
void |
setEnableFeatureId(String value)
Returns the ID of the enable feature associated with the ShortcutList.
| ||||||||||
void |
setFeatureID(String value)
Indicates a feature-id that is evaluated to determine
whether the shortcut list object should be displayed.
| ||||||||||
void |
setName(String name)
Set the name of the ShortcutList instance, a unique identifier of the ShortcutList instance.
| ||||||||||
void |
setType(int type)
Sets the type property value of the instance.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String |
getKeyAttribute()
This method must return the attribute that uniquely identifies this element among its siblings;
if no single attribute can be used, return null and override the
getKey and
setKey methods. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
xml attribute name for the base bean property of the shortcut list
xml attribute name for the description of the shortcut list
xml attribute name for the descriptor ID of the shortcut list
xml attribute name for the enable feature associated with this shortcut list
xml attribute name for the feature associated with this shortcut list
xml attribute name for the name of the shortcut list
xml attribute name for the type associated with this shortcut list
constant for the shorcut list node name
Class constructor. Initializes a new -empty- instance of the EventMapList class.
Class constructor. Initializes a ShortcutList instance based on the information included in the XML Node
root | Node instance representing the shortcut list information. |
---|
Class constructor. Initializes a ShortcutList instance based on the information included in the DOM Document
doc | Document instance representing the shortcut list information. |
---|
Get the attribute list for the instance
Returns the bean from the pages bean hierarchy associated with the shortcut list.
Returns a descriptor that the application should use to display the shortcut list if the desc-id attribute is missing.
Returns the Resource Bundle item id that the application should use to display the shortcut list in the language of the user's locale.
Represents a feature that is evaluated to determine whether the shortcut list object should appear enabled or disabled when it is rendered.
Returns the id of a feature that is evaluated to determine whether the shortcut list object should be displayed.
Returns the name for this shortcut list, a unique identifier of the ShortcutList instance.
name | string representing the name of the shortcut to return |
---|
Shortcut
by its name.featureId | string representing the feature identifier of the shortcut to return |
---|
Shortcut
by its feature Id.Returns the object's localized descriptor.
messages | the messages l10n object. |
---|
String
representing the object's localized descriptor.
Returns the ShortcutList's type. When the ShortcutList is used
to define a drop-down list, this property controls which class
is used to render the ShortcutList:
TYPE_DEFAULT
, then
the ShortcutList is rendered using a
ShortcutListPicker
TYPE_STYLES
then
the ShortcutList is rendered using a
ShortcutListStyles
int
value of the type property.Indicates the bean from the pages bean hierarchy associated
with the shortcut list. If a shortcut object inside the
shortcut list does not define a base bean attribute, the value
of this base-bean attribute is used in tasks such as
resolving features for the shortcut.
(If this attribute is not set, the application tries to use the
base-bean attribute from the
Provides a descriptor that the application should use to display the shortcut list if the desc-id attribute is missing.
Provides the Resource Bundle item id that the application should use to display the shortcut list in the language of the user's locale.
Returns the ID of the enable feature associated with the ShortcutList. If this feature is disabled, then the ShortcutList should be presented but disabled.
Indicates a feature-id that is evaluated to determine whether the shortcut list object should be displayed.
Set the name of the ShortcutList instance, a unique identifier of the ShortcutList instance.
Sets the type property value of the instance. Defines which class is used to render ShortcutList when used as a drop-down definition.
This method must return the attribute that uniquely identifies this element among its siblings;
if no single attribute can be used, return null and override the getKey
and
setKey
methods.