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

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

goog.require('org.apache.royale.core.IBeadLayout');
goog.require('org.apache.royale.core.ITitleBarModel');
goog.require('org.apache.royale.core.WrappedHTMLElement');
goog.require('org.apache.royale.html.Group');
goog.require('org.apache.royale.html.util.addElementToWrapper');
goog.require('org.apache.royale.utils.loadBeadFromValuesManager');
goog.require('org.apache.royale.core.IChrome');



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


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


/**
 * @asprivate
 * @export
 * @override
 */
org.apache.royale.html.TitleBar.prototype.addedToParent = function() {
  org.apache.royale.html.TitleBar.superClass_.addedToParent.apply(this);
  org.apache.royale.utils.loadBeadFromValuesManager(org.apache.royale.core.IBeadLayout, "iBeadLayout", this);
};


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


org.apache.royale.html.TitleBar.prototype.get__title = function() {
  return this.model.title;
};


org.apache.royale.html.TitleBar.prototype.set__title = function(value) {
  this.model.title = value;
};


org.apache.royale.html.TitleBar.prototype.get__htmlTitle = function() {
  return this.model.htmlTitle;
};


org.apache.royale.html.TitleBar.prototype.set__htmlTitle = function(value) {
  this.model.htmlTitle = value;
};


org.apache.royale.html.TitleBar.prototype.get__showCloseButton = function() {
  return this.model.showCloseButton;
};


org.apache.royale.html.TitleBar.prototype.set__showCloseButton = function(value) {
  this.model.showCloseButton = value;
};


Object.defineProperties(org.apache.royale.html.TitleBar.prototype, /** @lends {org.apache.royale.html.TitleBar.prototype} */ {
/**
  * @export
  * @type {string} */
title: {
get: org.apache.royale.html.TitleBar.prototype.get__title,
set: org.apache.royale.html.TitleBar.prototype.set__title},
/**
  * @export
  * @type {string} */
htmlTitle: {
get: org.apache.royale.html.TitleBar.prototype.get__htmlTitle,
set: org.apache.royale.html.TitleBar.prototype.set__htmlTitle},
/**
  * @export
  * @type {boolean} */
showCloseButton: {
get: org.apache.royale.html.TitleBar.prototype.get__showCloseButton,
set: org.apache.royale.html.TitleBar.prototype.set__showCloseButton}}
);


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



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.html.TitleBar.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {return {};},
    accessors: function () {
      return {
        'title': { type: 'String', access: 'readwrite', declaredBy: 'org.apache.royale.html.TitleBar'},
        'htmlTitle': { type: 'String', access: 'readwrite', declaredBy: 'org.apache.royale.html.TitleBar'},
        'showCloseButton': { type: 'Boolean', access: 'readwrite', declaredBy: 'org.apache.royale.html.TitleBar'}
      };
    },
    methods: function () {
      return {
        'TitleBar': { type: '', declaredBy: 'org.apache.royale.html.TitleBar'},
        'addedToParent': { type: 'void', declaredBy: 'org.apache.royale.html.TitleBar'}
      };
    }
  };
};