summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/modules/js
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2011-01-07 04:32:50 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2011-01-07 04:32:50 +0000
commitf80818d3383d9ff4aaa2b1a050a03cc1d7e64100 (patch)
treea6857c25e710a5361c05151f4dc0d491a9a3e104 /sca-cpp/trunk/modules/js
parentbd31568ed93b27e9e3dcc6a484b33808a21f7ad9 (diff)
Minor improvements of the edit module. Refactored HTML pages, added a menu, and login over HTTPS. Improved vertical layout of components a bit and added two sample composites.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1056190 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/modules/js')
-rw-r--r--sca-cpp/trunk/modules/js/htdocs/scdl.js30
1 files changed, 22 insertions, 8 deletions
diff --git a/sca-cpp/trunk/modules/js/htdocs/scdl.js b/sca-cpp/trunk/modules/js/htdocs/scdl.js
index 08cde5ed3d..d0b229cae6 100644
--- a/sca-cpp/trunk/modules/js/htdocs/scdl.js
+++ b/sca-cpp/trunk/modules/js/htdocs/scdl.js
@@ -53,17 +53,31 @@ scdl.promote = function(l) {
};
/**
- * Returns the name of a component, service or reference.
+ * Returns the name of a component, componentType, service or reference.
*/
scdl.name = function(l) {
return namedAttributeValue("'name", l);
};
/**
- * Returns the color of a component.
+ * Returns the color of a component or componentType.
*/
scdl.color = function(l) {
- return namedAttributeValue("'color", l);
+ return namedAttributeValue("'t:color", l);
+};
+
+/**
+ * Returns the x position of a component.
+ */
+scdl.x = function(l) {
+ return namedAttributeValue("'t:x", l);
+};
+
+/**
+ * Returns the y position of a component.
+ */
+scdl.y = function(l) {
+ return namedAttributeValue("'t:y", l);
};
/**
@@ -81,7 +95,7 @@ scdl.implementation = function(l) {
};
/**
- * Returns the type of an implementation.
+ * Returns the type of a component or componentType implementation.
*/
scdl.implementationType = function(l) {
return elementName(l).substring(1);
@@ -98,18 +112,18 @@ scdl.uri = function(l) {
* Returns the align attribute of a service or reference.
*/
scdl.align = function(l) {
- return namedAttributeValue("'align", l);
+ return namedAttributeValue("'t:align", l);
};
/**
- * Returns a list of services in a component.
+ * Returns a list of services in a component or componentType.
*/
scdl.services = function(l) {
return namedElementChildren("'service", l);
};
/**
- * Returns a list of references in a component.
+ * Returns a list of references in a component or componentType.
*/
scdl.references = function(l) {
return namedElementChildren("'reference", l);
@@ -159,7 +173,7 @@ scdl.target = function(l) {
};
/**
- * Returns a list of properties in a component.
+ * Returns a list of properties in a component or componentType.
*/
scdl.properties = function(l) {
return namedElementChildren("'property", l);