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

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

goog.require('org.apache.royale.core.IDateChooserModel');
goog.require('org.apache.royale.core.IDateControlConfigBead');
goog.require('org.apache.royale.core.IFormatBead');
goog.require('org.apache.royale.core.StyledUIBase');
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.9.4
 * @constructor
 * @extends {org.apache.royale.core.StyledUIBase}
 */
org.apache.royale.jewel.DateField = function() {
  org.apache.royale.jewel.DateField.base(this, 'constructor');
  this.typeNames = "jewel datefield";
};
goog.inherits(org.apache.royale.jewel.DateField, org.apache.royale.core.StyledUIBase);


/**
 * Prevent renaming of class. Needed for reflection.
 */
goog.exportSymbol('org.apache.royale.jewel.DateField', org.apache.royale.jewel.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.9.4
 * @export
 * @override
 */
org.apache.royale.jewel.DateField.prototype.addedToParent = function() {
  org.apache.royale.jewel.DateField.superClass_.addedToParent.apply(this);
  org.apache.royale.utils.loadBeadFromValuesManager(org.apache.royale.core.IFormatBead, "iFormatBead", this);
  org.apache.royale.utils.loadBeadFromValuesManager(org.apache.royale.core.IDateControlConfigBead, "iDateControlConfigBead", this);
  this.dispatchEvent(new org.apache.royale.events.Event("initComplete"));
};


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


org.apache.royale.jewel.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.jewel.DateField.prototype, /** @lends {org.apache.royale.jewel.DateField.prototype} */ {
/**
  * @export
  * @type {Date} */
selectedDate: {
get: org.apache.royale.jewel.DateField.prototype.get__selectedDate,
set: org.apache.royale.jewel.DateField.prototype.set__selectedDate}}
);


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



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