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

goog.provide('org.apache.royale.html.DateField');

goog.require('org.apache.royale.core.IDateChooserModel');
goog.require('org.apache.royale.core.IFormatBead');
goog.require('org.apache.royale.core.UIBase');
goog.require('org.apache.royale.events.Event');
goog.require('org.apache.royale.utils.loadBeadFromValuesManager');
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.core.UIBase}
 */
org.apache.royale.html.DateField = function() {
  org.apache.royale.html.DateField.base(this, 'constructor');
  this.typeNames = "DateField";
};
goog.inherits(org.apache.royale.html.DateField, org.apache.royale.core.UIBase);


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


/**
 * The method called when added to a parent. The DateField class uses
 * this opportunity to install additional beads.
 *  
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.0
 * @export
 * @override
 */
org.apache.royale.html.DateField.prototype.addedToParent = function() {
  org.apache.royale.html.DateField.superClass_.addedToParent.apply(this);
  org.apache.royale.utils.loadBeadFromValuesManager(org.apache.royale.core.IFormatBead, "iFormatBead", this);
  this.dispatchEvent(new org.apache.royale.events.Event("initComplete"));
};


org.apache.royale.html.DateField.prototype.get__selectedDate = function() {
  return org.apache.royale.utils.Language.as(this.model, org.apache.royale.core.IDateChooserModel, true).selectedDate;
};


org.apache.royale.html.DateField.prototype.set__selectedDate = function(value) {
  org.apache.royale.utils.Language.as(this.model, org.apache.royale.core.IDateChooserModel, true).selectedDate = value;
};


Object.defineProperties(org.apache.royale.html.DateField.prototype, /** @lends {org.apache.royale.html.DateField.prototype} */ {
/**
  * @export
  * @type {Date} */
selectedDate: {
get: org.apache.royale.html.DateField.prototype.get__selectedDate,
set: org.apache.royale.html.DateField.prototype.set__selectedDate}}
);


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



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.html.DateField.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {return {};},
    accessors: function () {
      return {
        'selectedDate': { type: 'Date', access: 'readwrite', declaredBy: 'org.apache.royale.html.DateField', metadata: function () { return [ { name: 'Bindable', args: [ { key: '', value: 'selectedDateChanged' } ] } ]; }}
      };
    },
    methods: function () {
      return {
        'DateField': { type: '', declaredBy: 'org.apache.royale.html.DateField'},
        'addedToParent': { type: 'void', declaredBy: 'org.apache.royale.html.DateField'}
      };
    },
    metadata: function () { return [  ]; }
  };
};