in asdoc/org/apache/royale/core/UIBase.js [477:528]
org.apache.royale.core.UIBase.prototype.addedToParent = function() {
if (this.org_apache_royale_core_UIBase_onceAdded)
return;
this.org_apache_royale_core_UIBase_onceAdded = true;
var /** @type {Object} */ c;
var /** @type {string} */ classNames = this.computeFinalClassNames().trim();
if (classNames)
this.setClassName(classNames);
if (this.style)
org.apache.royale.core.ValuesManager.valuesImpl.applyStyles(this, this.style);
if (isNaN(this._explicitWidth) && isNaN(this._percentWidth)) {
var /** @type {*} */ value = org.apache.royale.core.ValuesManager.valuesImpl.getValue(this, "width");
if (value !== undefined) {
if (org.apache.royale.utils.Language.is(value, String)) {
var /** @type {string} */ s = String(value);
if (s.indexOf("%") > -1)
this._percentWidth = Number(s.substring(0, s.length - 1)); else {
if (s.indexOf("px") !== -1)
s = s.substring(0, s.length - 2);
this._width = this._explicitWidth = Number(s);
}
}
else
this._width = this._explicitWidth = value;
}
}
if (isNaN(this._explicitHeight) && isNaN(this._percentHeight)) {
value = org.apache.royale.core.ValuesManager.valuesImpl.getValue(this, "height");
if (value !== undefined) {
if (org.apache.royale.utils.Language.is(value, String)) {
s = String(value);
if (s.indexOf("%") !== -1)
this._percentHeight = Number(s.substring(0, s.length - 1)); else {
if (s.indexOf("px") !== -1)
s = s.substring(0, s.length - 2);
this._height = this._explicitHeight = Number(s);
}
}
else
this._height = this._explicitHeight = value;
}
}
var foreachiter0_target = this.beads;
for (var foreachiter0 in foreachiter0_target)
{
var bead = foreachiter0_target[foreachiter0];
this.addBead(bead);}
this.loadBeads();
org.apache.royale.utils.sendEvent(this, "beadsAdded");
};