1 /* ************************************************************************
3 qooxdoo - the new era of web development
8 2004-2007 1&1 Internet AG, Germany, http://www.1and1.org
11 LGPL: http://www.gnu.org/licenses/lgpl.html
12 EPL: http://www.eclipse.org/org/documents/epl-v10.php
13 See the LICENSE file in the project's top-level directory for details.
16 * Sebastian Werner (wpbasti)
17 * Andreas Ecker (ecker)
19 ************************************************************************ */
21 /* ************************************************************************
25 ************************************************************************ */
27 qx.OO.defineClass("qx.ui.menu.Separator", qx.ui.layout.CanvasLayout,
30 qx.ui.layout.CanvasLayout.call(this);
32 // Fix IE Styling Issues
33 this.setStyleProperty("fontSize", "0");
34 this.setStyleProperty("lineHeight", "0");
36 // ************************************************************************
38 // ************************************************************************
40 this._line = new qx.ui.basic.Terminator;
41 this._line.setAnonymous(true);
42 this._line.setAppearance("menu-separator-line");
46 // ************************************************************************
48 // ************************************************************************
50 // needed to stop the event, and keep the menu showing
51 this.addEventListener("mousedown", this._onmousedown);
54 qx.OO.changeProperty({ name : "appearance", type : "string", defaultValue : "menu-separator" });
56 qx.Proto.hasIcon = qx.lang.Function.returnFalse;
57 qx.Proto.hasLabel = qx.lang.Function.returnFalse;
58 qx.Proto.hasShortcut = qx.lang.Function.returnFalse;
59 qx.Proto.hasMenu = qx.lang.Function.returnFalse;
61 qx.Proto._onmousedown = function(e) {
65 qx.Proto.dispose = function()
67 if (this.getDisposed()) {
77 return qx.ui.layout.CanvasLayout.prototype.dispose.call(this);