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

goog.provide('org.apache.royale.jewel.beads.models.FormItemModel');

goog.require('org.apache.royale.events.Event');
goog.require('org.apache.royale.events.ValueChangeEvent');
goog.require('org.apache.royale.jewel.beads.controls.TextAlign');
goog.require('org.apache.royale.jewel.beads.models.TextModel');



/**
 *  constructor.
 *
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.9.4
 * @constructor
 * @extends {org.apache.royale.jewel.beads.models.TextModel}
 */
org.apache.royale.jewel.beads.models.FormItemModel = function() {
  
  this.org_apache_royale_jewel_beads_models_FormItemModel__labelAlign = org.apache.royale.jewel.beads.controls.TextAlign.RIGHT;
  org.apache.royale.jewel.beads.models.FormItemModel.base(this, 'constructor');
};
goog.inherits(org.apache.royale.jewel.beads.models.FormItemModel, org.apache.royale.jewel.beads.models.TextModel);


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


/**
 * @private
 * @type {boolean}
 */
org.apache.royale.jewel.beads.models.FormItemModel.prototype.org_apache_royale_jewel_beads_models_FormItemModel__required;


/**
 * @private
 * @type {string}
 */
org.apache.royale.jewel.beads.models.FormItemModel.prototype.org_apache_royale_jewel_beads_models_FormItemModel__labelAlign;


org.apache.royale.jewel.beads.models.FormItemModel.prototype.get__required = function() {
  return this.org_apache_royale_jewel_beads_models_FormItemModel__required;
};


org.apache.royale.jewel.beads.models.FormItemModel.prototype.set__required = function(value) {
  if (value == null)
    value = "";
  if (value != this.org_apache_royale_jewel_beads_models_FormItemModel__required) {
    this.org_apache_royale_jewel_beads_models_FormItemModel__required = value;
    this.dispatchEvent(new org.apache.royale.events.Event("requiredChange"));
  }
};


org.apache.royale.jewel.beads.models.FormItemModel.prototype.get__labelAlign = function() {
  return this.org_apache_royale_jewel_beads_models_FormItemModel__labelAlign;
};


org.apache.royale.jewel.beads.models.FormItemModel.prototype.set__labelAlign = function(value) {
  this.org_apache_royale_jewel_beads_models_FormItemModel__labelAlign = value;
};


Object.defineProperties(org.apache.royale.jewel.beads.models.FormItemModel.prototype, /** @lends {org.apache.royale.jewel.beads.models.FormItemModel.prototype} */ {
/**
  * @export
  * @type {boolean} */
required: {
get: org.apache.royale.jewel.beads.models.FormItemModel.prototype.get__required,
set: org.apache.royale.jewel.beads.models.FormItemModel.prototype.set__required},
/**
  * @export
  * @type {string} */
labelAlign: {
get: org.apache.royale.jewel.beads.models.FormItemModel.prototype.get__labelAlign,
set: org.apache.royale.jewel.beads.models.FormItemModel.prototype.set__labelAlign}}
);


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



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.jewel.beads.models.FormItemModel.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {return {};},
    accessors: function () {
      return {
        'required': { type: 'Boolean', access: 'readwrite', declaredBy: 'org.apache.royale.jewel.beads.models.FormItemModel', metadata: function () { return [ { name: 'Bindable', args: [ { key: '', value: 'requiredChange' } ] } ]; }},
        'labelAlign': { type: 'String', access: 'readwrite', declaredBy: 'org.apache.royale.jewel.beads.models.FormItemModel'}
      };
    },
    methods: function () {
      return {
        'FormItemModel': { type: '', declaredBy: 'org.apache.royale.jewel.beads.models.FormItemModel'}
      };
    },
    metadata: function () { return [ { name: 'Bindable' } ]; }
  };
};