ia.ReportConfig Class
Used to load and parse a config.xml file.
Constructor
ia.ReportConfig
-
source
Parameters:
-
source
StringThe url for the config.xml file.
Item Index
Methods
Properties
Methods
getButton
-
id
Returns the button that corresponds to the id.
Parameters:
-
id
StringThe id.
Returns:
getButtons
()
ia.ButtonConfig[]
Returns the buttons.
Returns:
getComponent
-
id
Returns the widget that corresponds to the id.
Parameters:
-
id
StringThe id.
Returns:
getComponent
-
id
Returns the component that corresponds to the id.
Parameters:
-
id
StringThe id.
Returns:
getComponents
()
ia.ComponentConfig[]
Returns the components.
Returns:
getImage
-
id
Returns the image that corresponds to the id.
Parameters:
-
id
StringThe id.
Returns:
getMapPalette
()
ia.PaletteConfig
Returns the palette.
Returns:
getProperties
()
Associative Array
Returns the widgets properties.
Returns:
getProperty
-
id
Gets the value for the property with the given id.
Parameters:
-
id
StringThe property id.
Returns:
getText
-
id
Returns the text that corresponds to the id.
Parameters:
-
id
StringThe id.
Returns:
getWidgets
()
ia.ComponentConfig | ia.TableConfig | ia.ButtonConfig | ia.TextConfig | ia.ImageConfig[]
Returns all widgets in the config ie a concatenation of all components, tables, buttons, text and images.
Returns:
loadSource
-
url
-
callbackFunction
Loads in a source file containing the configuration xml.
Parameters:
-
url
StringThe url to the data.
-
callbackFunction
FunctionThe call back function.
parseXML
-
xml
-
callbackFunction
Parses in an XML object containing the configuration xml.
Parameters:
-
xml
XMLThe xml data.
-
callbackFunction
FunctionThe call back function.
setProperty
-
id
-
value
-
castValue
Sets the value for the property with the given id.
Parameters:
-
id
StringThe property id.
-
value
Number | StringThe property value.
-
castValue
BooleanIndicates the value is a string and needs to be cast to the correct data type.
Properties
properties
Associative Array
The widgets properties, properties[propertyId] = property.
xml
XML
The raw xml data describing the object.