]>
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/CoworkerNatureImpl.js
1 qx
.Class
.define("org.argeo.security.ria.components.CoworkerNatureImpl", {
2 extend
: org
.argeo
.security
.ria
.components
.SimpleUserNatureImpl
,
4 NATURE_TYPE
: "org.argeo.security.nature.CoworkerNature",
5 NATURE_LABEL
: "Co-Worker",
9 construct : function(){
12 type
:"org.argeo.security.nature.CoworkerNature"
17 _createGui : function(){
18 var grid
= new qx
.ui
.layout
.Grid(5,5);
20 grid
.setColumnFlex(0,1);
21 grid
.setColumnAlign(0,"right", "middle");
22 grid
.setColumnFlex(1,3);
24 grid
.setRowAlign(0, "right", "top");
25 this.descField
= new qx
.ui
.form
.TextArea();
26 this.mobileField
= new qx
.ui
.form
.TextField();
27 this.phoneField
= new qx
.ui
.form
.TextField();
29 var labels
= ["Description", "Mobile Phone", "Home Phone"];
31 "description" : this.descField
,
32 "mobile": this.mobileField
,
33 "telephoneNumber" : this.phoneField
36 for(var i
=0;i
<labels
.length
;i
++){
37 this.add(new qx
.ui
.basic
.Label(labels
[i
]), {row
:i
,column
:0});
40 for(var key
in this.fields
){
41 this.fields
[key
].addListener("changeValue", function(e
){this.fireEvent("modified");}, this);
42 this.add(this.fields
[key
], {row
:j
,column
:1});