]>
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(){
11 org
.argeo
.ria
.util
.Element
.DEFAULT_NAMESPACE_MAP
= {slc
:"http://argeo.org/projects/slc/schemas"};
15 LABEL
: "Test Results",
16 ICON
: "resource/slc/office-chart.png"
22 initViewPanes : function(viewsManager
){
24 this._splitPane
= new qx
.ui
.splitpane
.Pane("horizontal");
25 var topLeft
= new org
.argeo
.ria
.components
.ViewPane("list", "Collection", {
26 orientation
: "horizontal",
29 topLeft
.set({width
:300});
30 viewsManager
.registerViewPane(topLeft
);
32 this._splitPane
.add(topLeft
, 0);
33 var rightPane
= new org
.argeo
.ria
.components
.ViewPane("applet", "Test Detail");
34 viewsManager
.registerViewPane(rightPane
);
35 this._splitPane
.add(rightPane
, 1);
37 viewsManager
.getViewPanesContainer().add(this._splitPane
, {flex
:1});
41 initViews : function(viewsManager
){
42 var view
= viewsManager
.initIViewClass(org
.argeo
.slc
.web
.TestList
, "list");
44 view
.loadCollections();
48 remove : function(viewsManager
){
49 viewsManager
.getViewPaneById("list").empty();
50 viewsManager
.getViewPaneById("applet").empty();
51 viewsManager
.getViewPanesContainer().remove(this._splitPane
);