/**
 * Generated by Apache Royale Compiler from org\apache\royale\html\supportClasses\GraphicsItemRenderer.as
 * org.apache.royale.html.supportClasses.GraphicsItemRenderer
 *
 * @fileoverview
 *
 * @suppress {checkTypes|accessControls}
 */

goog.provide('org.apache.royale.html.supportClasses.GraphicsItemRenderer');

goog.require('org.apache.royale.core.ValuesManager');
goog.require('org.apache.royale.events.Event');
goog.require('org.apache.royale.svg.CompoundGraphic');
goog.require('org.apache.royale.utils.MXMLDataInterpreter');
goog.require('org.apache.royale.core.ISelectableItemRenderer');
goog.require('org.apache.royale.utils.Language');



/**
 *  Constructor.
 *  
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.0
 * @constructor
 * @extends {org.apache.royale.svg.CompoundGraphic}
 * @implements {org.apache.royale.core.ISelectableItemRenderer}
 */
org.apache.royale.html.supportClasses.GraphicsItemRenderer = function() {
  org.apache.royale.html.supportClasses.GraphicsItemRenderer.base(this, 'constructor');
};
goog.inherits(org.apache.royale.html.supportClasses.GraphicsItemRenderer, org.apache.royale.svg.CompoundGraphic);


/**
 * Prevent renaming of class. Needed for reflection.
 */
goog.exportSymbol('org.apache.royale.html.supportClasses.GraphicsItemRenderer', org.apache.royale.html.supportClasses.GraphicsItemRenderer);


/**
 * @asprivate
 * @export
 * @override
 */
org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.addedToParent = function() {
  org.apache.royale.html.supportClasses.GraphicsItemRenderer.superClass_.addedToParent.apply(this);
  this.addEventListener("widthChanged", org.apache.royale.utils.Language.closure(this.org_apache_royale_html_supportClasses_GraphicsItemRenderer_sizeChangeHandler, this, 'sizeChangeHandler'));
  this.addEventListener("heightChanged", org.apache.royale.utils.Language.closure(this.org_apache_royale_html_supportClasses_GraphicsItemRenderer_sizeChangeHandler, this, 'sizeChangeHandler'));
  org.apache.royale.core.ValuesManager["valuesImpl"].init(this);
  org.apache.royale.utils.MXMLDataInterpreter.generateMXMLProperties(this, this.org_apache_royale_html_supportClasses_GraphicsItemRenderer_mxmlProperties);
  org.apache.royale.utils.MXMLDataInterpreter.generateMXMLInstances(this, this, this.MXMLDescriptor);
  this.dispatchEvent(new org.apache.royale.events.Event("initBindings"));
  this.dispatchEvent(new org.apache.royale.events.Event("initComplete"));
};


/**
 * @private
 * @type {string}
 */
org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.org_apache_royale_html_supportClasses_GraphicsItemRenderer__labelField = "label";


/**
 * @private
 * @type {number}
 */
org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.org_apache_royale_html_supportClasses_GraphicsItemRenderer__index = 0;


/**
 * @private
 * @type {boolean}
 */
org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.org_apache_royale_html_supportClasses_GraphicsItemRenderer__selectable = true;


/**
 * @private
 * @type {boolean}
 */
org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.org_apache_royale_html_supportClasses_GraphicsItemRenderer__hoverable = true;


/**
 * @private
 * @type {boolean}
 */
org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.org_apache_royale_html_supportClasses_GraphicsItemRenderer__selected;


/**
 * @private
 * @type {boolean}
 */
org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.org_apache_royale_html_supportClasses_GraphicsItemRenderer__hovered;


/**
 * @private
 * @type {boolean}
 */
org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.org_apache_royale_html_supportClasses_GraphicsItemRenderer__down;


/**
 * @private
 * @type {Object}
 */
org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.org_apache_royale_html_supportClasses_GraphicsItemRenderer__data;


/**
 * @private
 * @type {Object}
 */
org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.org_apache_royale_html_supportClasses_GraphicsItemRenderer__listData;


/**
 * @private
 * @type {string}
 */
org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.org_apache_royale_html_supportClasses_GraphicsItemRenderer__dataField;


/**
 * @private
 * @type {Object}
 */
org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.org_apache_royale_html_supportClasses_GraphicsItemRenderer__itemRendererParent;


/**
 * @asprivate
 * @export
 */
org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.updateRenderer = function() {
};


/**
 * @export
 * @type {Array}
 */
org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.mxmlContent;


