]> git.argeo.org Git - gpl/argeo-slc.git/blob - server/org.argeo.slc.ria/src/argeo-ria-lib/jcr/class/org/argeo/jcr/ria/model/Property.js
Refresh/remove a query
[gpl/argeo-slc.git] / server / org.argeo.slc.ria / src / argeo-ria-lib / jcr / class / org / argeo / jcr / ria / model / Property.js
1 qx.Class.define("org.argeo.jcr.ria.model.Property", {
2 extend : org.argeo.jcr.ria.model.AbstractItem,
3
4 properties : {
5 node : {
6 refine : true,
7 init : false
8 },
9 value : {
10 event : "changeValue"
11 },
12 local : {
13 check : "Boolean",
14 init : false
15 }
16 },
17
18 construct : function(propertyName){
19 this.base(arguments);
20 this.setName(propertyName);
21 },
22
23 members : {
24 remove : function(){
25 this.getParent().removeProperty(this.getName());
26 },
27
28 fromDomElement : function(domElement){
29 if(domElement.nodeType != 2) return;
30 this.setValue(domElement.nodeValue);
31 },
32 toXmlString : function(){
33 if(this.isLocal()) return "";
34 return this.getName()+"="+'"'+this.getValue()+'"';
35 }
36
37 }
38 });