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

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

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



/**
 *  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.textinput.MaxNumberCharacters = function() {
};


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


/**
 * @private
 * @type {number}
 */
org.apache.royale.jewel.beads.controls.textinput.MaxNumberCharacters.prototype.org_apache_royale_jewel_beads_controls_textinput_MaxNumberCharacters__maxlength;


/**
 * @protected
 * @type {org.apache.royale.core.IStrand}
 */
org.apache.royale.jewel.beads.controls.textinput.MaxNumberCharacters.prototype._strand;


org.apache.royale.jewel.beads.controls.textinput.MaxNumberCharacters.prototype.get__maxlength = function() {
  return this.org_apache_royale_jewel_beads_controls_textinput_MaxNumberCharacters__maxlength;
};


org.apache.royale.jewel.beads.controls.textinput.MaxNumberCharacters.prototype.set__maxlength = function(value) {
  this.org_apache_royale_jewel_beads_controls_textinput_MaxNumberCharacters__maxlength = value;
};


org.apache.royale.jewel.beads.controls.textinput.MaxNumberCharacters.prototype.set__strand = function(value) {
  this._strand = value;
  
  var /** @type {org.apache.royale.core.UIBase} */ host = value;
  var /** @type {HTMLInputElement} */ e = host.element;
  e.setAttribute("maxlength", this.maxlength);
};


Object.defineProperties(org.apache.royale.jewel.beads.controls.textinput.MaxNumberCharacters.prototype, /** @lends {org.apache.royale.jewel.beads.controls.textinput.MaxNumberCharacters.prototype} */ {
/**
  * @export
  * @type {number} */
maxlength: {
get: org.apache.royale.jewel.beads.controls.textinput.MaxNumberCharacters.prototype.get__maxlength,
set: org.apache.royale.jewel.beads.controls.textinput.MaxNumberCharacters.prototype.set__maxlength},
/**
  * @export
  * @type {org.apache.royale.core.IStrand} */
strand: {
set: org.apache.royale.jewel.beads.controls.textinput.MaxNumberCharacters.prototype.set__strand}}
);


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



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