OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
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. | |
4 | |
5 // WARNING: Do not edit - generated code. | |
6 | |
7 class _HTMLSelectElementWrappingImplementation extends _HTMLElementWrappingImple
mentation implements HTMLSelectElement { | |
8 _HTMLSelectElementWrappingImplementation() : super() {} | |
9 | |
10 static create__HTMLSelectElementWrappingImplementation() native { | |
11 return new _HTMLSelectElementWrappingImplementation(); | |
12 } | |
13 | |
14 bool get autofocus() { return _get_autofocus(this); } | |
15 static bool _get_autofocus(var _this) native; | |
16 | |
17 void set autofocus(bool value) { _set_autofocus(this, value); } | |
18 static void _set_autofocus(var _this, bool value) native; | |
19 | |
20 bool get disabled() { return _get_disabled(this); } | |
21 static bool _get_disabled(var _this) native; | |
22 | |
23 void set disabled(bool value) { _set_disabled(this, value); } | |
24 static void _set_disabled(var _this, bool value) native; | |
25 | |
26 HTMLFormElement get form() { return _get_form(this); } | |
27 static HTMLFormElement _get_form(var _this) native; | |
28 | |
29 NodeList get labels() { return _get_labels(this); } | |
30 static NodeList _get_labels(var _this) native; | |
31 | |
32 int get length() { return _get_length(this); } | |
33 static int _get_length(var _this) native; | |
34 | |
35 void set length(int value) { _set_length(this, value); } | |
36 static void _set_length(var _this, int value) native; | |
37 | |
38 bool get multiple() { return _get_multiple(this); } | |
39 static bool _get_multiple(var _this) native; | |
40 | |
41 void set multiple(bool value) { _set_multiple(this, value); } | |
42 static void _set_multiple(var _this, bool value) native; | |
43 | |
44 String get name() { return _get_name(this); } | |
45 static String _get_name(var _this) native; | |
46 | |
47 void set name(String value) { _set_name(this, value); } | |
48 static void _set_name(var _this, String value) native; | |
49 | |
50 HTMLOptionsCollection get options() { return _get_options(this); } | |
51 static HTMLOptionsCollection _get_options(var _this) native; | |
52 | |
53 bool get required() { return _get_required(this); } | |
54 static bool _get_required(var _this) native; | |
55 | |
56 void set required(bool value) { _set_required(this, value); } | |
57 static void _set_required(var _this, bool value) native; | |
58 | |
59 int get selectedIndex() { return _get_selectedIndex(this); } | |
60 static int _get_selectedIndex(var _this) native; | |
61 | |
62 void set selectedIndex(int value) { _set_selectedIndex(this, value); } | |
63 static void _set_selectedIndex(var _this, int value) native; | |
64 | |
65 int get size() { return _get_size(this); } | |
66 static int _get_size(var _this) native; | |
67 | |
68 void set size(int value) { _set_size(this, value); } | |
69 static void _set_size(var _this, int value) native; | |
70 | |
71 String get type() { return _get_type(this); } | |
72 static String _get_type(var _this) native; | |
73 | |
74 String get validationMessage() { return _get_validationMessage(this); } | |
75 static String _get_validationMessage(var _this) native; | |
76 | |
77 ValidityState get validity() { return _get_validity(this); } | |
78 static ValidityState _get_validity(var _this) native; | |
79 | |
80 String get value() { return _get_value(this); } | |
81 static String _get_value(var _this) native; | |
82 | |
83 void set value(String value) { _set_value(this, value); } | |
84 static void _set_value(var _this, String value) native; | |
85 | |
86 bool get willValidate() { return _get_willValidate(this); } | |
87 static bool _get_willValidate(var _this) native; | |
88 | |
89 void add(HTMLElement element, HTMLElement before) { | |
90 _add(this, element, before); | |
91 return; | |
92 } | |
93 static void _add(receiver, element, before) native; | |
94 | |
95 bool checkValidity() { | |
96 return _checkValidity(this); | |
97 } | |
98 static bool _checkValidity(receiver) native; | |
99 | |
100 Node item(int index) { | |
101 return _item(this, index); | |
102 } | |
103 static Node _item(receiver, index) native; | |
104 | |
105 Node namedItem(String name) { | |
106 return _namedItem(this, name); | |
107 } | |
108 static Node _namedItem(receiver, name) native; | |
109 | |
110 void remove(var index_OR_option) { | |
111 if (index_OR_option is int) { | |
112 _remove(this, index_OR_option); | |
113 return; | |
114 } else { | |
115 if (index_OR_option is HTMLOptionElement) { | |
116 _remove_2(this, index_OR_option); | |
117 return; | |
118 } | |
119 } | |
120 throw "Incorrect number or type of arguments"; | |
121 } | |
122 static void _remove(receiver, index_OR_option) native; | |
123 static void _remove_2(receiver, index_OR_option) native; | |
124 | |
125 void setCustomValidity(String error) { | |
126 _setCustomValidity(this, error); | |
127 return; | |
128 } | |
129 static void _setCustomValidity(receiver, error) native; | |
130 | |
131 String get typeName() { return "HTMLSelectElement"; } | |
132 } | |
OLD | NEW |