+++ /dev/null
-qx.Class.define("org.argeo.security.ria.components.UserEditorPrefPane", {\r
-\r
- extend : org.argeo.security.ria.components.UserEditor,\r
- implement : [org.argeo.ria.components.IPreferencePane],\r
- \r
- construct : function(){\r
- this.base(arguments);\r
- this.setSelfEdition(true);\r
- this.initGUI(); \r
- this.basicGB.setVisibility("excluded");\r
- var saveButton = new qx.ui.form.Button("Save", "org/argeo/security/ria/document-save.png");\r
- saveButton.addListener("execute", this.saveUser, this);\r
- this.buttonGB.add(saveButton);\r
- var authService = org.argeo.ria.session.AuthService.getInstance();\r
- this.loadUserData(authService.getUser());\r
- authService.addListener("changeUser", function(){\r
- if(authService.getUser() == "anonymous"){\r
- this.clearUserData();\r
- }else{\r
- this.loadUserData(authService.getUser());\r
- }\r
- }, this);\r
- },\r
- \r
- members : {\r
- // IPrefPane Implementation\r
- getPrefPane : function(){ \r
- return new qx.ui.container.Scroll(this);\r
- },\r
- \r
- getPrefLabel : function(){\r
- return "User data";\r
- },\r
- \r
- getPrefIcon : function(){\r
- return "org/argeo/security/ria/preferences-users.png";\r
- } \r
- }\r
-});
\ No newline at end of file