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

goog.provide('org.apache.royale.jewel.supportClasses.textinput.TextInputBase');

goog.require('org.apache.royale.core.StyledUIBase');
goog.require('org.apache.royale.events.Event');
goog.require('org.apache.royale.jewel.supportClasses.textinput.ITextInput');



/**
 *  Constructor.
 *  
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.9.4
 * @constructor
 * @extends {org.apache.royale.core.StyledUIBase}
 * @implements {org.apache.royale.jewel.supportClasses.textinput.ITextInput}
 */
org.apache.royale.jewel.supportClasses.textinput.TextInputBase = function() {
  org.apache.royale.jewel.supportClasses.textinput.TextInputBase.base(this, 'constructor');
  
};
goog.inherits(org.apache.royale.jewel.supportClasses.textinput.TextInputBase, org.apache.royale.core.StyledUIBase);


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


/**
 *  dispatch change event in response to a textChange event
 *
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.9.4
 * @export
 * @param {org.apache.royale.events.Event} event
 */
org.apache.royale.jewel.supportClasses.textinput.TextInputBase.prototype.textChangeHandler = function(event) {
  
  this.dispatchEvent(new org.apache.royale.events.Event(org.apache.royale.events.Event.CHANGE));
};


/**
 * @private
 * @type {Text}
 */
org.apache.royale.jewel.supportClasses.textinput.TextInputBase.prototype.org_apache_royale_jewel_supportClasses_textinput_TextInputBase__textNode;


/**
 * @private
 * @type {HTMLInputElement}
 */
org.apache.royale.jewel.supportClasses.textinput.TextInputBase.prototype.org_apache_royale_jewel_supportClasses_textinput_TextInputBase__input;


/**
 * @private
 * @type {HTMLLabelElement}
 */
org.apache.royale.jewel.supportClasses.textinput.TextInputBase.prototype.org_apache_royale_jewel_supportClasses_textinput_TextInputBase__label;


/**
 * @export
 * @type {HTMLDivElement}
 */
org.apache.royale.jewel.supportClasses.textinput.TextInputBase.prototype.div;


org.apache.royale.jewel.supportClasses.textinput.TextInputBase.prototype.get__text = function() {
  
  return this.element.value;
};


org.apache.royale.jewel.supportClasses.textinput.TextInputBase.prototype.set__text = function(value) {
  
  this.element.value = value;
  this.dispatchEvent(new org.apache.royale.events.Event('textChange'));
};


org.apache.royale.jewel.supportClasses.textinput.TextInputBase.prototype.get__html = function() {
  
  return this.element.value;
};


org.apache.royale.jewel.supportClasses.textinput.TextInputBase.prototype.set__html = function(value) {
  
  this.element.value = value;
  this.dispatchEvent(new org.apache.royale.events.Event('textChange'));
};


org.apache.royale.jewel.supportClasses.textinput.TextInputBase.prototype.get__textNode = function() {
  return this.org_apache_royale_jewel_supportClasses_textinput_TextInputBase__textNode;
};


org.apache.royale.jewel.supportClasses.textinput.TextInputBase.prototype.set__textNode = function(value) {
  this.org_apache_royale_jewel_supportClasses_textinput_TextInputBase__textNode = value;
};


org.apache.royale.jewel.supportClasses.textinput.TextInputBase.prototype.get__input = function() {
  return this.org_apache_royale_jewel_supportClasses_textinput_TextInputBase__input;
};


org.apache.royale.jewel.supportClasses.textinput.TextInputBase.prototype.set__input = function(value) {
  this.org_apache_royale_jewel_supportClasses_textinput_TextInputBase__input = value;
};


org.apache.royale.jewel.supportClasses.textinput.TextInputBase.prototype.get__label = function() {
  return this.org_apache_royale_jewel_supportClasses_textinput_TextInputBase__label;
};


org.apache.royale.jewel.supportClasses.textinput.TextInputBase.prototype.set__label = function(value) {
  this.org_apache_royale_jewel_supportClasses_textinput_TextInputBase__label = value;
};


Object.defineProperties(org.apache.royale.jewel.supportClasses.textinput.TextInputBase.prototype, /** @lends {org.apache.royale.jewel.supportClasses.textinput.TextInputBase.prototype} */ {
/**
  * @export
  * @type {string} */
text: {
get: org.apache.royale.jewel.supportClasses.textinput.TextInputBase.prototype.get__text,
set: org.apache.royale.jewel.supportClasses.textinput.TextInputBase.prototype.set__text},
/**
  * @export
  * @type {string} */
html: {
get: org.apache.royale.jewel.supportClasses.textinput.TextInputBase.prototype.get__html,
set: org.apache.royale.jewel.supportClasses.textinput.TextInputBase.prototype.set__html},
/**
  * @export
  * @type {Text} */
textNode: {
get: org.apache.royale.jewel.supportClasses.textinput.TextInputBase.prototype.get__textNode,
set: org.apache.royale.jewel.supportClasses.textinput.TextInputBase.prototype.set__textNode},
/**
  * @export
  * @type {HTMLInputElement} */
input: {
get: org.apache.royale.jewel.supportClasses.textinput.TextInputBase.prototype.get__input,
set: org.apache.royale.jewel.supportClasses.textinput.TextInputBase.prototype.set__input},
/**
  * @export
  * @type {HTMLLabelElement} */
label: {
get: org.apache.royale.jewel.supportClasses.textinput.TextInputBase.prototype.get__label,
set: org.apache.royale.jewel.supportClasses.textinput.TextInputBase.prototype.set__label}}
);


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



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.jewel.supportClasses.textinput.TextInputBase.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {
      return {
        'div': { type: 'HTMLDivElement'}
      };
    },
    accessors: function () {
      return {
        'text': { type: 'String', access: 'readwrite', declaredBy: 'org.apache.royale.jewel.supportClasses.textinput.TextInputBase', metadata: function () { return [ { name: 'Bindable', args: [ { key: '', value: 'change' } ] } ]; }},
        'html': { type: 'String', access: 'readwrite', declaredBy: 'org.apache.royale.jewel.supportClasses.textinput.TextInputBase', metadata: function () { return [ { name: 'Bindable', args: [ { key: '', value: 'change' } ] } ]; }},
        'textNode': { type: 'Text', access: 'readwrite', declaredBy: 'org.apache.royale.jewel.supportClasses.textinput.TextInputBase'},
        'input': { type: 'HTMLInputElement', access: 'readwrite', declaredBy: 'org.apache.royale.jewel.supportClasses.textinput.TextInputBase'},
        'label': { type: 'HTMLLabelElement', access: 'readwrite', declaredBy: 'org.apache.royale.jewel.supportClasses.textinput.TextInputBase'}
      };
    },
    methods: function () {
      return {
        'TextInputBase': { type: '', declaredBy: 'org.apache.royale.jewel.supportClasses.textinput.TextInputBase'},
        'textChangeHandler': { type: 'void', declaredBy: 'org.apache.royale.jewel.supportClasses.textinput.TextInputBase', parameters: function () { return [  { index: 1, type: 'org.apache.royale.events.Event', optional: false } ]; }}
      };
    },
    metadata: function () { return [  ]; }
  };
};