1 /* ************************************************************************
3 qooxdoo - the new era of web development
8 2004-2006 by 1&1 Internet AG, Germany, http://www.1and1.org
11 LGPL 2.1: http://www.gnu.org/licenses/lgpl.html
14 * Sebastian Werner (wpbasti)
15 * Andreas Ecker (ecker)
17 ************************************************************************ */
19 /* ************************************************************************
23 ************************************************************************ */
25 qx.OO.defineClass("qx.ui.pageview.tabview.TabView", qx.ui.pageview.AbstractPageView,
27 qx.ui.pageview.AbstractPageView.call(this, qx.ui.pageview.tabview.Bar, qx.ui.pageview.tabview.Pane);
35 ---------------------------------------------------------------------------
37 ---------------------------------------------------------------------------
40 qx.OO.changeProperty({ name : "appearance", type : "string", defaultValue : "tab-view" });
42 qx.OO.addProperty({ name : "alignTabsToLeft", type : "boolean", defaultValue : true });
43 qx.OO.addProperty({ name : "placeBarOnTop", type : "boolean", defaultValue : true });
51 ---------------------------------------------------------------------------
53 ---------------------------------------------------------------------------
56 qx.Proto._modifyAlignTabsToLeft = function(propValue, propOldValue, propData)
60 vBar.setHorizontalChildrenAlign(propValue ? "left" : "right");
62 // force re-apply of states for all tabs
63 vBar._addChildrenToStateQueue();
68 qx.Proto._modifyPlaceBarOnTop = function(propValue, propOldValue, propData)
70 // This does not work if we use flexible zones
71 // this.setReverseChildrenOrder(!propValue);
77 vBar.moveSelfToBegin();
82 // force re-apply of states for all tabs
83 vBar._addChildrenToStateQueue();