asdoc/MethodSummaryRenderer.js (380 lines of code) (raw):

/** * Generated by Apache Royale Compiler from MethodSummaryRenderer.mxml * MethodSummaryRenderer * * @fileoverview * * @suppress {missingRequire|checkTypes|accessControls} */ goog.provide('MethodSummaryRenderer'); /* 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.DataContainer,org.apache.royale.html.beads.models.ListPresentationModel,org.apache.royale.html.MultilineLabel,ParameterRenderer,models.ASDocModel,org.apache.royale.core.ClassFactory,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} */ MethodSummaryRenderer = function() { MethodSummaryRenderer.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.DataContainer} */ this.params_; /** * @private * @type {org.apache.royale.html.beads.layouts.HorizontalLayout} */ this.$ID_10_4; /** * @private * @type {org.apache.royale.html.beads.models.ListPresentationModel} */ this.$ID_10_5; /** * @private * @type {org.apache.royale.html.Label} */ this.$ID_10_6; /** * @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(MethodSummaryRenderer, org.apache.royale.html.supportClasses.MXMLItemRenderer); /** * @private * @type {Object} */ MethodSummaryRenderer.fakeBothPlatforms = {"addEventListener":1, "removeEventListener":1, "hasEventListener":1, "dispatchEvent":1, "toString":1}; ; ; MethodSummaryRenderer.prototype.set__data = function(value) { this.addBead(new org.apache.royale.html.beads.AlternatingBackgroundColorSelectableItemRendererBead()); MethodSummaryRenderer.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 && !MethodSummaryRenderer.fakeBothPlatforms[this.obj.qname]) { if (this.obj.platforms[0] == "swf") this.qname.className += " swfonly"; if (this.obj.platforms[0] == "js") this.qname.className += " jsonly"; } }; /** * @nocollapse * @export * @type {ASDocClassMembers} */ MethodSummaryRenderer.prototype.obj; MethodSummaryRenderer.prototype.get__obj = function() { return this.data; }; Object.defineProperties(MethodSummaryRenderer.prototype, /** @lends {MethodSummaryRenderer.prototype} */ { /** * @type {Object} */ data: { get: org.apache.royale.html.supportClasses.UIItemRendererBase.prototype.get__data, set: MethodSummaryRenderer.prototype.set__data}, /** * @type {ASDocClassMembers} */ obj: { get: MethodSummaryRenderer.prototype.get__obj}} );Object.defineProperties(MethodSummaryRenderer.prototype, /** @lends {MethodSummaryRenderer.prototype} */ { typeGroup: { /** @this {MethodSummaryRenderer} */ get: function() { return this.typeGroup_; }, /** @this {MethodSummaryRenderer} */ set: function(value) { if (value != this.typeGroup_) { this.typeGroup_ = value; this.dispatchEvent(org.apache.royale.events.ValueChangeEvent.createUpdateEvent(this, 'typeGroup', null, value)); } } }, qname: { /** @this {MethodSummaryRenderer} */ get: function() { return this.qname_; }, /** @this {MethodSummaryRenderer} */ set: function(value) { if (value != this.qname_) { this.qname_ = value; this.dispatchEvent(org.apache.royale.events.ValueChangeEvent.createUpdateEvent(this, 'qname', null, value)); } } }, params: { /** @this {MethodSummaryRenderer} */ get: function() { return this.params_; }, /** @this {MethodSummaryRenderer} */ set: function(value) { if (value != this.params_) { this.params_ = value; this.dispatchEvent(org.apache.royale.events.ValueChangeEvent.createUpdateEvent(this, 'params', null, value)); } } }, label: { /** @this {MethodSummaryRenderer} */ get: function() { return this.label_; }, /** @this {MethodSummaryRenderer} */ set: function(value) { if (value != this.label_) { this.label_ = value; this.dispatchEvent(org.apache.royale.events.ValueChangeEvent.createUpdateEvent(this, 'label', null, value)); } } }, link: { /** @this {MethodSummaryRenderer} */ get: function() { return this.link_; }, /** @this {MethodSummaryRenderer} */ set: function(value) { if (value != this.link_) { this.link_ = value; this.dispatchEvent(org.apache.royale.events.ValueChangeEvent.createUpdateEvent(this, 'link', null, value)); } } }, short: { /** @this {MethodSummaryRenderer} */ get: function() { return this.short_; }, /** @this {MethodSummaryRenderer} */ set: function(value) { if (value != this.short_) { this.short_ = value; this.dispatchEvent(org.apache.royale.events.ValueChangeEvent.createUpdateEvent(this, 'short', null, value)); } } }, 'MXMLDescriptor': { /** @this {MethodSummaryRenderer} */ get: function() { if (this.mxmldd == undefined) { /** @type {Array} */ var arr = MethodSummaryRenderer.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.DataContainer, 5, 'id', true, 'params', 'className', true, 'signatureParamsList', 'style', true, 'border-style:none', 'itemRenderer', true, new org.apache.royale.core.ClassFactory(ParameterRenderer), 'beads', null, [ org.apache.royale.html.beads.layouts.HorizontalLayout, 1, '_id', true, '$ID_10_4', 0, 0, null, org.apache.royale.html.beads.models.ListPresentationModel, 2, '_id', true, '$ID_10_5', 'rowHeight', true, NaN, 0, 0, null ], 0, 0, null, org.apache.royale.html.Label, 2, '_id', true, '$ID_10_6', '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 */ MethodSummaryRenderer.prototype._bindings = [ 6, ["data", "qname"], null, ["qname", "text"], ["data", "params"], null, ["params", "dataProvider"], ["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,5], null, [ 1, 2, "qname", "__NoChangeEvent__", 0, null, null, 2, 2, "params", "__NoChangeEvent__", 1, null, null, 3, 2, "return", "__NoChangeEvent__", [2,3], null, null, 4, 2, "returnhref", "__NoChangeEvent__", 4, null, null, 5, 2, "shortDescription", "__NoChangeEvent__", 5, null, null, null]]; /** * Metadata * * @type {Object.<string, Array.<Object>>} */ MethodSummaryRenderer.prototype.ROYALE_CLASS_INFO = { names: [{ name: 'MethodSummaryRenderer', qName: 'MethodSummaryRenderer', kind: 'class' }] }; /** * Reflection * * @return {Object.<string, Function>} */ MethodSummaryRenderer.prototype.ROYALE_REFLECTION_INFO = function () { return { accessors: function () { return { 'data': { type: 'Object', access: 'writeonly', declaredBy: 'MethodSummaryRenderer'}, 'obj': { type: 'ASDocClassMembers', access: 'readonly', declaredBy: 'MethodSummaryRenderer'}, 'typeGroup': { type: 'org.apache.royale.html.Group', access: 'readwrite', declaredBy: 'MethodSummaryRenderer'}, 'qname': { type: 'org.apache.royale.html.elements.A', access: 'readwrite', declaredBy: 'MethodSummaryRenderer'}, 'params': { type: 'org.apache.royale.html.DataContainer', access: 'readwrite', declaredBy: 'MethodSummaryRenderer'}, 'label': { type: 'org.apache.royale.html.Label', access: 'readwrite', declaredBy: 'MethodSummaryRenderer'}, 'link': { type: 'org.apache.royale.html.elements.A', access: 'readwrite', declaredBy: 'MethodSummaryRenderer'}, 'short': { type: 'org.apache.royale.html.MultilineLabel', access: 'readwrite', declaredBy: 'MethodSummaryRenderer'} }; }, methods: function () { return { 'MethodSummaryRenderer': { type: '', declaredBy: 'MethodSummaryRenderer'} }; } }; }; /** * @const * @type {number} */ MethodSummaryRenderer.prototype.ROYALE_COMPILE_FLAGS = 9; /** * Provide reflection support for distinguishing dynamic fields on class object (static) * @const * @type {Array<string>} */ MethodSummaryRenderer.prototype.ROYALE_INITIAL_STATICS = Object.keys(MethodSummaryRenderer);