aboutsummaryrefslogtreecommitdiff
path: root/js/panels/css-panel/style.reel/style.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/css-panel/style.reel/style.js')
-rw-r--r--js/panels/css-panel/style.reel/style.js40
1 files changed, 40 insertions, 0 deletions
diff --git a/js/panels/css-panel/style.reel/style.js b/js/panels/css-panel/style.reel/style.js
new file mode 100644
index 00000000..6860a97f
--- /dev/null
+++ b/js/panels/css-panel/style.reel/style.js
@@ -0,0 +1,40 @@
1/* <copyright>
2 This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3 No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
4 (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5 </copyright> */
6
7var Montage = require("montage/core/core").Montage,
8 TreeNode = require("js/components/treeview/tree-node").TreeNode;
9
10exports.Style = Montage.create(TreeNode, {
11 propertyText : {
12 value: "property"
13 },
14 valueText : {
15 value: "value"
16 },
17 handleSourceObjectSet: {
18 value: function() {
19 //debugger;
20 this.propertyText = this.sourceObject.name;
21 this.valueText = this.sourceObject.value;
22 }
23 },
24 templateDidLoad : {
25 value: function() {
26 console.log("style - template did load");
27 }
28 },
29 draw : {
30 value : function() {
31 //debugger;
32 if(this.sourceObject[this.labelKey]) {
33 this._labelText = this.sourceObject[this.labelKey];
34 } else {
35 console.log("Label key unknown");
36 }
37
38 }
39 }
40}); \ No newline at end of file