aboutsummaryrefslogtreecommitdiff
path: root/js/components/treeview/branch.reel/branch.html
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-02-08 13:14:29 -0800
committerJose Antonio Marquez2012-02-08 13:14:29 -0800
commit9b45b897949bf934c8bf2c90ee2ff78f8713cb12 (patch)
treee7c276a3934c823cab894f46ee7dc5d3eda9ca83 /js/components/treeview/branch.reel/branch.html
parentaa01c1210f3a4d9fd55a771b9de2c58ee3fa4bb6 (diff)
parent10cdeb52403f16d5d4be43a516e8cdfbc866a2a2 (diff)
downloadninja-9b45b897949bf934c8bf2c90ee2ff78f8713cb12.tar.gz
Merge branch 'refs/heads/NinjaInternal' into Color
Conflicts: js/controllers/elements/shapes-controller.js js/data/pi/pi-data.js js/panels/properties/content.reel/content.js
Diffstat (limited to 'js/components/treeview/branch.reel/branch.html')
-rw-r--r--js/components/treeview/branch.reel/branch.html147
1 files changed, 147 insertions, 0 deletions
diff --git a/js/components/treeview/branch.reel/branch.html b/js/components/treeview/branch.reel/branch.html
new file mode 100644
index 00000000..b44a54c5
--- /dev/null
+++ b/js/components/treeview/branch.reel/branch.html
@@ -0,0 +1,147 @@
1<!DOCTYPE html>
2<!-- <copyright>
3This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
4No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
5(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
6</copyright> -->
7<html lang="en">
8<head>
9 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
10 <link href="branch.css" rel="stylesheet" type="text/css" />
11 <script type="text/montage-serialization">
12 {
13 "owner": {
14 "module" : "js/components/treeview/branch.reel",
15 "name" : "Branch",
16 "properties" : {
17 "element" : {"#" : "branch"},
18 "label" : { "@" : "textComponent" },
19 "branchList": {"#" : "branchList"},
20 "arrayController": {"@": "arrayController" },
21 "repetition": {"@": "repetition"},
22 "leafComponent": {"@": "leaf"},
23 "branchComponent": {"@": "branch"}
24 }
25 },
26
27 "textComponent" : {
28 "module" : "montage/ui/dynamic-text.reel",
29 "name" : "DynamicText",
30 "properties" : {
31 "element" : { "#" : "label" }
32 },
33 "bindings" : {
34 "value" : {
35 "boundObject" : {"@": "owner"},
36 "boundObjectPropertyPath": "_labelText",
37 "oneway": true
38 }
39 }
40 },
41
42 "arrayController": {
43 "module": "montage/ui/controller/array-controller",
44 "name": "ArrayController",
45 "bindings": {
46 "content": {
47 "boundObject": {"@": "owner"},
48 "boundObjectPropertyPath": "childNodes"
49 }
50 }
51 },
52
53 "leaf": {
54 "module": "js/components/treeview/leaf.reel",
55 "name": "Leaf",
56 "bindings": {
57 "sourceObject": {
58 "boundObject": {"@": "repetition" },
59 "boundObjectPropertyPath": "objectAtCurrentIteration",
60 "oneway": true
61 },
62 "labelKey" : {
63 "boundObject": {"@": "owner" },
64 "boundObjectPropertyPath": "labelKey",
65 "oneway": true
66 },
67 "branchKey" : {
68 "boundObject": {"@": "owner" },
69 "boundObjectPropertyPath": "branchKey",
70 "oneway": true
71 },
72 "treeView" : {
73 "boundObject": {"@": "owner" },
74 "boundObjectPropertyPath": "treeView",
75 "oneway": true
76 }
77 }
78 },
79
80 "branch": {
81 "module": "js/components/treeview/branch.reel",
82 "name": "Branch",
83 "bindings": {
84 "sourceObject": {
85 "boundObject": {"@": "repetition" },
86 "boundObjectPropertyPath": "objectAtCurrentIteration",
87 "oneway": true
88 },
89 "labelKey" : {
90 "boundObject": {"@": "owner" },
91 "boundObjectPropertyPath": "labelKey",
92 "oneway": true
93 },
94 "branchKey" : {
95 "boundObject": {"@": "owner" },
96 "boundObjectPropertyPath": "branchKey",
97 "oneway": true
98 },
99 "treeView" : {
100 "boundObject": {"@": "owner" },
101 "boundObjectPropertyPath": "treeView",
102 "oneway": true
103 }
104 }
105 },
106
107 "repetition": {
108 "module": "montage/ui/repetition.reel",
109 "name": "Repetition",
110 "properties": {
111 "element": { "#": "branchList" },
112 "contentController": {"@": "arrayController" }
113 }
114 },
115
116 "substitution": {
117 "module": "montage/ui/substitution.reel",
118 "name": "Substitution",
119 "properties": {
120 "element": {"#": "treeItem"},
121 "switchComponents": {
122 "leaf": {"@": "leaf"},
123 "branch": {"@": "branch"}
124
125 }
126 },
127 "bindings": {
128 "switchValue": {
129 "boundObject": {"@": "repetition"},
130 "boundObjectPropertyPath": "objectAtCurrentIteration.treeNodeType",
131 "oneway": true
132 }
133 }
134 }
135 }
136 </script>
137</head>
138<body>
139 <div id="branch" class="branch">
140 <span id="label" class="branch-label"></span>
141
142 <ul id="branchList">
143 <li id="treeItem"></li>
144 </ul>
145 </div>
146</body>
147</html> \ No newline at end of file