CallBackery

 view release on metacpan or  search on metacpan

lib/CallBackery/qooxdoo/callbackery/source/class/callbackery/ui/Desktop.js  view on Meta::CPAN

/* ************************************************************************
   Copyright: 2011 OETIKER+PARTNER AG
   License:   GPLv3 or later
   Authors:   Tobi Oetiker <tobi@oetiker.ch>
   Utf8Check: äöü
************************************************************************ */
/**
 * Build the desktop. This is a singleton. So that the desktop
 * object and with it the treeView and the searchView are universaly accessible
 */
qx.Class.define("callbackery.ui.Desktop", {
    extend : qx.ui.container.Composite,
    type : 'singleton',

    construct : function() {
        this.base(arguments,new qx.ui.layout.VBox());
        this.set({
            padding: [5,10,0,10],
            alignX: 'center'
        });

        var width = callbackery.data.Config.getInstance().getBaseConfig().max_width;
        if (width){
            this.setMaxWidth(parseInt(width));
        }
        var app = qx.core.Init.getApplication();
        this.add(app.getHeaderWidget());
        this.add(callbackery.ui.TabView.getInstance(),{ flex: 1})
        this.add(app.getFooterWidget());
    }
});



( run in 0.497 second using v1.01-cache-2.11-cpan-39bf76dae61 )