]> 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/components/UserEditorPrefPane.js
395a67eed4e1a1ca7fc864c1c7c75fe5bde9ad00
[lgpl/argeo-commons.git] / security / runtime / org.argeo.security.ria / src / argeo-ria-lib / security / class / org / argeo / security / ria / components / UserEditorPrefPane.js
1 qx.Class.define("org.argeo.security.ria.components.UserEditorPrefPane", {
2
3 extend : org.argeo.security.ria.components.UserEditor,
4 implement : [org.argeo.ria.components.IPreferencePane],
5
6 construct : function(){
7 this.base(arguments);
8 this.initGUI();
9 this.basicGB.setVisibility("excluded");
10 var saveButton = new qx.ui.form.Button("Save", "org.argeo.security.ria/document-save.png");
11 saveButton.addListener("execute", this.saveUser, this);
12 this.buttonGB.add(saveButton);
13 this.loadUserData(org.argeo.ria.session.AuthService.getInstance().getUser());
14 },
15
16 members : {
17 // IPrefPane Implementation
18 getPrefPane : function(){
19 return new qx.ui.container.Scroll(this);
20 },
21
22 getPrefLabel : function(){
23 return "User data";
24 },
25
26 getPrefIcon : function(){
27 return "org.argeo.security.ria/preferences-users.png";
28 }
29 }
30 });