/**
 * @private
 * @type {Array}
 */
org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.org_apache_royale_html_supportClasses_GraphicsItemRenderer_mxmlProperties;


/**
 * @asprivate
 * @export
 * @param {Array} data
 */
org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.generateMXMLAttributes = function(data) {
  this.org_apache_royale_html_supportClasses_GraphicsItemRenderer_mxmlProperties = data;
};


/**
 * @asprivate
 * @private
 * @param {org.apache.royale.events.Event} event
 */
org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.org_apache_royale_html_supportClasses_GraphicsItemRenderer_sizeChangeHandler = function(event) {
  this.adjustSize();
};


/**
 *  This function is called whenever the itemRenderer changes size. Sub-classes should override
 *  this method an handle the size change.
 *
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.0
 * @export
 */
org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.adjustSize = function() {
};


org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.get__labelField = function() {
  return this.org_apache_royale_html_supportClasses_GraphicsItemRenderer__labelField;
};


org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.set__labelField = function(value) {
  this.org_apache_royale_html_supportClasses_GraphicsItemRenderer__labelField = value;
};


org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.get__index = function() {
  return this.org_apache_royale_html_supportClasses_GraphicsItemRenderer__index;
};


org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.set__index = function(value) {
  this.org_apache_royale_html_supportClasses_GraphicsItemRenderer__index = value;
};


org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.get__selectable = function() {
  return this.org_apache_royale_html_supportClasses_GraphicsItemRenderer__selectable;
};


org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.set__selectable = function(value) {
  this.org_apache_royale_html_supportClasses_GraphicsItemRenderer__selectable = value;
};


org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.get__hoverable = function() {
  return this.org_apache_royale_html_supportClasses_GraphicsItemRenderer__hoverable;
};


org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.set__hoverable = function(value) {
  this.org_apache_royale_html_supportClasses_GraphicsItemRenderer__hoverable = value;
};


org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.get__selected = function() {
  return this.org_apache_royale_html_supportClasses_GraphicsItemRenderer__selected;
};


org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.set__selected = function(value) {
  this.org_apache_royale_html_supportClasses_GraphicsItemRenderer__selected = value;
  this.updateRenderer();
};


org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.get__hovered = function() {
  return this.org_apache_royale_html_supportClasses_GraphicsItemRenderer__hovered;
};


org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.set__hovered = function(value) {
  this.org_apache_royale_html_supportClasses_GraphicsItemRenderer__hovered = value;
  this.updateRenderer();
};


org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.get__down = function() {
  return this.org_apache_royale_html_supportClasses_GraphicsItemRenderer__down;
};


org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.set__down = function(value) {
  this.org_apache_royale_html_supportClasses_GraphicsItemRenderer__down = value;
  this.updateRenderer();
};


org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.get__data = function() {
  return this.org_apache_royale_html_supportClasses_GraphicsItemRenderer__data;
};


org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.set__data = function(value) {
  this.org_apache_royale_html_supportClasses_GraphicsItemRenderer__data = value;
};


org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.get__listData = function() {
  return this.org_apache_royale_html_supportClasses_GraphicsItemRenderer__listData;
};


org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.set__listData = function(value) {
  this.org_apache_royale_html_supportClasses_GraphicsItemRenderer__listData = value;
};


org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.get__dataField = function() {
  return this.org_apache_royale_html_supportClasses_GraphicsItemRenderer__dataField;
};


org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.set__dataField = function(value) {
  this.org_apache_royale_html_supportClasses_GraphicsItemRenderer__dataField = value;
};


org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.get__itemRendererParent = function() {
  return this.org_apache_royale_html_supportClasses_GraphicsItemRenderer__itemRendererParent;
};


org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.set__itemRendererParent = function(value) {
  this.org_apache_royale_html_supportClasses_GraphicsItemRenderer__itemRendererParent = value;
};


org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.get__MXMLDescriptor = function() {
  return null;
};


