aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage/ui/list.reel
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/montage/ui/list.reel')
-rwxr-xr-xnode_modules/montage/ui/list.reel/list.html56
-rwxr-xr-xnode_modules/montage/ui/list.reel/list.js272
2 files changed, 328 insertions, 0 deletions
diff --git a/node_modules/montage/ui/list.reel/list.html b/node_modules/montage/ui/list.reel/list.html
new file mode 100755
index 00000000..2428bded
--- /dev/null
+++ b/node_modules/montage/ui/list.reel/list.html
@@ -0,0 +1,56 @@
1<!DOCTYPE html>
2<!-- <copyright>
3 This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
4 No 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>
8 <head>
9 <title></title>
10 <script type="text/montage-serialization">
11{
12 "repetition1": {
13 "module": "montage/ui/repetition.reel",
14 "name": "Repetition",
15 "properties": {
16 "element": {
17 "#": "repetition"
18 }
19 }
20 },
21 "scrollview1": {
22 "module": "montage/ui/scrollview.reel",
23 "name": "Scrollview",
24 "properties": {
25 "element": {
26 "#": "scrollView"
27 }
28 }
29 },
30 "owner": {
31 "module": "montage/ui/list.reel",
32 "name": "List",
33 "properties": {
34 "element": {
35 "#": "EA5D3E95-BA4E-4696-BBBE-B4DE2F6ED6C9"
36 },
37 "_repetition": {
38 "@": "repetition1"
39 },
40 "_scrollview": {
41 "@": "scrollview1"
42 }
43 }
44 }
45}
46 </script>
47
48</head>
49<body>
50 <div id="EA5D3E95-BA4E-4696-BBBE-B4DE2F6ED6C9">
51 <div id="scrollView" class="montage-list-scrollView">
52 <div id="repetition"></div>
53 </div>
54 </div>
55</body>
56</html>
diff --git a/node_modules/montage/ui/list.reel/list.js b/node_modules/montage/ui/list.reel/list.js
new file mode 100755
index 00000000..2af99bf4
--- /dev/null
+++ b/node_modules/montage/ui/list.reel/list.js
@@ -0,0 +1,272 @@
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/**
7 @module "montage/ui/list.reel"
8 @requires montage/core/core
9 @requires montage/ui/component
10*/
11var Montage = require("montage").Montage,
12 Component = require("ui/component").Component;
13/**
14 @class module:"montage/ui/list.reel".List
15 @extends module:montage/ui/component.Component
16 */
17var List = exports.List = Montage.create(Component,/** @lends module:"montage/ui/list.reel".List# */ {
18/**
19 Description TODO
20 @private
21*/
22 _repetition: {
23 enumerable: false,
24 value: null
25 },
26/**
27 Description TODO
28 @private
29*/
30 _scrollview: {
31 enumerable: false,
32 value: null
33 },
34/**
35 Description TODO
36 @private
37*/
38 _orphanedChildren: {
39 enumerable: false,
40 value: null
41 },
42/**
43 Description TODO
44 @type {Property}
45 @default null
46 */
47 delegate: {
48 enumerable: false,
49 value: null
50 },
51
52 //TODO make some convenient forwarding property or something, this is a little tedious
53
54 // Properties to forward to the scrollview
55 /**
56 Description TODO
57 @private
58*/
59 _axisForScrollview: {
60 enumerable: false,
61 value: null
62 },
63/**
64 Description TODO
65 @type {Function}
66 @default null
67 */
68 axis: {
69 enumerable: false,
70 get: function() {
71 if (this._scrollview) {
72 return this._scrollview.axis;
73 } else {
74 return this._axisForScrollview;
75 }
76 },
77 set: function(value) {
78 if (this._scrollview) {
79 this._scrollview.axis = value;
80 } else {
81 this._axisForScrollview = value;
82 }
83 }
84 },
85
86 //Properties to forward to the repetition
87/**
88 Description TODO
89 @private
90*/
91 _objectsForRepetition: {
92 enumerable: false,
93 value: null
94 },
95/**
96 Description TODO
97 @type {Function}
98 @default null
99 */
100 objects: {
101 enumerable: false,
102 get: function() {
103 if (this._repetition) {
104 return this._repetition.objects;
105 } else {
106 return this._objectsForRepetition;
107 }
108 },
109 set: function(value) {
110 if (this._repetition) {
111 this._repetition.objects = value;
112 } else {
113 this._objectsForRepetition = value;
114 }
115 }
116 },
117/**
118 Description TODO
119 @private
120*/
121 _contentControllerForRepetition: {
122 enumerable: false,
123 value: null
124 },
125/**
126 Description TODO
127 @type {Function}
128 @default null
129 */
130 contentController: {
131 enumerable: false,
132 get: function() {
133 if (this._repetition) {
134 return this._repetition.contentController;
135 } else {
136 return this._contentControllerForRepetition;
137 }
138 },
139 set: function(value) {
140 if (this._repetition) {
141 this._repetition.contentController = value;
142 } else {
143 this._contentControllerForRepetition = value;
144 }
145 }
146 },
147/**
148 Description TODO
149 @private
150*/
151 _isSelectionEnabledForRepetition: {
152 enumerable: false,
153 value: null
154 },
155/**
156 Description TODO
157 @type {Function}
158 @default null
159 */
160 isSelectionEnabled: {
161 enumerable: false,
162 get: function() {
163 if (this._repetition) {
164 return this._repetition.isSelectionEnabled;
165 } else {
166 return this._isSelectionEnabledForRepetition;
167 }
168 },
169 set: function(value) {
170 if (this._repetition) {
171 this._repetition.isSelectionEnabled = value;
172 } else {
173 this._isSelectionEnabledForRepetition = value;
174 }
175 }
176 },
177
178 // Initialization
179