java.lang.Object | ||
↳ | com.microstrategy.utils.config.AbstractConfigurationElement | |
↳ | com.microstrategy.web.app.TemplateInfo |
This class holds the information required by a Page Template to render. This is information is only required by the jsps and not at runtime.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TemplateInfo(Node root)
Creates a TemplateInfo with the information in the xml node.
| |||||||||||
TemplateInfo(Node root, TemplateInfo defaultTemplate)
Creates a TemplateInfo with the information in the xml node.
| |||||||||||
TemplateInfo()
Empty constructor of a TemplateInfo initialize private fields with default values.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
addSection(String sectionName, String fileName)
Adds a page section file name.
| ||||||||||
void |
addShortcutList(String name, ShortcutList shortcutList)
Adds a ShortcutList
| ||||||||||
void |
deleteSection(String sectionName)
Deletes a page section file name
| ||||||||||
void |
deleteShortcutList(String name)
Deletes a ShortcutList
| ||||||||||
boolean | getAllowCancel() | ||||||||||
TemplateInfo |
getDefaultTemplate()
Returns the default template of the application
| ||||||||||
String | getErrorDesc() | ||||||||||
String | getErrorTitleId() | ||||||||||
String | getFileName() | ||||||||||
boolean | getIframe() | ||||||||||
Object |
getKey()
Default implementation for
getKey() . | ||||||||||
String | getPageName() | ||||||||||
String |
getSection(String sectionName)
Returns the file name of the section associated with the
given section name.
| ||||||||||
SectionInfoList |
getSectionInfoList()
Returns the available sections for this template.
| ||||||||||
ShortcutList |
getShortcutList(String name)
Returns the ShorcutList associated with the given name.
| ||||||||||
ShortcutListSet |
getShortcutListSet()
Returns the set of ShortcutLists for this template.
| ||||||||||
boolean | getShowWait() | ||||||||||
int |
getStatus()
Return the status of this Template.
| ||||||||||
WebGuiComponentList |
getWebGuiComponentList()
Returns the available Web Components for this template.
| ||||||||||
String | getXmlMergeId() | ||||||||||
void | setAllowCancel(boolean newValue) | ||||||||||
void |
setErrorDesc(String errorDesc)
Sets the descriptor Desc of the title of the error section if an error happens on this page.
| ||||||||||
void |
setErrorTitleId(String errorTitleId)
Sets the descriptor Id of the title of the error section if an error happens on this page.
| ||||||||||
void |
setFileName(String fileName)
Sets the fileName of this template
| ||||||||||
void |
setIframe(boolean newValue)
Sets if the template uses the iframe functionality
| ||||||||||
void | setShowWait(boolean newValue) | ||||||||||
void |
setStatus(int status)
Sets that status of this Template.
| ||||||||||
void | setWebGuiComponentList(WebGuiComponentList webGuiComponentList) | ||||||||||
void |
setXmlMergeId(String xmlMergeId)
Sets the xmlMergeId of this template
|
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. | ||||||||||
void |
initDefaultAttributes()
This method can be overridden to set default values for attributes.
| ||||||||||
void |
initPrototype(String protoName)
Extends initPrototype to provide support for a default template.
| ||||||||||
boolean |
isKeyAttribute(String name)
Returns
true is the name is that of the key attribute. | ||||||||||
void |
setKey(Element element)
Default implementation for
setKey() . | ||||||||||
void |
setPrototype(AbstractConfigurationElement prototype)
Sets the prototype object for this instance.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates a TemplateInfo with the information in the xml node.
root | An XML Node with the information for this TemplateInfo. |
---|
Creates a TemplateInfo with the information in the xml node.
root | An XML Node with the information for this TemplateInfo. |
---|---|
defaultTemplate | a TemplateInfo used as default. |
Empty constructor of a TemplateInfo initialize private fields with default values.
Adds a page section file name.
sectionName | the section's name. |
---|---|
fileName | file name associated with the given section. |
Adds a ShortcutList
name | the ShorcutList's name. |
---|---|
shortcutList | the ShortcutList. |
Deletes a page section file name
sectionName | the section's name. |
---|
Deletes a ShortcutList
name | the ShorcutList's name. |
---|
Returns the default template of the application
Default implementation for getKey()
. It assumes a single attribute
can be used to uniquely identify this element among its siblings; the attribute to use
is specified by the getKeyAttribute()
method.
getKeyAttribute()
is empty returns null
, otherwise it returns the value of the given attribute.
Returns the file name of the section associated with the given section name.
sectionName | the section's name. |
---|
Returns the available sections for this template.
Returns the ShorcutList associated with the given name.
name | the ShorcutList's name. |
---|
Returns the set of ShortcutLists for this template.
Return the status of this Template. The status indicates to use this template only if the page is in the same status. An status of 0 indicates to use this template with any status.
Returns the available Web Components for this template.
newValue | boolean value indicating if the cancel button on the wait box should be displayed or not |
---|
Sets the descriptor Desc of the title of the error section if an error happens on this page.
errorDesc | the new descriptor Desc. |
---|
Sets the descriptor Id of the title of the error section if an error happens on this page.
errorTitleId | the new descriptor Id. |
---|
Sets the fileName of this template
fileName | the new file to use. |
---|
Sets if the template uses the iframe functionality
newValue | iframe usage. |
---|
newValue | boolean value indicating if the wait should be displayed or not |
---|
Sets that status of this Template. If a Template has an associated status, it should only be used when the pageComponent is in this status.
status | value indicating the current status |
---|
Sets the xmlMergeId of this template
xmlMergeId | the new file to use. |
---|
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.
This method can be overridden to set default values for attributes. Simply
extend this method and call setAttribute(String, Object)
Extends initPrototype to provide support for a default template. When a new TemplateInfo
is created, if it doesn't have a prototype yet, it should will use the default template
from the default list as prototype.
This functionality has been added to provide backwards compatibility, but this behavior is intended to
be removed in the future. The correct behavior is that each
template should have its definition complete, and not rely on the definition
of the default template. Make sure the definition in the pageConfig reflects this.
protoName | Prototype name, typically the name of a sibling node in the xml. |
---|
Returns true
is the name is that of the key attribute.
Default implementation for setKey()
. It assumes a single attribute
can be used to uniquely identify this element among its siblings and adds this attribute
to the given element; the attribute to use
is specified by the getKeyAttribute()
method.
Sets the prototype object for this instance. The attributes and elements of the prototype are copied into this instance.