Package com.microstrategy.web.app
Class Widgets
- java.lang.Object
-
- com.microstrategy.utils.config.AbstractConfigurationElement
-
- com.microstrategy.utils.config.AbstractConfigurationElementList
-
- com.microstrategy.web.app.Widgets
-
- All Implemented Interfaces:
ConfigurationElement,ConfigurationElementList,ConfigurationFile,java.lang.Cloneable
public class Widgets extends AbstractConfigurationElementList
This class represents a visualization list node of the visualizations.xml.
Contains a collection ofVisualization- Since:
- MicroStrategy Web 8.1.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.microstrategy.utils.config.AbstractConfigurationElement
AbstractConfigurationElement.FilteredList
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNODE_WIDGETS-
Fields inherited from class com.microstrategy.utils.config.AbstractConfigurationElementList
ATT_VERSION
-
Fields inherited from class com.microstrategy.utils.config.AbstractConfigurationElement
ATT_CONFIG_SRC, ATT_DELETED, ATT_POSITION, ATT_PROTOTYPE, ATT_USE_DEFAULT
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetNodeName()Returns the node-name for this element.WidgetgetWidget(int i)Returns a widget at given index.WidgetgetWidget(java.lang.String id)Returns a widget with the specified id.java.lang.StringgetWidgetsJson(Messages messages)Returns a String that defines a JSON object used to pass the list of all widgets to the client sidejava.lang.StringgetWidgetsJson(Messages messages, VisualizationList visList)Deprecated.protected voidinitFromFile(java.lang.String filePath, CustomizationInfo c)Initializes this configuration element by loading the contents of the givenfilePathusing the correspondingCustomizationInfo.WidgetnewWidget(java.lang.String id)Create a new widget with given id.-
Methods inherited from class com.microstrategy.utils.config.AbstractConfigurationElementList
clear, clone, get, get, getFilteredList, getKey, getKeyAttribute, getList, getValues, getVersion, init, isEmpty, put, put, registerElementInList, remove, setVersion, size, sort
-
Methods inherited from class com.microstrategy.utils.config.AbstractConfigurationElement
addFileSource, applyCustomization, applyCustomizations, cleanUpDeletedElements, delete, deltas, deltas, equalAtts, equalElements, equalNodeValues, equals, equalsIncludingDeletedElements, exportAttributesToXML, exportElementsToXML, exportNodeValueToXML, getAttribute, getAttributes, getBoolAttribute, getChildKey, getConfigSrc, getDTDFileName, getElement, getElement, getElements, getFileLoader, getIntAttribute, getIntAttribute, getKey, getLineNumber, getList, getNextKey, getNodeValue, getNodeValue, getOrCreateElement, getParent, getPosition, getPrototype, getRegisteredClass, getSelfInitPath, getSource, getStrAttribute, getUseDefault, getXMLParserParameters, getXMLSerializerParameters, hashCode, hashCodeAtts, hashCodeElements, hashCodeNodeValues, hasRegisteredClass, initAttributesFromXML, initDefaultAttributes, initElementFromXML, initElementsFromXML, initFromResource, initFromXML, initFromXML, initNodeValueFromXML, initPrototype, isActive, isCustomized, isDeleted, isDirty, isInSource, isKeyAttribute, load, mergeChanges, newChildInstance, newSource, original, populate, printAttributes, printElements, printNodeValue, refreshLists, registerClass, registerElement, registerElement, registerElementList, reload, reloadPrototype, removeAttribute, removeDefaults, replaceList, restore, save, save, saveChangesAs, saveConfig, saveFlatXML, saveNode, saveSource, setAttribute, setBoolAttribute, setChildOriginals, setConfigSrc, setCustomized, setElement, setFileLoader, setIntAttribute, setKey, setLineNumber, setNodeName, setNodeValue, setPosition, setPrototype, setSelfInitPath, setStrAttribute, setUseDefault, setUseValidation, throwConfigParseException, toString, toXML, toXML, toXML, toXML, useNodeValue, useValidation
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.microstrategy.utils.config.ConfigurationElement
getAttribute, getAttributes, getElement, getElements, getKey, getStrAttribute, initFromXML, reload, toXML
-
-
-
-
Field Detail
-
NODE_WIDGETS
public static final java.lang.String NODE_WIDGETS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Widgets
public Widgets()
-
Widgets
public Widgets(org.w3c.dom.Node root)
Creates a Visualization with the information in the Xml Node. Internally it callsAbstractConfigurationElement.initFromXML(org.w3c.dom.Node).- Parameters:
root- the xml node.
-
-
Method Detail
-
initFromFile
protected void initFromFile(java.lang.String filePath, CustomizationInfo c) throws ConfigExceptionInitializes this configuration element by loading the contents of the givenfilePathusing the correspondingCustomizationInfo.- Overrides:
initFromFilein classAbstractConfigurationElement- Throws:
ConfigException- Since:
- MicroStrategy Web 9.0.1
-
getNodeName
public java.lang.String getNodeName()
Description copied from interface:ConfigurationElementReturns the node-name for this element.- Specified by:
getNodeNamein interfaceConfigurationElement- Overrides:
getNodeNamein classAbstractConfigurationElement
-
newWidget
public Widget newWidget(java.lang.String id)
Create a new widget with given id.- Parameters:
id- A String represents the id of the widget.- Returns:
- a Widget.
- Since:
- MicroStrategy Web 8.1.1
-
getWidget
public Widget getWidget(int i)
Returns a widget at given index.- Parameters:
i- The index of the widget.- Returns:
- a widget if found. Otherwise, returns null.
-
getWidget
public Widget getWidget(java.lang.String id)
Returns a widget with the specified id.- Parameters:
id- the wodget id.- Returns:
- a widget with the specified id
-
getWidgetsJson
public java.lang.String getWidgetsJson(Messages messages, VisualizationList visList)
Deprecated.Returns a String that defines a JSON object used to pass the list of all widgets to the client side- Parameters:
messages- TheMessagesobject- Returns:
- a String that defines a JSON object used to pass the list of all widgets to the client side
- Since:
- MicroStrategy Web 9.0.1
-
getWidgetsJson
public java.lang.String getWidgetsJson(Messages messages)
Returns a String that defines a JSON object used to pass the list of all widgets to the client side- Parameters:
messages- TheMessagesobject- Returns:
- a String that defines a JSON object used to pass the list of all widgets to the client side
- Since:
- MicroStrategy Web 9.0.1
-
-