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

goog.provide('org.apache.royale.html.beads.models.WebBrowserModel');

goog.require('org.apache.royale.core.IStrand');
goog.require('org.apache.royale.events.Event');
goog.require('org.apache.royale.events.EventDispatcher');
goog.require('org.apache.royale.core.IBeadModel');



/**
 *  constructor.
 *
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.0
 * @constructor
 * @extends {org.apache.royale.events.EventDispatcher}
 * @implements {org.apache.royale.core.IBeadModel}
 */
org.apache.royale.html.beads.models.WebBrowserModel = function() {
  org.apache.royale.html.beads.models.WebBrowserModel.base(this, 'constructor');
};
goog.inherits(org.apache.royale.html.beads.models.WebBrowserModel, org.apache.royale.events.EventDispatcher);


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


/**
 * @private
 * @type {org.apache.royale.core.IStrand}
 */
org.apache.royale.html.beads.models.WebBrowserModel.prototype.org_apache_royale_html_beads_models_WebBrowserModel__strand;


/**
 * @private
 * @type {string}
 */
org.apache.royale.html.beads.models.WebBrowserModel.prototype.org_apache_royale_html_beads_models_WebBrowserModel__url;


/**
 * Sets the URL value without dispatching an event.
 *
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.0
 * @export
 * @param {string} value
 */
org.apache.royale.html.beads.models.WebBrowserModel.prototype.setURL = function(value) {
  this.org_apache_royale_html_beads_models_WebBrowserModel__url = value;
};


org.apache.royale.html.beads.models.WebBrowserModel.prototype.set__strand = function(value) {
  this.org_apache_royale_html_beads_models_WebBrowserModel__strand = value;
};


org.apache.royale.html.beads.models.WebBrowserModel.prototype.get__url = function() {
  return this.org_apache_royale_html_beads_models_WebBrowserModel__url;
};


org.apache.royale.html.beads.models.WebBrowserModel.prototype.set__url = function(value) {
  if (value != this.org_apache_royale_html_beads_models_WebBrowserModel__url) {
    this.org_apache_royale_html_beads_models_WebBrowserModel__url = value;
    this.dispatchEvent(new org.apache.royale.events.Event("urlChanged"));
  }
};


Object.defineProperties(org.apache.royale.html.beads.models.WebBrowserModel.prototype, /** @lends {org.apache.royale.html.beads.models.WebBrowserModel.prototype} */ {
/**
  * @export
  * @type {org.apache.royale.core.IStrand} */
strand: {
set: org.apache.royale.html.beads.models.WebBrowserModel.prototype.set__strand},
/**
  * @export
  * @type {string} */
url: {
get: org.apache.royale.html.beads.models.WebBrowserModel.prototype.get__url,
set: org.apache.royale.html.beads.models.WebBrowserModel.prototype.set__url}}
);


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



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.html.beads.models.WebBrowserModel.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {return {};},
    accessors: function () {
      return {
        'strand': { type: 'org.apache.royale.core.IStrand', access: 'writeonly', declaredBy: 'org.apache.royale.html.beads.models.WebBrowserModel'},
        'url': { type: 'String', access: 'readwrite', declaredBy: 'org.apache.royale.html.beads.models.WebBrowserModel'}
      };
    },
    methods: function () {
      return {
        'WebBrowserModel': { type: '', declaredBy: 'org.apache.royale.html.beads.models.WebBrowserModel'},
        'setURL': { type: 'void', declaredBy: 'org.apache.royale.html.beads.models.WebBrowserModel', parameters: function () { return [  { index: 1, type: 'String', optional: false } ]; }}
      };
    }
  };
};