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 class _ChildrenElementList extends ListBase<Element> | 7 class _ChildrenElementList extends ListBase<Element> |
8 implements NodeListWrapper { | 8 implements NodeListWrapper { |
9 // Raw Element. | 9 // Raw Element. |
10 final Element _element; | 10 final Element _element; |
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
789 * `null` if no namespace URI is specified. | 789 * `null` if no namespace URI is specified. |
790 * | 790 * |
791 * ## Other resources | 791 * ## Other resources |
792 * | 792 * |
793 * * [Node.namespaceURI] | 793 * * [Node.namespaceURI] |
794 * (http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-NodeNSname) from W3C. | 794 * (http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-NodeNSname) from W3C. |
795 */ | 795 */ |
796 @DomName('Element.namespaceUri') | 796 @DomName('Element.namespaceUri') |
797 String get namespaceUri => _namespaceUri; | 797 String get namespaceUri => _namespaceUri; |
798 | 798 |
| 799 /** |
| 800 * The string representation of this element. |
| 801 * |
| 802 * This is equivalent to reading the [localName] property. |
| 803 */ |
799 String toString() => localName; | 804 String toString() => localName; |
800 | 805 |
801 /** | 806 /** |
802 * Scrolls this element into view. | 807 * Scrolls this element into view. |
803 * | 808 * |
804 * Only one of of the alignment options may be specified at a time. | 809 * Only one of of the alignment options may be specified at a time. |
805 * | 810 * |
806 * If no options are specified then this will attempt to scroll the minimum | 811 * If no options are specified then this will attempt to scroll the minimum |
807 * amount needed to bring the element into view. | 812 * amount needed to bring the element into view. |
808 * | 813 * |
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1332 const ScrollAlignment._internal(this._value); | 1337 const ScrollAlignment._internal(this._value); |
1333 toString() => 'ScrollAlignment.$_value'; | 1338 toString() => 'ScrollAlignment.$_value'; |
1334 | 1339 |
1335 /// Attempt to align the element to the top of the scrollable area. | 1340 /// Attempt to align the element to the top of the scrollable area. |
1336 static const TOP = const ScrollAlignment._internal('TOP'); | 1341 static const TOP = const ScrollAlignment._internal('TOP'); |
1337 /// Attempt to center the element in the scrollable area. | 1342 /// Attempt to center the element in the scrollable area. |
1338 static const CENTER = const ScrollAlignment._internal('CENTER'); | 1343 static const CENTER = const ScrollAlignment._internal('CENTER'); |
1339 /// Attempt to align the element to the bottom of the scrollable area. | 1344 /// Attempt to align the element to the bottom of the scrollable area. |
1340 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); | 1345 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); |
1341 } | 1346 } |
OLD | NEW |