swfwidget.js revision 6112193fac23ce4238217a69d1d15a7db45eb0a1
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove * SWFWidget is the base class for all JS classes that manage styles
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove * and communicates with a SWF Application.
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove * Creates the SWFWidget instance and contains initialization data
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove * @param {Object} config (optional) Configuration parameters for the Chart.
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove * @class SWFWidget
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove * @constructor
9d22c51f3040a96aae2a15ba6511d2581be5b507Ryan Grove SWFWidget.superclass.constructor.apply(this, arguments);
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan GroveSWFWidget._instances = SWFWidget._instances || {};
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove * Handles an event from the application swf in which a listener has been
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove * registered through an instance of SWFWidget.
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove * @method eventHandler
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove * @param swfid {String} the id of the SWF dispatching the event
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove * @param event {Object} the event being transmitted.
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan GroveSWFWidget.eventHandler = function (swfid, event) {
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove SWFWidget._instances[swfid]._eventHandler(event);
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove * Attribute config
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove * Reference to the application class
a78f013cfc225b57730e82e15135c71d55857355Ryan Grove return this._app;
ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86Ryan Grove * Parent element for the SWFWidget instance.
getter: function()
return this._parent;
value:false
readOnly:true,
getter: function()
return this.AS_CLASS;
value: {},
lazyAdd: false,
if(this.swfReadyFlag)
this._updateStyles();
return val;
id:
getter: function()
return this._id;
_parent: null,
_app: null,
_createId: function()
swfReadyFlag: false,
_getDefaultStyles:function()
_styleObjHash: null,
if(j instanceof SWFWidget)
j = this._id;
return styles;
_mergeStyles: function(a, b)
_updateStyles: function()
if(this._id === key || (styleHash && styleHash.hasOwnProperty(key) && !(styleHash[key] instanceof SWFWidget)))
_events: {},
this._addSWFEventListeners();
_addSWFEventListeners: function()
type;