]>
git.argeo.org Git - gpl/argeo-slc.git/blob - server/org.argeo.slc.ria/src/argeo-ria-lib/slc-web/class/org/argeo/slc/web/Perspective.js
2 * IPerspective Implementation : Horizontal split pane defining two panes, "list" and "applet".
5 /* ************************************************************************
7 #asset(argeo-ria-lib/slc/resource/org.argeo.slc.ria/*)
9 ************************************************************************ */
10 qx
.Class
.define("org.argeo.slc.web.Perspective",
12 extend
: qx
.core
.Object
,
13 implement
: [org
.argeo
.ria
.components
.IPerspective
],
15 construct : function(){
17 org
.argeo
.ria
.util
.Element
.DEFAULT_NAMESPACE_MAP
= {slc
:"http://argeo.org/projects/slc/schemas"};
21 LABEL
: "Test Results",
22 ICON
: "org.argeo.slc.ria/office-chart.png"
28 initViewPanes : function(viewsManager
){
30 this._splitPane
= new qx
.ui
.splitpane
.Pane("horizontal");
31 var topLeft
= new org
.argeo
.ria
.components
.ViewPane("list", "Collection", {
32 orientation
: "horizontal",
35 topLeft
.set({width
:300});
36 viewsManager
.registerViewPane(topLeft
);
38 this._splitPane
.add(topLeft
, 1);
39 var rightPane
= new org
.argeo
.ria
.components
.TabbedViewPane("applet", "Test Detail");
40 viewsManager
.registerViewPane(rightPane
);
41 this._splitPane
.add(rightPane
, 3);
43 viewsManager
.getViewPanesContainer().add(this._splitPane
, {flex
:1});
47 initViews : function(viewsManager
){
48 var view
= viewsManager
.initIViewClass(org
.argeo
.slc
.web
.TestList
, "list");
50 view
.loadCollections();
54 remove : function(viewsManager
){
55 viewsManager
.getViewPanesContainer().remove(this._splitPane
);