X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.slc.webapp%2Fsrc%2Fmain%2Fwebapp%2Fargeo-ria-lib%2Fslc%2Fclass%2Forg%2Fargeo%2Fslc%2Fria%2Fexecution%2FValue.js;h=29556d88604e3e284d87c8329bab45c6c1ff5abb;hb=e3ae72208feba2b542520878574d49ac16917573;hp=6ce99a06cc65ab19dcb870bdd413eb6f26d61afc;hpb=66f3671c9a07777edc19d8efdea0e162a68f9838;p=gpl%2Fargeo-slc.git diff --git a/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/Value.js b/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/Value.js index 6ce99a06c..29556d886 100644 --- a/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/Value.js +++ b/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/Value.js @@ -13,22 +13,40 @@ qx.Class.define("org.argeo.slc.ria.execution.Value", { check : "String", init : "" }, + /** + * The type of this value, for the moment "primitive" and "ref" are supported + */ specType : { check : "String", init : "" }, + /** + * Subtype, depending on the "type". + */ specSubType : { check : "String" }, + /** + * Whether it is a parameter or not + */ parameter : { check : "Boolean" }, + /** + * Whether it is frozen on the server, i.e. disabled in the form + */ frozen : { check : "Boolean" }, + /** + * Should not be editable nor seeable, thus hidden + */ hidden : { check : "Boolean" }, + /** + * The real value + */ value : { nullable : true }, @@ -77,6 +95,10 @@ qx.Class.define("org.argeo.slc.ria.execution.Value", { } }, + /** + * Apply the value from the node + * @param xmlNode {Node} Castor representation of this object + */ _applyXmlValue : function(xmlNode){ var xpath; if(this.getSpecType() == "primitive"){ @@ -87,6 +109,10 @@ qx.Class.define("org.argeo.slc.ria.execution.Value", { this.setValue(org.argeo.ria.util.Element.getSingleNodeText(xmlNode, xpath)); }, + /** + * Create an XML Representation of this value + * @return {String} The XML String + */ toXml : function(){ var valueTag = ''+this.getValue()+''; var specAttribute = '';