java.lang.Object | ||
↳ | com.microstrategy.utils.config.AbstractConfigurationElement | |
↳ | com.microstrategy.web.app.Widget |
This class represents a widget node of the widgets.xml
A Widget is a way to display the report/document data. Its name must match a style name from the style catalog.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ATT_DEFAULT_DHTML_STYLE | xml attribute name indicates the default dhtml style a widget uses (if it uses any). | |||||||||
String | ATT_FLASH_STYLE_ID | xml attribute name for the flash style id | |||||||||
String | ATT_ID | xml attribute name for widget ID | |||||||||
String | ATT_IS_APP | xml attribute name indicates whether it is an application widget or component widget. | |||||||||
String | ATT_IS_IVE | xml attribute name indicates whether it is available for IVE. | |||||||||
String | ATT_JAVA_CLASS | xml attribute name for widget Java class name | |||||||||
String | ATT_MAX_SECONDARY_PROVIDERS | xml attribute name indicates the maximum number of secondary data providers a widget uses. | |||||||||
String | ATT_MIN_SECONDARY_PROVIDERS | xml attribute name indicates the minimum number of secondary data providers a widget uses. | |||||||||
String | ATT_PREVIEW_IMAGE | xml attribute name for widget preview image | |||||||||
String | ATT_RSL_PATH | xml attribute name for widget RSL path | |||||||||
String | ATT_SCOPE | xml attribute name for widget scope | |||||||||
String | ATT_TB_CLASS | xml attribute name for widget toolbar CSS class | |||||||||
String | ATT_TB_IMAGE | xml attribute name for widget toolbar image | |||||||||
String | ATT_TITLE | xml attribute name for widget title | |||||||||
String | ATT_TITLE_DESC_ID | xml attribute name for widget title description ID | |||||||||
String | ATT_TITLE_ID | xml attribute name for widget title ID | |||||||||
String | NODE_WIDGET | Tag name | |||||||||
int | SCOPE_RW_CONTROL | ||||||||||
int | SCOPE_RW_GRID |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Widget() | |||||||||||
Widget(Node root)
Creates a Widget with the information in the Xml Node.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int |
getDefaultDHTMLStyel()
Returns the widget default DHTML style.
| ||||||||||
String |
getFlashStyleId()
Get the widget flash style ID
| ||||||||||
String |
getId()
Get the widget ID
| ||||||||||
boolean | getIsIVE() | ||||||||||
String |
getJavaClass()
Get the widget Java class
| ||||||||||
int |
getMaxSecondaryProviders()
Returns the widget maximum number of secondary providers allowed.
| ||||||||||
int |
getMinSecondaryProviders()
Returns the widget minimum number of secondary providers allowed.
| ||||||||||
String |
getPreviewImage()
Returns the widget preview image path
| ||||||||||
String |
getRslPath()
Returns the widget RSL path
| ||||||||||
int |
getScope()
Returns a unit type supported by the widget
| ||||||||||
String |
getTitle()
Get the widget title
| ||||||||||
String |
getTitleDescId()
Returns the widgets titleDESCId
| ||||||||||
String |
getTitleId()
Get the widget title ID
| ||||||||||
String |
getToolbarClass()
Returns the widget toolbar class
| ||||||||||
String |
getToolbarImage()
Get the widget toolbar image path
| ||||||||||
boolean | isApp() | ||||||||||
void |
setDefaultDHTMLStyle(int value)
Sets the default DHTML style the widget uses
| ||||||||||
void |
setFlashStyleId(String value)
Set the widget flash style ID
| ||||||||||
void |
setId(String value)
Set the widget ID
| ||||||||||
void | setIsApp(boolean value) | ||||||||||
void | setIsIVE(boolean value) | ||||||||||
void |
setJavaClass(String value)
Set the widget Java class
| ||||||||||
void |
setMaxSecondaryProviders(int value)
Sets the widget minimum number of secondary providers allowed.
| ||||||||||
void |
setMinSecondaryProviders(int value)
Sets the widget minimum number of secondary providers allowed.
| ||||||||||
void |
setPreviewImage(String value)
Sets the widget preview image path
| ||||||||||
void |
setRslPath(String value)
Sets the widget RSL path
| ||||||||||
void |
setScope(int value)
Sets a unit type supported by the widget
| ||||||||||
void |
setTitle(String value)
Set the widget title
| ||||||||||
void |
setTitleDescId(String value)
Sets the Desktop title description id
| ||||||||||
void |
setTitleId(String value)
Set the widget title ID
| ||||||||||
void |
setToolbarClass(String value)
Sets the widget toolbar CSS class
| ||||||||||
void |
setToolbarImage(String value)
Sets the widget toolbar image path
|
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 indicates the default dhtml style a widget uses (if it uses any).
xml attribute name for the flash style id
xml attribute name for widget ID
xml attribute name indicates whether it is an application widget or component widget.
xml attribute name indicates whether it is available for IVE.
xml attribute name for widget Java class name
xml attribute name indicates the maximum number of secondary data providers a widget uses. Default value of this attribute is 0.
xml attribute name indicates the minimum number of secondary data providers a widget uses. Default value of this attribute is 0.
xml attribute name for widget preview image
xml attribute name for widget RSL path
xml attribute name for widget scope
xml attribute name for widget toolbar CSS class
xml attribute name for widget toolbar image
xml attribute name for widget title
xml attribute name for widget title description ID
xml attribute name for widget title ID
Tag name
Creates a Widget with the information in the Xml Node. Internally
it calls initFromXML(Node)
.
root | the xml node. |
---|
Returns the widget default DHTML style.
Get the widget flash style ID
Get the widget ID
Get the widget Java class
Returns the widget maximum number of secondary providers allowed.
Returns the widget minimum number of secondary providers allowed.
Returns the widget preview image path
Returns the widget RSL path
Returns a unit type supported by the widget
Get the widget title
Returns the widgets titleDESCId
Get the widget title ID
Returns the widget toolbar class
Get the widget toolbar image path
Sets the default DHTML style the widget uses
value | the default DHTML style |
---|
Set the widget flash style ID
value | the widget flash style ID value. |
---|
Set the widget ID
value | widget id value. |
---|
Set the widget Java class
value | widget Java class value. |
---|
Sets the widget minimum number of secondary providers allowed.
value | the widget minimum number of secondary providers allowed. |
---|
Sets the widget minimum number of secondary providers allowed.
value | the widget minimum number of secondary providers allowed. |
---|
Sets the widget preview image path
value | the widget preview image path. |
---|
Sets the widget RSL path
value | the widget RSL path. |
---|
Sets a unit type supported by the widget
value | unit type value |
---|
Set the widget title
value | the widget title value. |
---|
Sets the Desktop title description id
value | value of the titleDESCId |
---|
Set the widget title ID
value | the widget title ID value. |
---|
Sets the widget toolbar CSS class
value | the widget toolbar CSS class. |
---|
Sets the widget toolbar image path
value | the widget toolbar image path |
---|
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.