init : true,\r
apply : "_applyEditMode",\r
event : "changeEditMode"\r
+ },\r
+ isNew : {\r
+ init : false,\r
+ check : "Boolean"\r
} \r
},\r
\r
construct : function(){\r
this.base(arguments); \r
+ this.setDataMap({\r
+ type:"org.argeo.security.nature.SimpleUserNature"\r
+ });\r
this._createGui();\r
this.setEditMode(false); \r
},\r
},\r
getData : function(format){\r
var dataMap = this.getDataMap();\r
- for(var key in dataMap){\r
- if(this.fields[key]){\r
- dataMap[key] = this.fields[key].getValue();\r
- }\r
+ for(var key in this.fields){\r
+ dataMap[key] = this.fields[key].getValue();\r
}\r
this.setDataMap(dataMap);\r
return dataMap;\r