uidesigner/com.nokia.sdt.component.symbian.test/data/srcmapping/components/srcmapArrayEndContainer.js
author timkelly
Mon, 21 Sep 2009 10:30:34 -0500
branchRCL_2_2
changeset 502 bbc19f0223db
parent 0 fb279309251b
permissions -rw-r--r--
Manually merge in changeset 501:c39dede7ad37 from default.


function PropertyExtenders() {
}

	// Return instances that may provide extension properties
	// The target instance parameter is the instance to receive the
	// additional properties
PropertyExtenders.prototype.getPropertyExtenders = function(instance, targetInstance) {
	if (targetInstance.parent == instance)
		return [instance];

	return null;
}
	
PropertyExtenders.prototype.getExtensionSetNames = function(instance, targetInstance) {
	if (targetInstance.parent != instance)
		return null;
	var val = instance.properties.type;
	if (val == "EElement1__")
		return [ "element1" ];
	if (val == "EElement_1_")
		return [ "element2" ];
	if (val == "EElement__1")
		return [ "element3" ];
	if (val == "EElement1_1")
		return [ "element1", "element3" ];
	if (val == "EElement11_")
		return [ "element1", "element2" ];
	if (val == "EElement_11")
		return [ "element2", "element3" ];
	if (val == "EElement111")
		return [ "element1", "element2", "element3" ];
	return null;
}