/**
 * * Licensed under the Apache License, Version 2.0 (the 'License');
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an 'AS IS' BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Generated by Apache Flex Cross-Compiler from org/apache/flex/mobile/chrome/ToolBar.as
 * org.apache.flex.mobile.chrome.ToolBar
 *
 * @fileoverview
 *
 * @suppress {checkTypes|accessControls}
 */

goog.provide('org.apache.flex.mobile.chrome.ToolBar');

goog.require('org.apache.flex.events.Event');
goog.require('org.apache.flex.html.Container');
goog.require('org.apache.flex.core.IBeadLayout');
goog.require('org.apache.flex.core.IChrome');
goog.require('org.apache.flex.utils.Language');



/**
 * @constructor
 * @extends {org.apache.flex.html.Container}
 * @implements {org.apache.flex.core.IChrome}
 */
org.apache.flex.mobile.chrome.ToolBar = function() {
  org.apache.flex.mobile.chrome.ToolBar.base(this, 'constructor');
  this.className = "ToolBar";
};
goog.inherits(org.apache.flex.mobile.chrome.ToolBar, org.apache.flex.html.Container);


/**
 * @private
 * @type {Array}
 */
org.apache.flex.mobile.chrome.ToolBar.prototype._controls;


/**
 * @asprivate
 * @export
 * @override
 */
org.apache.flex.mobile.chrome.ToolBar.prototype.addedToParent = function() {
  org.apache.flex.mobile.chrome.ToolBar.base(this, 'addedToParent');
  var /** @type {org.apache.flex.core.IBeadLayout} */ layout = org.apache.flex.utils.Language.as(this.getBeadByType(org.apache.flex.core.IBeadLayout), org.apache.flex.core.IBeadLayout);
  for (var /** @type {number} */ i = 0; i < this._controls.length; i++) {
    this.addElement(this._controls[i], false);
  }
  this.dispatchEvent(new org.apache.flex.events.Event("layoutNeeded"));
};


Object.defineProperties(org.apache.flex.mobile.chrome.ToolBar.prototype, /** @lends {org.apache.flex.mobile.chrome.ToolBar.prototype} */ {
/** @export */
controls: {
get: /** @this {org.apache.flex.mobile.chrome.ToolBar} */ function() {
  return this._controls;
},
set: /** @this {org.apache.flex.mobile.chrome.ToolBar} */ function(value) {
  this._controls = value;
}}}
);


/**
 * Metadata
 *
 * @type {Object.<string, Array.<Object>>}
 */
org.apache.flex.mobile.chrome.ToolBar.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'ToolBar', qName: 'org.apache.flex.mobile.chrome.ToolBar'}], interfaces: [org.apache.flex.core.IChrome] };


/**
 * Prevent renaming of class. Needed for reflection.
 */
goog.exportSymbol('org.apache.flex.mobile.chrome.ToolBar', org.apache.flex.mobile.chrome.ToolBar);



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.flex.mobile.chrome.ToolBar.prototype.FLEXJS_REFLECTION_INFO = function () {
  return {
    variables: function () {
      return {
      };
    },
    accessors: function () {
      return {
        'controls': { type: 'Array', declaredBy: 'org.apache.flex.mobile.chrome.ToolBar'}
      };
    },
    methods: function () {
      return {
        'ToolBar': { type: '', declaredBy: 'org.apache.flex.mobile.chrome.ToolBar'},
        'addedToParent': { type: 'void', declaredBy: 'org.apache.flex.mobile.chrome.ToolBar'}
      };
    }
  };
};