author | dadubrow |
Mon, 06 Apr 2009 13:50:37 -0500 | |
branch | RCL_2_0 |
changeset 48 | cfd7fcf6bf2d |
parent 2 | d760517a8095 |
permissions | -rw-r--r-- |
2 | 1 |
|
2 |
function Test() { |
|
3 |
} |
|
4 |
||
5 |
||
6 |
Test.prototype.getName = function(inst) { |
|
7 |
return inst.properties["name"]; |
|
8 |
} |
|
9 |
||
10 |
Test.prototype.setName = function(inst, str) { |
|
11 |
inst.properties["name"] = "_" + str; |
|
12 |
} |
|
13 |
||
14 |
Test.prototype.getSizeFormatted = function(props) { |
|
15 |
return props["size"].x + "," + props["size"].y; |
|
16 |
} |
|
17 |
||
18 |
Test.prototype.setSize = function(props, x,y) { |
|
19 |
props["size"]["x"] = x; |
|
20 |
props["size"]["y"] = y; |
|
21 |
} |