]>
git.argeo.org Git - gpl/argeo-slc.git/blob - Perspective.js
93b097dc678a2efab11d683176e6aad0ee4c6632
4 qx
.Class
.define("org.argeo.slc.web.Perspective",
6 extend
: qx
.core
.Object
,
7 implement
: [org
.argeo
.ria
.components
.IPerspective
],
9 construct : function(){
15 initViewPanes : function(viewsManager
){
17 var splitPane
= new qx
.ui
.splitpane
.Pane("horizontal");
18 var topLeft
= new org
.argeo
.ria
.components
.ViewPane("list", "Collection", {
19 orientation
: "horizontal",
22 topLeft
.set({width
:300});
23 viewsManager
.registerViewPane(topLeft
);
25 splitPane
.add(topLeft
, 0);
26 var rightPane
= new org
.argeo
.ria
.components
.ViewPane("applet", "Test Detail");
27 viewsManager
.registerViewPane(rightPane
);
28 splitPane
.add(rightPane
, 1);
30 viewsManager
.getViewPanesContainer().add(splitPane
, {flex
:1});
34 initViews : function(viewsManager
){
35 var view
= viewsManager
.initIViewClass(org
.argeo
.slc
.web
.TestList
, "list");
37 //var command = org.argeo.ria.event.CommandsManager.getInstance().executeCommand("loadtestlist");
38 view
.loadCollections(); // We know it is a TestList!