/**
 * Generated by Apache Royale Compiler from org\apache\royale\jewel\beads\controls\Disabled.as
 * org.apache.royale.jewel.beads.controls.Disabled
 *
 * @fileoverview
 *
 * @suppress {checkTypes|accessControls}
 */

goog.provide('org.apache.royale.jewel.beads.controls.Disabled');

goog.require('org.apache.royale.core.IStrand');
goog.require('org.apache.royale.core.UIBase');
goog.require('org.apache.royale.core.IBead');
goog.require('org.apache.royale.utils.Language');



/**
 *  constructor.
 *
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.9.4
 * @constructor
 * @implements {org.apache.royale.core.IBead}
 */
org.apache.royale.jewel.beads.controls.Disabled = function() {
};


/**
 * Prevent renaming of class. Needed for reflection.
 */
goog.exportSymbol('org.apache.royale.jewel.beads.controls.Disabled', org.apache.royale.jewel.beads.controls.Disabled);


/**
 * @private
 * @type {boolean}
 */
org.apache.royale.jewel.beads.controls.Disabled.prototype.org_apache_royale_jewel_beads_controls_Disabled__disabled = true;


/**
 * @private
 * @type {org.apache.royale.core.IStrand}
 */
org.apache.royale.jewel.beads.controls.Disabled.prototype.org_apache_royale_jewel_beads_controls_Disabled__strand;


/**
 * @private
 */
org.apache.royale.jewel.beads.controls.Disabled.prototype.org_apache_royale_jewel_beads_controls_Disabled_updateHost = function() {
  var /** @type {org.apache.royale.core.UIBase} */ host = org.apache.royale.utils.Language.as(this.org_apache_royale_jewel_beads_controls_Disabled__strand, org.apache.royale.core.UIBase);
  if (host) {
    this.org_apache_royale_jewel_beads_controls_Disabled__disabled ? host.element.setAttribute('disabled', '') : host.element.removeAttribute('disabled');
  }
};


org.apache.royale.jewel.beads.controls.Disabled.prototype.get__disabled = function() {
  return this.org_apache_royale_jewel_beads_controls_Disabled__disabled;
};


org.apache.royale.jewel.beads.controls.Disabled.prototype.set__disabled = function(value) {
  this.org_apache_royale_jewel_beads_controls_Disabled__disabled = value;
  this.org_apache_royale_jewel_beads_controls_Disabled_updateHost();
};


org.apache.royale.jewel.beads.controls.Disabled.prototype.set__strand = function(value) {
  this.org_apache_royale_jewel_beads_controls_Disabled__strand = value;
  this.org_apache_royale_jewel_beads_controls_Disabled_updateHost();
};


Object.defineProperties(org.apache.royale.jewel.beads.controls.Disabled.prototype, /** @lends {org.apache.royale.jewel.beads.controls.Disabled.prototype} */ {
/**
  * @export
  * @type {boolean} */
disabled: {
get: org.apache.royale.jewel.beads.controls.Disabled.prototype.get__disabled,
set: org.apache.royale.jewel.beads.controls.Disabled.prototype.set__disabled},
/**
  * @export
  * @type {org.apache.royale.core.IStrand} */
strand: {
set: org.apache.royale.jewel.beads.controls.Disabled.prototype.set__strand}}
);


/**
 * Metadata
 *
 * @type {Object.<string, Array.<Object>>}
 */
org.apache.royale.jewel.beads.controls.Disabled.prototype.ROYALE_CLASS_INFO = { names: [{ name: 'Disabled', qName: 'org.apache.royale.jewel.beads.controls.Disabled', kind: 'class' }], interfaces: [org.apache.royale.core.IBead] };



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.jewel.beads.controls.Disabled.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {return {};},
    accessors: function () {
      return {
        'disabled': { type: 'Boolean', access: 'readwrite', declaredBy: 'org.apache.royale.jewel.beads.controls.Disabled'},
        'strand': { type: 'org.apache.royale.core.IStrand', access: 'writeonly', declaredBy: 'org.apache.royale.jewel.beads.controls.Disabled'}
      };
    },
    methods: function () {
      return {
        'Disabled': { type: '', declaredBy: 'org.apache.royale.jewel.beads.controls.Disabled'}
      };
    }
  };
};