@qooxdoo/framework
Version:
The JS Framework for Coders
75 lines (57 loc) • 1.5 kB
JavaScript
/* ************************************************************************
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 : function()
{
this.base(arguments);
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 : function(child) {
this.fireEvent("changeChildren");
},
// overridden
_afterRemoveChild : function(child) {
this.fireEvent("changeChildren");
}
}
});