]>
git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc-web/class/org/argeo/slc/web/Perspective.js
2 * IPerspective Implementation : Horizontal split pane defining two panes, "list" and "applet".
4 qx
.Class
.define("org.argeo.slc.web.Perspective",
6 extend
: qx
.core
.Object
,
7 implement
: [org
.argeo
.ria
.components
.IPerspective
],
9 construct : function(){
14 LABEL
: "Test Results",
15 ICON
: "resource/slc/office-chart.png"
21 initViewPanes : function(viewsManager
){
23 this._splitPane
= new qx
.ui
.splitpane
.Pane("horizontal");
24 var topLeft
= new org
.argeo
.ria
.components
.ViewPane("list", "Collection", {
25 orientation
: "horizontal",
28 topLeft
.set({width
:300});
29 viewsManager
.registerViewPane(topLeft
);
31 this._splitPane
.add(topLeft
, 0);
32 var rightPane
= new org
.argeo
.ria
.components
.ViewPane("applet", "Test Detail");
33 viewsManager
.registerViewPane(rightPane
);
34 this._splitPane
.add(rightPane
, 1);
36 viewsManager
.getViewPanesContainer().add(this._splitPane
, {flex
:1});
40 initViews : function(viewsManager
){
41 var view
= viewsManager
.initIViewClass(org
.argeo
.slc
.web
.TestList
, "list");
43 view
.loadCollections();
47 remove : function(viewsManager
){
48 viewsManager
.getViewPaneById("list").empty();
49 viewsManager
.getViewPaneById("applet").empty();
50 viewsManager
.getViewPanesContainer().remove(this._splitPane
);