]>
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
ae1dbb3eb58f3c2c9158bab47de1f58b8bb9b0db
1 qx
.Class
.define("org.argeo.security.ria.components.UserEditorPrefPane", {
3 extend
: org
.argeo
.security
.ria
.components
.UserEditor
,
4 implement
: [org
.argeo
.ria
.components
.IPreferencePane
],
6 construct : function(){
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 var authService
= org
.argeo
.ria
.session
.AuthService
.getInstance();
14 this.loadUserData(authService
.getUser());
15 authService
.addListener("changeUser", function(){
16 if(authService
.getUser() == "anonymous"){
19 this.loadUserData(authService
.getUser());
25 // IPrefPane Implementation
26 getPrefPane : function(){
27 return new qx
.ui
.container
.Scroll(this);
30 getPrefLabel : function(){
34 getPrefIcon : function(){
35 return "org.argeo.security.ria/preferences-users.png";