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

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

goog.require('org.apache.royale.core.WrappedHTMLElement');
goog.require('org.apache.royale.html.Group');
goog.require('org.apache.royale.html.util.addElementToWrapper');



/**
 *  Constructor.
 *
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.0
 * @constructor
 * @extends {org.apache.royale.html.Group}
 */
org.apache.royale.html.Form = function() {
  org.apache.royale.html.Form.base(this, 'constructor');
};
goog.inherits(org.apache.royale.html.Form, org.apache.royale.html.Group);


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


/**
 * @royaleignorecoercion org.apache.royale.core.WrappedHTMLElement
 * @protected
 * @override
 */
org.apache.royale.html.Form.prototype.createElement = function() {
  return org.apache.royale.html.util.addElementToWrapper(this, 'form');
};


/**
 * @private
 * @type {string}
 */
org.apache.royale.html.Form.prototype.org_apache_royale_html_Form__action = "#";


org.apache.royale.html.Form.prototype.get__action = function() {
  return this.org_apache_royale_html_Form__action;
};


org.apache.royale.html.Form.prototype.set__action = function(value) {
  this.org_apache_royale_html_Form__action = value;
  this.element.setAttribute('action', this.action);
  this.dispatchEvent('actionChange');
};


Object.defineProperties(org.apache.royale.html.Form.prototype, /** @lends {org.apache.royale.html.Form.prototype} */ {
/**
  * @export
  * @type {string} */
action: {
get: org.apache.royale.html.Form.prototype.get__action,
set: org.apache.royale.html.Form.prototype.set__action}}
);


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



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