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

goog.provide('org.apache.royale.jewel.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.util.addElementToWrapper');
goog.require('org.apache.royale.jewel.Group');
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.9.4
 * @constructor
 * @extends {org.apache.royale.jewel.Group}
 * @implements {org.apache.royale.core.IChrome}
 */
org.apache.royale.jewel.TitleBar = function() {
  org.apache.royale.jewel.TitleBar.base(this, 'constructor');
  this.typeNames = "jewel titlebar";
};
goog.inherits(org.apache.royale.jewel.TitleBar, org.apache.royale.jewel.Group);


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


/**
 * @asprivate
 * @export
 * @override
 */
org.apache.royale.jewel.TitleBar.prototype.addedToParent = function() {
  org.apache.royale.jewel.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.jewel.TitleBar.prototype.createElement = function() {
  return org.apache.royale.html.util.addElementToWrapper(this, 'div');
};


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


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


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


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


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


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


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


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



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