Utility class to parse an application definition
Fusion. | Utility class to parse an application definition |
Properties | |
mapGroups | array of map groups, parsed from ApplicationDefinition. |
widgetSets | array of widget sets (each one corresponding to a map) parsed from the ApplicationDefinition. |
{Object} oBroker | A Broker object that can communicate with a MapGuide instance in the case we are running against a MapGuide server |
{Array} searchDefinitions | An array of search definitions |
{Array} searchCategories | An array of search categories |
Functions | |
ApplicationDefinition | construct a new instance of the ApplicationDefinition object. |
parse | start parsing the ApplicationDefinition file. |
parseAppDef | parse the ApplicationDefinition file into the appropriate Fusion objects |
create | Create the application definition. |
getMapByName | return a map widget with the given name |
getMapById | return a map widget with the given id |
getMapByIndice | return the map widget at the given index |
getMapGroup | return the specified map group from the application definition |
Fusion. | Holds an internal representation of MapGroup objects as defined in the AppDef |
Fusion. | Holds an internal representation of Map objects as defined in the AppDef |
Fusion. | Holds an internal representation of WidgetSet objects as defined in the AppDef |
Functions | |
addWidgetInstance | keep track of live widgets created in this widgetSet |
getMapWidget | return the map widget for this widget set |
create | create all the things required by this widgetSet, including containers and widgets. |
getMapByName | return the map widget from this widget set if the map’s name matches the requested name, or null. |
Fusion. | Holds an internal representation of Container objects as defined in the AppDef |
Fusion. | Holds an internal representation of Widget objects as defined in the AppDef |
Functions | |
create | creates a new instance of the widget, optionally using a different name during instantiation to accomodate containers |
Fusion. | Holds an internal representation of Menu Item objects as defined in the AppDef |
Fusion. | Holds an internal representation of Flyout objects as defined in the AppDef |
Fusion. | Holds an internal representation of Multi objects as defined in the AppDef |
Fusion. | Holds an internal representation of SearchDefinition objects as defined in the AppDef |
Fusion. | Holds an internal representation of SearchJoin objects as defined in the AppDef |
Fusion. | Holds an internal representation of SearchRule objects as defined in the AppDef |
Fusion. | Holds an internal representation of SearchCondition objects as defined in the AppDef |
parse : function()
start parsing the ApplicationDefinition file. This happens asynchronously since the ApplicationDefinition has to be retrieved from the server or the MapGuide repository. When parsing is complete, an APPLICATIONDEFINITION_PARSED event will be emitted. This function returns true if parsing will start, false if it will not (due to a missing application definition for instance).
Holds an internal representation of WidgetSet objects as defined in the AppDef
Functions | |
addWidgetInstance | keep track of live widgets created in this widgetSet |
getMapWidget | return the map widget for this widget set |
create | create all the things required by this widgetSet, including containers and widgets. |
getMapByName | return the map widget from this widget set if the map’s name matches the requested name, or null. |
addWidgetInstance: function( widget )
keep track of live widgets created in this widgetSet
Parameter: {Fusion.Widget} widget
the widget to add
create: function( appDef )
create all the things required by this widgetSet, including containers and widgets.
Parameter: {Fusion.Lib.ApplicationDefinition}
the application definition that this widgetSet is part of
create: function( widgetSet, widgetName )
creates a new instance of the widget, optionally using a different name during instantiation to accomodate containers
Parameter: name
An optional name to use for the widget, overrides the original name temporarily if passed.
Returns: an instance of the widget represented by this object.
start parsing the ApplicationDefinition file.
parse : function()
parse the ApplicationDefinition file into the appropriate Fusion objects
parseAppDef: function( json )
Create the application definition.
create: function()
return a map widget with the given name
getMapByName : function( name )
return a map widget with the given id
getMapById : function( id )
return the map widget at the given index
getMapByIndice : function( indice )
return the specified map group from the application definition
getMapGroup : function( mapGroupId )
keep track of live widgets created in this widgetSet
addWidgetInstance: function( widget )
return the map widget for this widget set
getMapWidget: function()
create all the things required by this widgetSet, including containers and widgets.
create: function( appDef )
return the map widget from this widget set if the map’s name matches the requested name, or null.
getMapByName : function( name )
creates a new instance of the widget, optionally using a different name during instantiation to accomodate containers
create: function( widgetSet, widgetName )