r20517: re-add cleaned-up webapps
[kai/samba.git] / webapps / qooxdoo-0.6.3-sdk / frontend / framework / source / class / qx / ui / pageview / buttonview / Pane.js
1 /* ************************************************************************
2
3    qooxdoo - the new era of web development
4
5    http://qooxdoo.org
6
7    Copyright:
8      2004-2006 by 1&1 Internet AG, Germany, http://www.1and1.org
9
10    License:
11      LGPL 2.1: http://www.gnu.org/licenses/lgpl.html
12
13    Authors:
14      * Sebastian Werner (wpbasti)
15      * Andreas Ecker (ecker)
16
17 ************************************************************************ */
18
19 /* ************************************************************************
20
21 #module(ui_buttonview)
22
23 ************************************************************************ */
24
25 qx.OO.defineClass("qx.ui.pageview.buttonview.Pane", qx.ui.pageview.AbstractPane,
26 function() {
27   qx.ui.pageview.AbstractPane.call(this);
28 });
29
30 qx.OO.changeProperty({ name : "appearance", type : "string", defaultValue : "bar-view-pane" });
31
32
33
34
35
36
37
38 /*
39 ---------------------------------------------------------------------------
40   APPEARANCE ADDITIONS
41 ---------------------------------------------------------------------------
42 */
43
44 qx.Proto._applyStateAppearance = function()
45 {
46   var vPos = this.getParent().getBarPosition();
47
48   this._states.barHorizontal = vPos === "top" || vPos === "bottom";
49
50   qx.ui.pageview.AbstractButton.prototype._applyStateAppearance.call(this);
51 }