]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - security/runtime/org.argeo.security.ria/src/argeo-ria-lib/security/class/org/argeo/security/ria/Perspective.js
2 * IPerspective Implementation : Horizontal split pane defining two panes,
5 /* ************************************************************************
7 #asset(resource/org.argeo.security.ria/*)
9 ************************************************************************ */
11 qx
.Class
.define("org.argeo.security.ria.Perspective", {
12 extend
: qx
.core
.Object
,
13 implement
: [org
.argeo
.ria
.components
.IPerspective
],
15 construct : function() {
20 LABEL
: "RIA Security",
21 ICON
: "org.argeo.security.ria/preferences-security.png"
27 initViewPanes : function(viewsManager
) {
29 this._firstSplit
= new qx
.ui
.splitpane
.Pane("horizontal");
30 this._secondSplit
= new qx
.ui
.splitpane
.Pane("horizontal");
31 this._secondSplit
.setDecorator(null);
33 var rolesPane
= new org
.argeo
.ria
.components
.ViewPane("roles", "Roles");
34 viewsManager
.registerViewPane(rolesPane
);
35 var usersPane
= new org
.argeo
.ria
.components
.ViewPane("users", "Users");
36 viewsManager
.registerViewPane(usersPane
);
37 var editorPane
= new org
.argeo
.ria
.components
.TabbedViewPane("editor", "Editor");
38 viewsManager
.registerViewPane(editorPane
);
40 this._firstSplit
.add(rolesPane
, 1);
41 this._firstSplit
.add(this._secondSplit
, 4);
43 this._secondSplit
.add(usersPane
, 3);
44 this._secondSplit
.add(editorPane
, 4);
46 viewsManager
.getViewPanesContainer().add(this._firstSplit
, {flex
: 1});
49 initViews : function(viewsManager
) {
51 var rolesView
= viewsManager
.initIViewClass(org
.argeo
.security
.ria
.RolesApplet
, "roles");
52 var usersView
= viewsManager
.initIViewClass(org
.argeo
.security
.ria
.UsersApplet
, "users");
59 remove : function(viewsManager
) {
60 viewsManager
.getViewPaneById("applet").empty();
61 viewsManager
.getViewPanesContainer().remove(this.splitPane
);