asdoc/SummaryRenderer.js (301 lines of code) (raw):

/** * Generated by Apache Royale Compiler from SummaryRenderer.mxml * SummaryRenderer * * @fileoverview * * @suppress {missingRequire|checkTypes|accessControls} */ goog.provide('SummaryRenderer'); /* Royale Dependency List: org.apache.royale.html.beads.layouts.VerticalLayout,org.apache.royale.binding.ItemRendererDataBinding,org.apache.royale.html.Group,org.apache.royale.html.beads.layouts.HorizontalLayout,org.apache.royale.html.elements.A,org.apache.royale.html.Label,org.apache.royale.html.MultilineLabel,models.ASDocModel,org.apache.royale.html.beads.AlternatingBackgroundColorSelectableItemRendererBead,org.apache.royale.html.supportClasses.UIItemRendererBase*/ goog.require('org.apache.royale.html.supportClasses.MXMLItemRenderer'); /** * @constructor * @extends {org.apache.royale.html.supportClasses.MXMLItemRenderer} */ SummaryRenderer = function() { SummaryRenderer.base(this, 'constructor'); /** * @private * @type {org.apache.royale.html.beads.layouts.VerticalLayout} */ this.$ID_10_0; /** * @private * @type {org.apache.royale.binding.ItemRendererDataBinding} */ this.$ID_10_1; /** * @private * @type {org.apache.royale.html.Group} */ this.typeGroup_; /** * @private * @type {org.apache.royale.html.beads.layouts.HorizontalLayout} */ this.$ID_10_2; /** * @private * @type {org.apache.royale.html.elements.A} */ this.qname_; /** * @private * @type {org.apache.royale.html.Label} */ this.$ID_10_3; /** * @private * @type {org.apache.royale.html.Label} */ this.label_; /** * @private * @type {org.apache.royale.html.elements.A} */ this.link_; /** * @private * @type {org.apache.royale.html.MultilineLabel} */ this.short_; /** * @private * @type {Array} */ this.mxmldd; /** * @private * @type {Array} */ this.mxmldp; this.generateMXMLAttributes([ 3, 'className', true, 'summary', 'percentWidth', true, 100.0, 'beads', null, [ org.apache.royale.html.beads.layouts.VerticalLayout, 1, '_id', true, '$ID_10_0', 0, 0, null, org.apache.royale.binding.ItemRendererDataBinding, 1, '_id', true, '$ID_10_1', 0, 0, null ], 0, 0 ]); }; goog.inherits(SummaryRenderer, org.apache.royale.html.supportClasses.MXMLItemRenderer); ; ; SummaryRenderer.prototype.set__data = function(value) { this.addBead(new org.apache.royale.html.beads.AlternatingBackgroundColorSelectableItemRendererBead()); SummaryRenderer.superClass_.set__data.apply(this, [value]); if (value["returnhref"]) this.typeGroup.removeElement(this.label); else this.typeGroup.removeElement(this.link); this.qname.href = "#!" + this.obj.ownerhref + models.ASDocModel.DELIMITER + this.obj.qname; if (this.obj.platforms.length == 1) { if (this.obj.platforms[0] == "swf") this.qname.className += " swfonly"; if (this.obj.platforms[0] == "js") this.qname.className += " jsonly"; } }; /** * @nocollapse * @export * @type {ASDocClassMembers} */ SummaryRenderer.prototype.obj; SummaryRenderer.prototype.get__obj = function() { return this.data; }; Object.defineProperties(SummaryRenderer.prototype, /** @lends {SummaryRenderer.prototype} */ { /** * @type {Object} */ data: { get: org.apache.royale.html.supportClasses.UIItemRendererBase.prototype.get__data, set: SummaryRenderer.prototype.set__data}, /** * @type {ASDocClassMembers} */ obj: { get: SummaryRenderer.prototype.get__obj}} );Object.defineProperties(SummaryRenderer.prototype, /** @lends {SummaryRenderer.prototype} */ { typeGroup: { /** @this {SummaryRenderer} */ get: function() { return this.typeGroup_; }, /** @this {SummaryRenderer} */ set: function(value) { if (value != this.typeGroup_) { this.typeGroup_ = value; this.dispatchEvent(org.apache.royale.events.ValueChangeEvent.createUpdateEvent(this, 'typeGroup', null, value)); } } }, qname: { /** @this {SummaryRenderer} */ get: function() { return this.qname_; }, /** @this {SummaryRenderer} */ set: function(value) { if (value != this.qname_) { this.qname_ = value; this.dispatchEvent(org.apache.royale.events.ValueChangeEvent.createUpdateEvent(this, 'qname', null, value)); } } }, label: { /** @this {SummaryRenderer} */ get: function() { return this.label_; }, /** @this {SummaryRenderer} */ set: function(value) { if (value != this.label_) { this.label_ = value; this.dispatchEvent(org.apache.royale.events.ValueChangeEvent.createUpdateEvent(this, 'label', null, value)); } } }, link: { /** @this {SummaryRenderer} */ get: function() { return this.link_; }, /** @this {SummaryRenderer} */ set: function(value) { if (value != this.link_) { this.link_ = value; this.dispatchEvent(org.apache.royale.events.ValueChangeEvent.createUpdateEvent(this, 'link', null, value)); } } }, short: { /** @this {SummaryRenderer} */ get: function() { return this.short_; }, /** @this {SummaryRenderer} */ set: function(value) { if (value != this.short_) { this.short_ = value; this.dispatchEvent(org.apache.royale.events.ValueChangeEvent.createUpdateEvent(this, 'short', null, value)); } } }, 'MXMLDescriptor': { /** @this {SummaryRenderer} */ get: function() { if (this.mxmldd == undefined) { /** @type {Array} */ var arr = SummaryRenderer.superClass_.get__MXMLDescriptor.apply(this); /** @type {Array} */ var mxmldd = [ org.apache.royale.html.Group, 2, 'id', true, 'typeGroup', 'beads', null, [ org.apache.royale.html.beads.layouts.HorizontalLayout, 1, '_id', true, '$ID_10_2', 0, 0, null ], 0, 0, [ org.apache.royale.html.elements.A, 2, 'id', true, 'qname', 'className', true, 'summaryQName', 0, 0, null, org.apache.royale.html.Label, 2, '_id', true, '$ID_10_3', 'text', true, ':', 0, 0, null, org.apache.royale.html.Label, 2, 'id', true, 'label', 'className', true, 'summaryType', 0, 0, null, org.apache.royale.html.elements.A, 2, 'id', true, 'link', 'className', true, 'summaryTypeLink', 0, 0, null ], org.apache.royale.html.MultilineLabel, 3, 'id', true, 'short', 'className', true, 'summaryDescription', 'percentWidth', true, 100.0, 0, 0, null ]; if (arr) this.mxmldd = arr.concat(mxmldd); else this.mxmldd = mxmldd; } return this.mxmldd; } } }); /** * @export */ SummaryRenderer.prototype._bindings = [ 5, ["data", "qname"], null, ["qname", "text"], ["data", "return"], null, ["label", "text"], ["data", "return"], null, ["link", "text"], ["data", "returnhref"], null, ["link", "href"], ["data", "shortDescription"], null, ["short", "text"], 0, 2, "data", ["dataChange","__NoChangeEvent__"], [0,1,2,3,4], null, [ 1, 2, "qname", "__NoChangeEvent__", 0, null, null, 2, 2, "return", "__NoChangeEvent__", [1,2], null, null, 3, 2, "returnhref", "__NoChangeEvent__", 3, null, null, 4, 2, "shortDescription", "__NoChangeEvent__", 4, null, null, null]]; /** * Metadata * * @type {Object.<string, Array.<Object>>} */ SummaryRenderer.prototype.ROYALE_CLASS_INFO = { names: [{ name: 'SummaryRenderer', qName: 'SummaryRenderer', kind: 'class' }] }; /** * Reflection * * @return {Object.<string, Function>} */ SummaryRenderer.prototype.ROYALE_REFLECTION_INFO = function () { return { accessors: function () { return { 'data': { type: 'Object', access: 'writeonly', declaredBy: 'SummaryRenderer'}, 'obj': { type: 'ASDocClassMembers', access: 'readonly', declaredBy: 'SummaryRenderer'}, 'typeGroup': { type: 'org.apache.royale.html.Group', access: 'readwrite', declaredBy: 'SummaryRenderer'}, 'qname': { type: 'org.apache.royale.html.elements.A', access: 'readwrite', declaredBy: 'SummaryRenderer'}, 'label': { type: 'org.apache.royale.html.Label', access: 'readwrite', declaredBy: 'SummaryRenderer'}, 'link': { type: 'org.apache.royale.html.elements.A', access: 'readwrite', declaredBy: 'SummaryRenderer'}, 'short': { type: 'org.apache.royale.html.MultilineLabel', access: 'readwrite', declaredBy: 'SummaryRenderer'} }; }, methods: function () { return { 'SummaryRenderer': { type: '', declaredBy: 'SummaryRenderer'} }; } }; }; /** * @const * @type {number} */ SummaryRenderer.prototype.ROYALE_COMPILE_FLAGS = 9;