001package react4j.dom.proptypes.html;
002
003import javax.annotation.Nonnull;
004import javax.annotation.Nullable;
005import jsinterop.annotations.JsOverlay;
006import jsinterop.annotations.JsPackage;
007import jsinterop.annotations.JsType;
008import react4j.dom.events.DragEventHandler;
009import react4j.dom.events.FocusEventHandler;
010import react4j.dom.events.KeyboardEventHandler;
011import react4j.dom.events.MouseEventHandler;
012import react4j.dom.events.TouchEventHandler;
013
014/**
015 * Props for col elements. Refer to http://www.w3schools.com/tags/tag_col.asp
016 */
017@JsType( isNative = true, namespace = JsPackage.GLOBAL, name = "Object" )
018public class ColProps
019  extends HtmlGlobalFields<ColProps>
020{
021  @JsOverlay
022  @Nonnull
023  public final ColProps span( int i )
024  {
025    setSpan( i );
026    return self();
027  }
028
029  //Applicable Event Handlers
030
031  // Focus Events
032  @JsOverlay
033  @Nonnull
034  public final ColProps onBlur( @Nullable final FocusEventHandler handler )
035  {
036    setOnBlur( handler );
037    return self();
038  }
039
040  @JsOverlay
041  @Nonnull
042  public final ColProps onFocus( @Nullable final FocusEventHandler handler )
043  {
044    setOnFocus( handler );
045    return self();
046  }
047
048  // Keyboard Events
049  @JsOverlay
050  @Nonnull
051  public final ColProps onKeyDown( @Nullable final KeyboardEventHandler handler )
052  {
053    setOnKeyDown( handler );
054    return self();
055  }
056
057  @JsOverlay
058  @Nonnull
059  public final ColProps onKeyPress( @Nullable final KeyboardEventHandler handler )
060  {
061    setOnKeyPress( handler );
062    return self();
063  }
064
065  @JsOverlay
066  @Nonnull
067  public final ColProps onKeyUp( @Nullable final KeyboardEventHandler handler )
068  {
069    setOnKeyUp( handler );
070    return self();
071  }
072
073  @JsOverlay
074  @Nonnull
075  public final ColProps onClick( @Nullable final MouseEventHandler handler )
076  {
077    setOnClick( handler );
078    return self();
079  }
080
081  @JsOverlay
082  @Nonnull
083  public final ColProps onContextMenu( @Nullable final MouseEventHandler handler )
084  {
085    setOnContextMenu( handler );
086    return self();
087  }
088
089  @JsOverlay
090  @Nonnull
091  public final ColProps onDoubleClick( @Nullable final MouseEventHandler handler )
092  {
093    setOnDoubleClick( handler );
094    return self();
095  }
096
097  @JsOverlay
098  @Nonnull
099  public final ColProps onDrag( @Nullable final DragEventHandler handler )
100  {
101    setOnDrag( handler );
102    return self();
103  }
104
105  @JsOverlay
106  @Nonnull
107  public final ColProps onDragEnd( @Nullable final DragEventHandler handler )
108  {
109    setOnDragEnd( handler );
110    return self();
111  }
112
113  @JsOverlay
114  @Nonnull
115  public final ColProps onDragEnter( @Nullable final DragEventHandler handler )
116  {
117    setOnDragEnter( handler );
118    return self();
119  }
120
121  @JsOverlay
122  @Nonnull
123  public final ColProps onDragExit( @Nullable final DragEventHandler handler )
124  {
125    setOnDragExit( handler );
126    return self();
127  }
128
129  @JsOverlay
130  @Nonnull
131  public final ColProps onDragLeave( @Nullable final DragEventHandler handler )
132  {
133    setOnDragLeave( handler );
134    return self();
135  }
136
137  @JsOverlay
138  @Nonnull
139  public final ColProps onDragOver( @Nullable final DragEventHandler handler )
140  {
141    setOnDragOver( handler );
142    return self();
143  }
144
145  @JsOverlay
146  @Nonnull
147  public final ColProps onDragStart( @Nullable final DragEventHandler handler )
148  {
149    setOnDragStart( handler );
150    return self();
151  }
152
153  @JsOverlay
154  @Nonnull
155  public final ColProps onDrop( @Nullable final DragEventHandler handler )
156  {
157    setOnDrop( handler );
158    return self();
159  }
160
161  @JsOverlay
162  @Nonnull
163  public final ColProps onMouseDown( @Nullable final MouseEventHandler handler )
164  {
165    setOnMouseDown( handler );
166    return self();
167  }
168
169  @JsOverlay
170  @Nonnull
171  public final ColProps onMouseEnter( @Nullable final MouseEventHandler handler )
172  {
173    setOnMouseEnter( handler );
174    return self();
175  }
176
177  @JsOverlay
178  @Nonnull
179  public final ColProps onMouseLeave( @Nullable final MouseEventHandler handler )
180  {
181    setOnMouseLeave( handler );
182    return self();
183  }
184
185  @JsOverlay
186  @Nonnull
187  public final ColProps onMouseMove( @Nullable final MouseEventHandler handler )
188  {
189    setOnMouseMove( handler );
190    return self();
191  }
192
193  @JsOverlay
194  @Nonnull
195  public final ColProps onMouseOut( @Nullable final MouseEventHandler handler )
196  {
197    setOnMouseOut( handler );
198    return self();
199  }
200
201  @JsOverlay
202  @Nonnull
203  public final ColProps onMouseOver( @Nullable final MouseEventHandler handler )
204  {
205    setOnMouseOver( handler );
206    return self();
207  }
208
209  @JsOverlay
210  @Nonnull
211  public final ColProps onMouseUp( @Nullable final MouseEventHandler handler )
212  {
213    setOnMouseUp( handler );
214    return self();
215  }
216
217  // Touch Events
218  @JsOverlay
219  @Nonnull
220  public final ColProps onTouchCancel( @Nullable final TouchEventHandler handler )
221  {
222    setOnTouchCancel( handler );
223    return self();
224  }
225
226  @JsOverlay
227  @Nonnull
228  public final ColProps onTouchEnd( @Nullable final TouchEventHandler handler )
229  {
230    setOnTouchEnd( handler );
231    return self();
232  }
233
234  @JsOverlay
235  @Nonnull
236  public final ColProps onTouchMove( @Nullable final TouchEventHandler handler )
237  {
238    setOnTouchMove( handler );
239    return self();
240  }
241
242  @JsOverlay
243  @Nonnull
244  public final ColProps onTouchStart( @Nullable final TouchEventHandler handler )
245  {
246    setOnTouchStart( handler );
247    return self();
248  }
249}