uidesigner/com.nokia.sdt.component.symbian.test/data/scripts/propwriter1.js
author timkelly
Wed, 25 Mar 2009 11:55:19 -0500
changeset 8 f330c1e8a4f3
parent 2 d760517a8095
permissions -rw-r--r--
commit the merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
cawthron
parents:
diff changeset
     1
cawthron
parents:
diff changeset
     2
// this test uses only globals
cawthron
parents:
diff changeset
     3
cawthron
parents:
diff changeset
     4
function Test() {
cawthron
parents:
diff changeset
     5
}
cawthron
parents:
diff changeset
     6
cawthron
parents:
diff changeset
     7
cawthron
parents:
diff changeset
     8
Test.prototype.getName = function() {
cawthron
parents:
diff changeset
     9
	return properties["name"];
cawthron
parents:
diff changeset
    10
}
cawthron
parents:
diff changeset
    11
cawthron
parents:
diff changeset
    12
Test.prototype.setName = function(str) {
cawthron
parents:
diff changeset
    13
	properties["name"] = "_" + str;
cawthron
parents:
diff changeset
    14
}
cawthron
parents:
diff changeset
    15
cawthron
parents:
diff changeset
    16
Test.prototype.getSizeFormatted = function() {
cawthron
parents:
diff changeset
    17
	return properties["size"].x + "," + properties["size"].y;
cawthron
parents:
diff changeset
    18
}
cawthron
parents:
diff changeset
    19
cawthron
parents:
diff changeset
    20
Test.prototype.setSize = function(x,y) {
cawthron
parents:
diff changeset
    21
	properties["size"]["x"] = x;
cawthron
parents:
diff changeset
    22
	properties["size"]["y"] = y;
cawthron
parents:
diff changeset
    23
}