OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of $LIBRARYNAME; | 5 part of $LIBRARYNAME; |
6 | 6 |
7 // TODO(jacobr): use _Lists.dart to remove some of the duplicated | 7 // TODO(jacobr): use _Lists.dart to remove some of the duplicated |
8 // functionality. | 8 // functionality. |
9 class _ChildrenElementList extends ListBase<Element> { | 9 class _ChildrenElementList extends ListBase<Element> { |
10 // Raw Element. | 10 // Raw Element. |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 } | 189 } |
190 | 190 |
191 void removeWhere(bool test(Element element)) { | 191 void removeWhere(bool test(Element element)) { |
192 _childElements.removeWhere(test); | 192 _childElements.removeWhere(test); |
193 } | 193 } |
194 | 194 |
195 void retainWhere(bool test(Element element)) { | 195 void retainWhere(bool test(Element element)) { |
196 _childElements.retainWhere(test); | 196 _childElements.retainWhere(test); |
197 } | 197 } |
198 | 198 |
199 void removeRange(int start, int rangeLength) { | 199 void removeRange(int start, int end) { |
200 throw new UnimplementedError(); | 200 throw new UnimplementedError(); |
201 } | 201 } |
202 | 202 |
203 void insertRange(int start, int rangeLength, [initialValue = null]) { | 203 void insertRange(int start, int rangeLength, [initialValue = null]) { |
204 throw new UnimplementedError(); | 204 throw new UnimplementedError(); |
205 } | 205 } |
206 | 206 |
207 Iterable getRange(int start, int end) { | 207 Iterable getRange(int start, int end) { |
208 throw new UnimplementedError(); | 208 throw new UnimplementedError(); |
209 } | 209 } |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 } | 322 } |
323 | 323 |
324 void sort([int compare(Element a, Element b)]) { | 324 void sort([int compare(Element a, Element b)]) { |
325 throw new UnsupportedError(''); | 325 throw new UnsupportedError(''); |
326 } | 326 } |
327 | 327 |
328 void setRange(int start, int end, List from, [int startFrom = 0]) { | 328 void setRange(int start, int end, List from, [int startFrom = 0]) { |
329 throw new UnsupportedError(''); | 329 throw new UnsupportedError(''); |
330 } | 330 } |
331 | 331 |
332 void removeRange(int start, int rangeLength) { | 332 void removeRange(int start, int end) { |
333 throw new UnsupportedError(''); | 333 throw new UnsupportedError(''); |
334 } | 334 } |
335 | 335 |
336 void insertRange(int start, int rangeLength, [initialValue = null]) { | 336 void insertRange(int start, int rangeLength, [initialValue = null]) { |
337 throw new UnsupportedError(''); | 337 throw new UnsupportedError(''); |
338 } | 338 } |
339 | 339 |
340 List<Element> sublist(int start, [int end]) { | 340 List<Element> sublist(int start, [int end]) { |
341 return new _FrozenElementList._wrap(_nodeList.sublist(start, end)); | 341 return new _FrozenElementList._wrap(_nodeList.sublist(start, end)); |
342 } | 342 } |
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
992 const ScrollAlignment._internal(this._value); | 992 const ScrollAlignment._internal(this._value); |
993 toString() => 'ScrollAlignment.$_value'; | 993 toString() => 'ScrollAlignment.$_value'; |
994 | 994 |
995 /// Attempt to align the element to the top of the scrollable area. | 995 /// Attempt to align the element to the top of the scrollable area. |
996 static const TOP = const ScrollAlignment._internal('TOP'); | 996 static const TOP = const ScrollAlignment._internal('TOP'); |
997 /// Attempt to center the element in the scrollable area. | 997 /// Attempt to center the element in the scrollable area. |
998 static const CENTER = const ScrollAlignment._internal('CENTER'); | 998 static const CENTER = const ScrollAlignment._internal('CENTER'); |
999 /// Attempt to align the element to the bottom of the scrollable area. | 999 /// Attempt to align the element to the bottom of the scrollable area. |
1000 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); | 1000 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); |
1001 } | 1001 } |
OLD | NEW |