Object.defineProperties(org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype, /** @lends {org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype} */ {
/**
  * @export
  * @type {string} */
labelField: {
get: org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.get__labelField,
set: org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.set__labelField},
/**
  * @export
  * @type {number} */
index: {
get: org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.get__index,
set: org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.set__index},
/**
  * @export
  * @type {boolean} */
selectable: {
get: org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.get__selectable,
set: org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.set__selectable},
/**
  * @export
  * @type {boolean} */
hoverable: {
get: org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.get__hoverable,
set: org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.set__hoverable},
/**
  * @export
  * @type {boolean} */
selected: {
get: org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.get__selected,
set: org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.set__selected},
/**
  * @export
  * @type {boolean} */
hovered: {
get: org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.get__hovered,
set: org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.set__hovered},
/**
  * @export
  * @type {boolean} */
down: {
get: org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.get__down,
set: org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.set__down},
/**
  * @export
  * @type {Object} */
data: {
get: org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.get__data,
set: org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.set__data},
/**
  * @export
  * @type {Object} */
listData: {
get: org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.get__listData,
set: org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.set__listData},
/**
  * @export
  * @type {string} */
dataField: {
get: org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.get__dataField,
set: org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.set__dataField},
/**
  * @export
  * @type {Object} */
itemRendererParent: {
get: org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.get__itemRendererParent,
set: org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.set__itemRendererParent},
/**
  * @export
  * @type {Array} */
MXMLDescriptor: {
get: org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.get__MXMLDescriptor}}
);


/**
 * Metadata
 *
 * @type {Object.<string, Array.<Object>>}
 */
org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.ROYALE_CLASS_INFO = { names: [{ name: 'GraphicsItemRenderer', qName: 'org.apache.royale.html.supportClasses.GraphicsItemRenderer', kind: 'class' }], interfaces: [org.apache.royale.core.ISelectableItemRenderer] };



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.html.supportClasses.GraphicsItemRenderer.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {
      return {
        'mxmlContent': { type: 'Array'}
      };
    },
    accessors: function () {
      return {
        'labelField': { type: 'String', access: 'readwrite', declaredBy: 'org.apache.royale.html.supportClasses.GraphicsItemRenderer'},
        'index': { type: 'int', access: 'readwrite', declaredBy: 'org.apache.royale.html.supportClasses.GraphicsItemRenderer'},
        'selectable': { type: 'Boolean', access: 'readwrite', declaredBy: 'org.apache.royale.html.supportClasses.GraphicsItemRenderer'},
        'hoverable': { type: 'Boolean', access: 'readwrite', declaredBy: 'org.apache.royale.html.supportClasses.GraphicsItemRenderer'},
        'selected': { type: 'Boolean', access: 'readwrite', declaredBy: 'org.apache.royale.html.supportClasses.GraphicsItemRenderer'},
        'hovered': { type: 'Boolean', access: 'readwrite', declaredBy: 'org.apache.royale.html.supportClasses.GraphicsItemRenderer'},
        'down': { type: 'Boolean', access: 'readwrite', declaredBy: 'org.apache.royale.html.supportClasses.GraphicsItemRenderer'},
        'data': { type: 'Object', access: 'readwrite', declaredBy: 'org.apache.royale.html.supportClasses.GraphicsItemRenderer', metadata: function () { return [ { name: 'Bindable', args: [ { key: '', value: '__NoChangeEvent__' } ] } ]; }},
        'listData': { type: 'Object', access: 'readwrite', declaredBy: 'org.apache.royale.html.supportClasses.GraphicsItemRenderer', metadata: function () { return [ { name: 'Bindable', args: [ { key: '', value: '__NoChangeEvent__' } ] } ]; }},
        'dataField': { type: 'String', access: 'readwrite', declaredBy: 'org.apache.royale.html.supportClasses.GraphicsItemRenderer'},
        'itemRendererParent': { type: 'Object', access: 'readwrite', declaredBy: 'org.apache.royale.html.supportClasses.GraphicsItemRenderer'},
        'MXMLDescriptor': { type: 'Array', access: 'readonly', declaredBy: 'org.apache.royale.html.supportClasses.GraphicsItemRenderer'}
      };
    },
    methods: function () {
      return {
        'GraphicsItemRenderer': { type: '', declaredBy: 'org.apache.royale.html.supportClasses.GraphicsItemRenderer'},
        'addedToParent': { type: 'void', declaredBy: 'org.apache.royale.html.supportClasses.GraphicsItemRenderer'},
        'updateRenderer': { type: 'void', declaredBy: 'org.apache.royale.html.supportClasses.GraphicsItemRenderer'},
        'generateMXMLAttributes': { type: 'void', declaredBy: 'org.apache.royale.html.supportClasses.GraphicsItemRenderer', parameters: function () { return [  { index: 1, type: 'Array', optional: false } ]; }},
        'adjustSize': { type: 'void', declaredBy: 'org.apache.royale.html.supportClasses.GraphicsItemRenderer'}
      };
    }
  };
};