UNPKG

@qooxdoo/framework

Version:

The JS Framework for Coders

66 lines (52 loc) 1.42 kB
/* ************************************************************************ qooxdoo - the new era of web development http://qooxdoo.org Copyright: 2004-2008 1&1 Internet AG, Germany, http://www.1und1.de License: MIT: https://opensource.org/licenses/MIT See the LICENSE file in the project's top-level directory for details. Authors: * Sebastian Werner (wpbasti) * Andreas Ecker (ecker) * Jonathan Weiß (jonathan_rass) ************************************************************************ */ /** * The container used by {@link Part} to insert the buttons. * * @internal */ qx.Class.define("qx.ui.toolbar.PartContainer", { extend: qx.ui.container.Composite, construct() { super(); this._setLayout(new qx.ui.layout.HBox()); }, events: { /** Fired if a child has been added or removed */ changeChildren: "qx.event.type.Event" }, properties: { appearance: { refine: true, init: "toolbar/part/container" }, /** Whether icons, labels, both or none should be shown. */ show: { init: "both", check: ["both", "label", "icon"], inheritable: true, event: "changeShow" } }, members: { // overridden _afterAddChild(child) { this.fireEvent("changeChildren"); }, // overridden _afterRemoveChild(child) { this.fireEvent("changeChildren"); } } });