001package Torello.Browser.BrowserAPI;
002
003// *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
004// Java-HTML Imports
005// *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
006
007import Torello.Browser.*;
008import Torello.Browser.helper.*;
009import Torello.Browser.JavaScriptAPI.*;
010import Torello.JSON.*;
011
012import Torello.Java.ReadOnly.ReadOnlyList;
013import Torello.Java.ReadOnly.ReadOnlyArrayList;
014
015import Torello.JavaDoc.Annotations.StaticFunctional;
016import Torello.JavaDoc.Annotations.JDHeaderBackgroundImg;
017
018import Torello.Browser.BrowserAPI.NestedHelpers.Commands.Input$$Commands;
019
020
021// *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
022// JDK Imports
023// *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
024
025import javax.json.JsonObject;
026import javax.json.JsonValue;
027
028/**
029 * <SPAN CLASS=COPIEDJDK><B><CODE>[No Description Provided by Google]</CODE></B></SPAN>
030 * <EMBED CLASS='external-html' DATA-FILE-ID=CDP.CODE_GEN_NOTE>
031 */
032@StaticFunctional@JDHeaderBackgroundImg(EmbedTagFileID="CDP.WOOD_PLANK_NOTE")
033public class Input
034{
035    // No Pubic Constructors
036    private Input() { }
037
038
039    // ********************************************************************************************
040    // ********************************************************************************************
041    // Eliminated Types
042    // ********************************************************************************************
043    // ********************************************************************************************
044
045
046    /**
047     * UTC time in seconds, counted from January 1, 1970.
048
049     * <EMBED CLASS='external-html' DATA-CTAS='Number' DATA-FILE-ID=CDP.EliminatedType
050     *     DATA-NAME=TimeSinceEpoch>
051     */
052    public static final String TimeSinceEpoch =
053        "TimeSinceEpoch has been eliminated.\n" +
054        "It was replaced with the standard Java-Type: Number";
055
056
057    // ********************************************************************************************
058    // ********************************************************************************************
059    // Enumerated String Constants Lists
060    // ********************************************************************************************
061    // ********************************************************************************************
062
063
064    /**
065     * <CODE>[No Description Provided by Google]</CODE>
066     * 
067     * <BR /><B CLASS=Exp-Top>EXPERIMENTAL</B>
068     * <BR /><BR /><B CLASS=StrEnumType>String-Enumeration Type</B>
069     */
070    public static final ReadOnlyList<String> GestureSourceType = new ReadOnlyArrayList<>
071        (String.class, "default", "mouse", "touch");
072
073    /**
074     * <CODE>[No Description Provided by Google]</CODE>
075     * <BR /><BR /><B CLASS=StrEnumType>String-Enumeration Type</B>
076     */
077    public static final ReadOnlyList<String> MouseButton = new ReadOnlyArrayList<>
078        (String.class, "back", "forward", "left", "middle", "none", "right");
079
080
081
082    // ********************************************************************************************
083    // ********************************************************************************************
084    // Basic Types
085    // ********************************************************************************************
086    // ********************************************************************************************
087
088
089    /**
090     * <CODE>[No Description Provided by Google]</CODE>
091     * 
092     * <BR /><B CLASS=Exp-Top>EXPERIMENTAL</B>
093     * <EMBED CLASS=globalDefs DATA-DOMAIN=Input DATA-API=BrowserAPI>
094     */
095    @JDHeaderBackgroundImg(EmbedTagFileID="CDP.NESTED_TYPE_JDHBI")
096    public static class DragData
097        extends BaseType<DragData>
098        implements java.io.Serializable
099    {
100        /** <EMBED CLASS='external-html' DATA-FILE-ID=SVUID> */
101        protected static final long serialVersionUID = 1;
102
103        private static final NestedHelper<Input.DragData> singleton =
104            Torello.Browser.BrowserAPI.NestedHelpers.Types.
105                Input$$DragData$$.singleton;
106
107        /** <CODE>[No Description Provided by Google]</CODE> */
108        public final Input.DragDataItem[] items;
109
110        /**
111         * List of filenames that should be included when dropping
112         * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
113         */
114        public final String[] files;
115
116        /** Bit field representing allowed drag operations. Copy = 1, Link = 2, Move = 16 */
117        public final int dragOperationsMask;
118
119        /** Constructor.  Please review this class' fields for documentation. */
120        public DragData(
121                ReadOnlyList<Boolean> isPresent, DragDataItem[] items, String[] files,
122                int dragOperationsMask
123            )
124        {
125            super(singleton, Domains.Input, "DragData", 3);
126
127            this.items              = items;
128            this.files              = files;
129            this.dragOperationsMask = dragOperationsMask;
130
131            this.isPresent = (isPresent == null)
132                ? singleton.generateIsPresentList(this)
133                : THROWS.check(isPresent, 3, "Input.DragData");
134        }
135
136        /** Creates an instance of this class from a {@link JsonObject}.*/
137        public static DragData fromJSON(JsonObject jo)
138        { return singleton.fromJSON(jo); }
139
140        /** Returns this class's {@link NestedDescriptor} singleton-instance. class / type.*/
141        public static NestedDescriptor<DragData> descriptor()
142        { return singleton.descriptor(); }
143    }
144
145    /**
146     * <CODE>[No Description Provided by Google]</CODE>
147     * 
148     * <BR /><B CLASS=Exp-Top>EXPERIMENTAL</B>
149     * <EMBED CLASS=globalDefs DATA-DOMAIN=Input DATA-API=BrowserAPI>
150     */
151    @JDHeaderBackgroundImg(EmbedTagFileID="CDP.NESTED_TYPE_JDHBI")
152    public static class DragDataItem
153        extends BaseType<DragDataItem>
154        implements java.io.Serializable
155    {
156        /** <EMBED CLASS='external-html' DATA-FILE-ID=SVUID> */
157        protected static final long serialVersionUID = 1;
158
159        private static final NestedHelper<Input.DragDataItem> singleton =
160            Torello.Browser.BrowserAPI.NestedHelpers.Types.
161                Input$$DragDataItem$$.singleton;
162
163        /** Mime type of the dragged data. */
164        public final String mimeType;
165
166        /**
167         * Depending of the value of <CODE>mimeType</CODE>, it contains the dragged link,
168         * text, HTML markup or any other data.
169         */
170        public final String data;
171
172        /**
173         * Title associated with a link. Only valid when <CODE>mimeType</CODE> == "text/uri-list".
174         * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
175         */
176        public final String title;
177
178        /**
179         * Stores the base URL for the contained markup. Only valid when <CODE>mimeType</CODE>
180         * == "text/html".
181         * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
182         */
183        public final String baseURL;
184
185        /** Constructor.  Please review this class' fields for documentation. */
186        public DragDataItem(
187                ReadOnlyList<Boolean> isPresent, String mimeType, String data, String title,
188                String baseURL
189            )
190        {
191            super(singleton, Domains.Input, "DragDataItem", 4);
192
193            this.mimeType   = mimeType;
194            this.data       = data;
195            this.title      = title;
196            this.baseURL    = baseURL;
197
198            this.isPresent = (isPresent == null)
199                ? singleton.generateIsPresentList(this)
200                : THROWS.check(isPresent, 4, "Input.DragDataItem");
201        }
202
203        /** Creates an instance of this class from a {@link JsonObject}.*/
204        public static DragDataItem fromJSON(JsonObject jo)
205        { return singleton.fromJSON(jo); }
206
207        /** Returns this class's {@link NestedDescriptor} singleton-instance. class / type.*/
208        public static NestedDescriptor<DragDataItem> descriptor()
209        { return singleton.descriptor(); }
210    }
211
212    /**
213     * <CODE>[No Description Provided by Google]</CODE>
214     * 
215     * <EMBED CLASS=globalDefs DATA-DOMAIN=Input DATA-API=BrowserAPI>
216     */
217    @JDHeaderBackgroundImg(EmbedTagFileID="CDP.NESTED_TYPE_JDHBI")
218    public static class TouchPoint
219        extends BaseType<TouchPoint>
220        implements java.io.Serializable
221    {
222        /** <EMBED CLASS='external-html' DATA-FILE-ID=SVUID> */
223        protected static final long serialVersionUID = 1;
224
225        private static final NestedHelper<Input.TouchPoint> singleton =
226            Torello.Browser.BrowserAPI.NestedHelpers.Types.
227                Input$$TouchPoint$$.singleton;
228
229        /** X coordinate of the event relative to the main frame's viewport in CSS pixels. */
230        public final Number x;
231
232        /**
233         * Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to
234         * the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
235         */
236        public final Number y;
237
238        /**
239         * X radius of the touch area (default: 1.0).
240         * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
241         */
242        public final Number radiusX;
243
244        /**
245         * Y radius of the touch area (default: 1.0).
246         * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
247         */
248        public final Number radiusY;
249
250        /**
251         * Rotation angle (default: 0.0).
252         * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
253         */
254        public final Number rotationAngle;
255
256        /**
257         * Force (default: 1.0).
258         * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
259         */
260        public final Number force;
261
262        /**
263         * The normalized tangential pressure, which has a range of [-1,1] (default: 0).
264         * <BR /><B CLASS=Opt-Top>OPTIONAL</B><B CLASS=Exp-Top>EXPERIMENTAL</B>
265         */
266        public final Number tangentialPressure;
267
268        /**
269         * The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0)
270         * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
271         */
272        public final Number tiltX;
273
274        /**
275         * The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0).
276         * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
277         */
278        public final Number tiltY;
279
280        /**
281         * The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).
282         * <BR /><B CLASS=Opt-Top>OPTIONAL</B><B CLASS=Exp-Top>EXPERIMENTAL</B>
283         */
284        public final Integer twist;
285
286        /**
287         * Identifier used to track touch sources between events, must be unique within an event.
288         * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
289         */
290        public final Number id;
291
292        /** Constructor.  Please review this class' fields for documentation. */
293        public TouchPoint(
294                ReadOnlyList<Boolean> isPresent, Number x, Number y, Number radiusX,
295                Number radiusY, Number rotationAngle, Number force, Number tangentialPressure,
296                Number tiltX, Number tiltY, Integer twist, Number id
297            )
298        {
299            super(singleton, Domains.Input, "TouchPoint", 11);
300
301            this.x                  = x;
302            this.y                  = y;
303            this.radiusX            = radiusX;
304            this.radiusY            = radiusY;
305            this.rotationAngle      = rotationAngle;
306            this.force              = force;
307            this.tangentialPressure = tangentialPressure;
308            this.tiltX              = tiltX;
309            this.tiltY              = tiltY;
310            this.twist              = twist;
311            this.id                 = id;
312
313            this.isPresent = (isPresent == null)
314                ? singleton.generateIsPresentList(this)
315                : THROWS.check(isPresent, 11, "Input.TouchPoint");
316        }
317
318        /** Creates an instance of this class from a {@link JsonObject}.*/
319        public static TouchPoint fromJSON(JsonObject jo)
320        { return singleton.fromJSON(jo); }
321
322        /** Returns this class's {@link NestedDescriptor} singleton-instance. class / type.*/
323        public static NestedDescriptor<TouchPoint> descriptor()
324        { return singleton.descriptor(); }
325    }
326
327
328    // ********************************************************************************************
329    // ********************************************************************************************
330    // Event Types
331    // ********************************************************************************************
332    // ********************************************************************************************
333
334
335    /**
336     * Emitted only when <CODE>Input.setInterceptDrags</CODE> is enabled. Use this data with <CODE>Input.dispatchDragEvent</CODE> to
337     * restore normal drag and drop behavior.
338     * 
339     * <BR /><B CLASS=Exp-Top>EXPERIMENTAL</B>
340     * <EMBED CLASS=globalDefs DATA-DOMAIN=Input DATA-API=BrowserAPI>
341     */
342    @JDHeaderBackgroundImg(EmbedTagFileID="CDP.NESTED_EVENT_JDHBI")
343    public static class dragIntercepted
344        extends BrowserEvent<dragIntercepted>
345        implements java.io.Serializable
346    {
347        /** <EMBED CLASS='external-html' DATA-FILE-ID=SVUID> */
348        protected static final long serialVersionUID = 1;
349
350        private static final NestedHelper<Input.dragIntercepted> singleton =
351            Torello.Browser.BrowserAPI.NestedHelpers.Events.
352                Input$$dragIntercepted$$.singleton;
353
354        /** <CODE>[No Description Provided by Google]</CODE> */
355        public final Input.DragData data;
356
357        /** Constructor.  Please review this class' fields for documentation. */
358        public dragIntercepted(ReadOnlyList<Boolean> isPresent, DragData data)
359        {
360            super(singleton, Domains.Input, "dragIntercepted", 1);
361
362            this.data = data;
363
364            this.isPresent = (isPresent == null)
365                ? singleton.generateIsPresentList(this)
366                : THROWS.check(isPresent, 1, "Input.dragIntercepted");
367        }
368
369        /** Creates an instance of this class from a {@link JsonObject}.*/
370        public static dragIntercepted fromJSON(JsonObject jo)
371        { return singleton.fromJSON(jo); }
372
373        /** Returns this class's {@link NestedDescriptor} singleton-instance. class / type.*/
374        public static NestedDescriptor<dragIntercepted> descriptor()
375        { return singleton.descriptor(); }
376    }
377
378
379
380
381    // ********************************************************************************************
382    // ********************************************************************************************
383    // Commands
384    // ********************************************************************************************
385    // ********************************************************************************************
386
387
388    /**
389     * Cancels any active dragging in the page.
390     * 
391     * @return An instance of <CODE>{@link Script}&lt;Void&gt;</CODE>
392     *
393     * <BR /><BR />This {@code Script} instance must be <B STYLE='color:red'>executed</B> before the
394     * browser receives the invocation-request.
395     *
396     * <BR /><BR /><DIV CLASS=JDHint>
397     * This Browser-Function <I>does not have</I> a return-value.  You may choose to
398     * <B STYLE='color: red'>await</B> the {@link Promise}{@code <Void>} to ensure that
399     * the Browser Function has run to completion.
400     * </DIV>
401     */
402    public static Script<Void> cancelDragging()
403    {
404        // Ultra-Simple Request JSON - Because this method has no parameters
405        final String requestJSON = "{\"method\":\"Input.cancelDragging\"}";
406
407        return Script.NO_RET(Domains.Input, "cancelDragging", requestJSON);
408    }
409
410    /**
411     * Dispatches a drag event into the page.
412     * 
413     * <BR /><B CLASS=Exp-Top>EXPERIMENTAL</B>
414     * 
415     * <BR /><BR /><DIV CLASS=JDHint>
416     * 👍 Because of the sheer number of input parameters to this method, there is a
417     * a {@link CommandBuilder} variant to this method which may be invoked instead.
418     * 
419     * <BR /><BR />
420     * Please View: {@link #dispatchDragEvent()}
421     * </DIV>
422     * 
423     * @param type Type of the drag event.
424     * <BR />Acceptable Values: ["dragCancel", "dragEnter", "dragOver", "drop"]
425     * 
426     * @param x X coordinate of the event relative to the main frame's viewport in CSS pixels.
427     * 
428     * @param y 
429     * Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to
430     * the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
431     * 
432     * @param data -
433     * 
434     * @param modifiers 
435     * Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8
436     * (default: 0).
437     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
438     * 
439     * @return An instance of <CODE>{@link Script}&lt;Void&gt;</CODE>
440     *
441     * <BR /><BR />This {@code Script} instance must be <B STYLE='color:red'>executed</B> before the
442     * browser receives the invocation-request.
443     *
444     * <BR /><BR /><DIV CLASS=JDHint>
445     * This Browser-Function <I>does not have</I> a return-value.  You may choose to
446     * <B STYLE='color: red'>await</B> the {@link Promise}{@code <Void>} to ensure that
447     * the Browser Function has run to completion.
448     * </DIV>
449     */
450    public static Script<Void> dispatchDragEvent
451        (String type, Number x, Number y, DragData data, Integer modifiers)
452    {
453        // Convert all Method Parameters into a JSON Request-Object (as a String)
454        final String requestJSON = WriteJSON.get(
455            Input$$Commands.dispatchDragEvent$$, "Input.dispatchDragEvent",
456            type, x, y, data, modifiers
457        );
458
459        return Script.NO_RET(Domains.Input, "dispatchDragEvent", requestJSON);
460    }
461
462    /**
463     * Dispatches a key event to the page.
464     * 
465     * <BR /><BR /><DIV CLASS=JDHint>
466     * 👍 Because of the sheer number of input parameters to this method, there is a
467     * a {@link CommandBuilder} variant to this method which may be invoked instead.
468     * 
469     * <BR /><BR />
470     * Please View: {@link #dispatchKeyEvent()}
471     * </DIV>
472     * 
473     * @param type Type of the key event.
474     * <BR />Acceptable Values: ["char", "keyDown", "keyUp", "rawKeyDown"]
475     * 
476     * @param modifiers 
477     * Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8
478     * (default: 0).
479     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
480     * 
481     * @param timestamp Time at which the event occurred.
482     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
483     * 
484     * @param text 
485     * Text as generated by processing a virtual key code with a keyboard layout. Not needed for
486     * for <CODE>keyUp</CODE> and <CODE>rawKeyDown</CODE> events (default: "")
487     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
488     * 
489     * @param unmodifiedText 
490     * Text that would have been generated by the keyboard if no modifiers were pressed (except for
491     * shift). Useful for shortcut (accelerator) key handling (default: "").
492     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
493     * 
494     * @param keyIdentifier Unique key identifier (e.g., 'U+0041') (default: "").
495     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
496     * 
497     * @param code Unique DOM defined string value for each physical key (e.g., 'KeyA') (default: "").
498     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
499     * 
500     * @param key 
501     * Unique DOM defined string value describing the meaning of the key in the context of active
502     * modifiers, keyboard layout, etc (e.g., 'AltGr') (default: "").
503     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
504     * 
505     * @param windowsVirtualKeyCode Windows virtual key code (default: 0).
506     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
507     * 
508     * @param nativeVirtualKeyCode Native virtual key code (default: 0).
509     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
510     * 
511     * @param autoRepeat Whether the event was generated from auto repeat (default: false).
512     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
513     * 
514     * @param isKeypad Whether the event was generated from the keypad (default: false).
515     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
516     * 
517     * @param isSystemKey Whether the event was a system key event (default: false).
518     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
519     * 
520     * @param location 
521     * Whether the event was from the left or right side of the keyboard. 1=Left, 2=Right (default:
522     * 0).
523     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
524     * 
525     * @param commands 
526     * Editing commands to send with the key event (e.g., 'selectAll') (default: []).
527     * These are related to but not equal the command names used in <CODE>document.execCommand</CODE> and NSStandardKeyBindingResponding.
528     * See https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names.
529     * <BR /><B CLASS=Opt-Top>OPTIONAL</B><B CLASS=Exp-Top>EXPERIMENTAL</B>
530     * 
531     * @return An instance of <CODE>{@link Script}&lt;Void&gt;</CODE>
532     *
533     * <BR /><BR />This {@code Script} instance must be <B STYLE='color:red'>executed</B> before the
534     * browser receives the invocation-request.
535     *
536     * <BR /><BR /><DIV CLASS=JDHint>
537     * This Browser-Function <I>does not have</I> a return-value.  You may choose to
538     * <B STYLE='color: red'>await</B> the {@link Promise}{@code <Void>} to ensure that
539     * the Browser Function has run to completion.
540     * </DIV>
541     */
542    public static Script<Void> dispatchKeyEvent(
543            String type, Integer modifiers, Number timestamp, String text, String unmodifiedText,
544            String keyIdentifier, String code, String key, Integer windowsVirtualKeyCode,
545            Integer nativeVirtualKeyCode, Boolean autoRepeat, Boolean isKeypad,
546            Boolean isSystemKey, Integer location, String[] commands
547        )
548    {
549        // Convert all Method Parameters into a JSON Request-Object (as a String)
550        final String requestJSON = WriteJSON.get(
551            Input$$Commands.dispatchKeyEvent$$, "Input.dispatchKeyEvent",
552            type, modifiers, timestamp, text, unmodifiedText, keyIdentifier, code, key,
553            windowsVirtualKeyCode, nativeVirtualKeyCode, autoRepeat, isKeypad, isSystemKey,
554            location, commands
555        );
556
557        return Script.NO_RET(Domains.Input, "dispatchKeyEvent", requestJSON);
558    }
559
560    /**
561     * Dispatches a mouse event to the page.
562     * 
563     * <BR /><BR /><DIV CLASS=JDHint>
564     * 👍 Because of the sheer number of input parameters to this method, there is a
565     * a {@link CommandBuilder} variant to this method which may be invoked instead.
566     * 
567     * <BR /><BR />
568     * Please View: {@link #dispatchMouseEvent()}
569     * </DIV>
570     * 
571     * @param type Type of the mouse event.
572     * <BR />Acceptable Values: ["mouseMoved", "mousePressed", "mouseReleased", "mouseWheel"]
573     * 
574     * @param x X coordinate of the event relative to the main frame's viewport in CSS pixels.
575     * 
576     * @param y 
577     * Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to
578     * the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
579     * 
580     * @param modifiers 
581     * Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8
582     * (default: 0).
583     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
584     * 
585     * @param timestamp Time at which the event occurred.
586     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
587     * 
588     * @param button Mouse button (default: "none").
589     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
590     * 
591     * @param buttons 
592     * A number indicating which buttons are pressed on the mouse when a mouse event is triggered.
593     * Left=1, Right=2, Middle=4, Back=8, Forward=16, None=0.
594     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
595     * 
596     * @param clickCount Number of times the mouse button was clicked (default: 0).
597     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
598     * 
599     * @param force The normalized pressure, which has a range of [0,1] (default: 0).
600     * <BR /><B CLASS=Opt-Top>OPTIONAL</B><B CLASS=Exp-Top>EXPERIMENTAL</B>
601     * 
602     * @param tangentialPressure The normalized tangential pressure, which has a range of [-1,1] (default: 0).
603     * <BR /><B CLASS=Opt-Top>OPTIONAL</B><B CLASS=Exp-Top>EXPERIMENTAL</B>
604     * 
605     * @param tiltX The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0).
606     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
607     * 
608     * @param tiltY The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0).
609     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
610     * 
611     * @param twist The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).
612     * <BR /><B CLASS=Opt-Top>OPTIONAL</B><B CLASS=Exp-Top>EXPERIMENTAL</B>
613     * 
614     * @param deltaX X delta in CSS pixels for mouse wheel event (default: 0).
615     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
616     * 
617     * @param deltaY Y delta in CSS pixels for mouse wheel event (default: 0).
618     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
619     * 
620     * @param pointerType Pointer type (default: "mouse").
621     * <BR />Acceptable Values: ["mouse", "pen"]
622     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
623     * 
624     * @return An instance of <CODE>{@link Script}&lt;Void&gt;</CODE>
625     *
626     * <BR /><BR />This {@code Script} instance must be <B STYLE='color:red'>executed</B> before the
627     * browser receives the invocation-request.
628     *
629     * <BR /><BR /><DIV CLASS=JDHint>
630     * This Browser-Function <I>does not have</I> a return-value.  You may choose to
631     * <B STYLE='color: red'>await</B> the {@link Promise}{@code <Void>} to ensure that
632     * the Browser Function has run to completion.
633     * </DIV>
634     */
635    public static Script<Void> dispatchMouseEvent(
636            String type, Number x, Number y, Integer modifiers, Number timestamp, String button,
637            Integer buttons, Integer clickCount, Number force, Number tangentialPressure,
638            Number tiltX, Number tiltY, Integer twist, Number deltaX, Number deltaY,
639            String pointerType
640        )
641    {
642        // Convert all Method Parameters into a JSON Request-Object (as a String)
643        final String requestJSON = WriteJSON.get(
644            Input$$Commands.dispatchMouseEvent$$, "Input.dispatchMouseEvent",
645            type, x, y, modifiers, timestamp, button, buttons, clickCount, force,
646            tangentialPressure, tiltX, tiltY, twist, deltaX, deltaY, pointerType
647        );
648
649        return Script.NO_RET(Domains.Input, "dispatchMouseEvent", requestJSON);
650    }
651
652    /**
653     * Dispatches a touch event to the page.
654     * 
655     * @param type 
656     * Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, while
657     * TouchStart and TouchMove must contains at least one.
658     * <BR />Acceptable Values: ["touchCancel", "touchEnd", "touchMove", "touchStart"]
659     * 
660     * @param touchPoints 
661     * Active touch points on the touch device. One event per any changed point (compared to
662     * previous touch event in a sequence) is generated, emulating pressing/moving/releasing points
663     * one by one.
664     * 
665     * @param modifiers 
666     * Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8
667     * (default: 0).
668     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
669     * 
670     * @param timestamp Time at which the event occurred.
671     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
672     * 
673     * @return An instance of <CODE>{@link Script}&lt;Void&gt;</CODE>
674     *
675     * <BR /><BR />This {@code Script} instance must be <B STYLE='color:red'>executed</B> before the
676     * browser receives the invocation-request.
677     *
678     * <BR /><BR /><DIV CLASS=JDHint>
679     * This Browser-Function <I>does not have</I> a return-value.  You may choose to
680     * <B STYLE='color: red'>await</B> the {@link Promise}{@code <Void>} to ensure that
681     * the Browser Function has run to completion.
682     * </DIV>
683     */
684    public static Script<Void> dispatchTouchEvent
685        (String type, TouchPoint[] touchPoints, Integer modifiers, Number timestamp)
686    {
687        // Convert all Method Parameters into a JSON Request-Object (as a String)
688        final String requestJSON = WriteJSON.get(
689            Input$$Commands.dispatchTouchEvent$$, "Input.dispatchTouchEvent",
690            type, touchPoints, modifiers, timestamp
691        );
692
693        return Script.NO_RET(Domains.Input, "dispatchTouchEvent", requestJSON);
694    }
695
696    /**
697     * Emulates touch event from the mouse event parameters.
698     * 
699     * <BR /><B CLASS=Exp-Top>EXPERIMENTAL</B>
700     * 
701     * <BR /><BR /><DIV CLASS=JDHint>
702     * 👍 Because of the sheer number of input parameters to this method, there is a
703     * a {@link CommandBuilder} variant to this method which may be invoked instead.
704     * 
705     * <BR /><BR />
706     * Please View: {@link #emulateTouchFromMouseEvent()}
707     * </DIV>
708     * 
709     * @param type Type of the mouse event.
710     * <BR />Acceptable Values: ["mouseMoved", "mousePressed", "mouseReleased", "mouseWheel"]
711     * 
712     * @param x X coordinate of the mouse pointer in DIP.
713     * 
714     * @param y Y coordinate of the mouse pointer in DIP.
715     * 
716     * @param button Mouse button. Only "none", "left", "right" are supported.
717     * 
718     * @param timestamp Time at which the event occurred (default: current time).
719     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
720     * 
721     * @param deltaX X delta in DIP for mouse wheel event (default: 0).
722     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
723     * 
724     * @param deltaY Y delta in DIP for mouse wheel event (default: 0).
725     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
726     * 
727     * @param modifiers 
728     * Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8
729     * (default: 0).
730     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
731     * 
732     * @param clickCount Number of times the mouse button was clicked (default: 0).
733     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
734     * 
735     * @return An instance of <CODE>{@link Script}&lt;Void&gt;</CODE>
736     *
737     * <BR /><BR />This {@code Script} instance must be <B STYLE='color:red'>executed</B> before the
738     * browser receives the invocation-request.
739     *
740     * <BR /><BR /><DIV CLASS=JDHint>
741     * This Browser-Function <I>does not have</I> a return-value.  You may choose to
742     * <B STYLE='color: red'>await</B> the {@link Promise}{@code <Void>} to ensure that
743     * the Browser Function has run to completion.
744     * </DIV>
745     */
746    public static Script<Void> emulateTouchFromMouseEvent(
747            String type, int x, int y, String button, Number timestamp, Number deltaX,
748            Number deltaY, Integer modifiers, Integer clickCount
749        )
750    {
751        // Convert all Method Parameters into a JSON Request-Object (as a String)
752        final String requestJSON = WriteJSON.get(
753            Input$$Commands.emulateTouchFromMouseEvent$$, "Input.emulateTouchFromMouseEvent",
754            type, x, y, button, timestamp, deltaX, deltaY, modifiers, clickCount
755        );
756
757        return Script.NO_RET(Domains.Input, "emulateTouchFromMouseEvent", requestJSON);
758    }
759
760    /**
761     * This method sets the current candidate text for IME.
762     * Use imeCommitComposition to commit the final text.
763     * Use imeSetComposition with empty string as text to cancel composition.
764     * 
765     * <BR /><B CLASS=Exp-Top>EXPERIMENTAL</B>
766     * 
767     * <BR /><BR /><DIV CLASS=JDHint>
768     * 👍 Because of the sheer number of input parameters to this method, there is a
769     * a {@link CommandBuilder} variant to this method which may be invoked instead.
770     * 
771     * <BR /><BR />
772     * Please View: {@link #imeSetComposition()}
773     * </DIV>
774     * 
775     * @param text The text to insert
776     * 
777     * @param selectionStart selection start
778     * 
779     * @param selectionEnd selection end
780     * 
781     * @param replacementStart replacement start
782     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
783     * 
784     * @param replacementEnd replacement end
785     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
786     * 
787     * @return An instance of <CODE>{@link Script}&lt;Void&gt;</CODE>
788     *
789     * <BR /><BR />This {@code Script} instance must be <B STYLE='color:red'>executed</B> before the
790     * browser receives the invocation-request.
791     *
792     * <BR /><BR /><DIV CLASS=JDHint>
793     * This Browser-Function <I>does not have</I> a return-value.  You may choose to
794     * <B STYLE='color: red'>await</B> the {@link Promise}{@code <Void>} to ensure that
795     * the Browser Function has run to completion.
796     * </DIV>
797     */
798    public static Script<Void> imeSetComposition(
799            String text, int selectionStart, int selectionEnd, Integer replacementStart,
800            Integer replacementEnd
801        )
802    {
803        // Convert all Method Parameters into a JSON Request-Object (as a String)
804        final String requestJSON = WriteJSON.get(
805            Input$$Commands.imeSetComposition$$, "Input.imeSetComposition",
806            text, selectionStart, selectionEnd, replacementStart, replacementEnd
807        );
808
809        return Script.NO_RET(Domains.Input, "imeSetComposition", requestJSON);
810    }
811
812    /**
813     * This method emulates inserting text that doesn't come from a key press,
814     * for example an emoji keyboard or an IME.
815     * 
816     * <BR /><B CLASS=Exp-Top>EXPERIMENTAL</B>
817     * 
818     * @param text The text to insert.
819     * 
820     * @return An instance of <CODE>{@link Script}&lt;Void&gt;</CODE>
821     *
822     * <BR /><BR />This {@code Script} instance must be <B STYLE='color:red'>executed</B> before the
823     * browser receives the invocation-request.
824     *
825     * <BR /><BR /><DIV CLASS=JDHint>
826     * This Browser-Function <I>does not have</I> a return-value.  You may choose to
827     * <B STYLE='color: red'>await</B> the {@link Promise}{@code <Void>} to ensure that
828     * the Browser Function has run to completion.
829     * </DIV>
830     */
831    public static Script<Void> insertText(String text)
832    {
833        // Build the JSON Request-Object (as a String); only 1 Parameter is passed
834        final String requestJSON = WriteJSON.get
835            (CDPTypes.STRING, "text", false, "Input.insertText", text);
836
837        return Script.NO_RET(Domains.Input, "insertText", requestJSON);
838    }
839
840    /**
841     * Ignores input events (useful while auditing page).
842     * 
843     * @param ignore Ignores input events processing when set to true.
844     * 
845     * @return An instance of <CODE>{@link Script}&lt;Void&gt;</CODE>
846     *
847     * <BR /><BR />This {@code Script} instance must be <B STYLE='color:red'>executed</B> before the
848     * browser receives the invocation-request.
849     *
850     * <BR /><BR /><DIV CLASS=JDHint>
851     * This Browser-Function <I>does not have</I> a return-value.  You may choose to
852     * <B STYLE='color: red'>await</B> the {@link Promise}{@code <Void>} to ensure that
853     * the Browser Function has run to completion.
854     * </DIV>
855     */
856    public static Script<Void> setIgnoreInputEvents(boolean ignore)
857    {
858        // Build the JSON Request-Object (as a String); only 1 Parameter is passed
859        final String requestJSON = WriteJSON.get
860            (CDPTypes.PRIMITIVE_BOOLEAN, "ignore", false, "Input.setIgnoreInputEvents", ignore);
861
862        return Script.NO_RET(Domains.Input, "setIgnoreInputEvents", requestJSON);
863    }
864
865    /**
866     * Prevents default drag and drop behavior and instead emits <CODE>Input.dragIntercepted</CODE> events.
867     * Drag and drop behavior can be directly controlled via <CODE>Input.dispatchDragEvent</CODE>.
868     * 
869     * <BR /><B CLASS=Exp-Top>EXPERIMENTAL</B>
870     * 
871     * @param enabled -
872     * 
873     * @return An instance of <CODE>{@link Script}&lt;Void&gt;</CODE>
874     *
875     * <BR /><BR />This {@code Script} instance must be <B STYLE='color:red'>executed</B> before the
876     * browser receives the invocation-request.
877     *
878     * <BR /><BR /><DIV CLASS=JDHint>
879     * This Browser-Function <I>does not have</I> a return-value.  You may choose to
880     * <B STYLE='color: red'>await</B> the {@link Promise}{@code <Void>} to ensure that
881     * the Browser Function has run to completion.
882     * </DIV>
883     */
884    public static Script<Void> setInterceptDrags(boolean enabled)
885    {
886        // Build the JSON Request-Object (as a String); only 1 Parameter is passed
887        final String requestJSON = WriteJSON.get
888            (CDPTypes.PRIMITIVE_BOOLEAN, "enabled", false, "Input.setInterceptDrags", enabled);
889
890        return Script.NO_RET(Domains.Input, "setInterceptDrags", requestJSON);
891    }
892
893    /**
894     * Synthesizes a pinch gesture over a time period by issuing appropriate touch events.
895     * 
896     * <BR /><B CLASS=Exp-Top>EXPERIMENTAL</B>
897     * 
898     * <BR /><BR /><DIV CLASS=JDHint>
899     * 👍 Because of the sheer number of input parameters to this method, there is a
900     * a {@link CommandBuilder} variant to this method which may be invoked instead.
901     * 
902     * <BR /><BR />
903     * Please View: {@link #synthesizePinchGesture()}
904     * </DIV>
905     * 
906     * @param x X coordinate of the start of the gesture in CSS pixels.
907     * 
908     * @param y Y coordinate of the start of the gesture in CSS pixels.
909     * 
910     * @param scaleFactor Relative scale factor after zooming (&gt;1.0 zooms in, &lt;1.0 zooms out).
911     * 
912     * @param relativeSpeed Relative pointer speed in pixels per second (default: 800).
913     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
914     * 
915     * @param gestureSourceType 
916     * Which type of input events to be generated (default: 'default', which queries the platform
917     * for the preferred input type).
918     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
919     * 
920     * @return An instance of <CODE>{@link Script}&lt;Void&gt;</CODE>
921     *
922     * <BR /><BR />This {@code Script} instance must be <B STYLE='color:red'>executed</B> before the
923     * browser receives the invocation-request.
924     *
925     * <BR /><BR /><DIV CLASS=JDHint>
926     * This Browser-Function <I>does not have</I> a return-value.  You may choose to
927     * <B STYLE='color: red'>await</B> the {@link Promise}{@code <Void>} to ensure that
928     * the Browser Function has run to completion.
929     * </DIV>
930     */
931    public static Script<Void> synthesizePinchGesture
932        (Number x, Number y, Number scaleFactor, Integer relativeSpeed, String gestureSourceType)
933    {
934        // Convert all Method Parameters into a JSON Request-Object (as a String)
935        final String requestJSON = WriteJSON.get(
936            Input$$Commands.synthesizePinchGesture$$, "Input.synthesizePinchGesture",
937            x, y, scaleFactor, relativeSpeed, gestureSourceType
938        );
939
940        return Script.NO_RET(Domains.Input, "synthesizePinchGesture", requestJSON);
941    }
942
943    /**
944     * Synthesizes a scroll gesture over a time period by issuing appropriate touch events.
945     * 
946     * <BR /><B CLASS=Exp-Top>EXPERIMENTAL</B>
947     * 
948     * <BR /><BR /><DIV CLASS=JDHint>
949     * 👍 Because of the sheer number of input parameters to this method, there is a
950     * a {@link CommandBuilder} variant to this method which may be invoked instead.
951     * 
952     * <BR /><BR />
953     * Please View: {@link #synthesizeScrollGesture()}
954     * </DIV>
955     * 
956     * @param x X coordinate of the start of the gesture in CSS pixels.
957     * 
958     * @param y Y coordinate of the start of the gesture in CSS pixels.
959     * 
960     * @param xDistance The distance to scroll along the X axis (positive to scroll left).
961     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
962     * 
963     * @param yDistance The distance to scroll along the Y axis (positive to scroll up).
964     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
965     * 
966     * @param xOverscroll 
967     * The number of additional pixels to scroll back along the X axis, in addition to the given
968     * distance.
969     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
970     * 
971     * @param yOverscroll 
972     * The number of additional pixels to scroll back along the Y axis, in addition to the given
973     * distance.
974     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
975     * 
976     * @param preventFling Prevent fling (default: true).
977     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
978     * 
979     * @param speed Swipe speed in pixels per second (default: 800).
980     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
981     * 
982     * @param gestureSourceType 
983     * Which type of input events to be generated (default: 'default', which queries the platform
984     * for the preferred input type).
985     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
986     * 
987     * @param repeatCount The number of times to repeat the gesture (default: 0).
988     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
989     * 
990     * @param repeatDelayMs The number of milliseconds delay between each repeat. (default: 250).
991     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
992     * 
993     * @param interactionMarkerName The name of the interaction markers to generate, if not empty (default: "").
994     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
995     * 
996     * @return An instance of <CODE>{@link Script}&lt;Void&gt;</CODE>
997     *
998     * <BR /><BR />This {@code Script} instance must be <B STYLE='color:red'>executed</B> before the
999     * browser receives the invocation-request.
1000     *
1001     * <BR /><BR /><DIV CLASS=JDHint>
1002     * This Browser-Function <I>does not have</I> a return-value.  You may choose to
1003     * <B STYLE='color: red'>await</B> the {@link Promise}{@code <Void>} to ensure that
1004     * the Browser Function has run to completion.
1005     * </DIV>
1006     */
1007    public static Script<Void> synthesizeScrollGesture(
1008            Number x, Number y, Number xDistance, Number yDistance, Number xOverscroll,
1009            Number yOverscroll, Boolean preventFling, Integer speed, String gestureSourceType,
1010            Integer repeatCount, Integer repeatDelayMs, String interactionMarkerName
1011        )
1012    {
1013        // Convert all Method Parameters into a JSON Request-Object (as a String)
1014        final String requestJSON = WriteJSON.get(
1015            Input$$Commands.synthesizeScrollGesture$$, "Input.synthesizeScrollGesture",
1016            x, y, xDistance, yDistance, xOverscroll, yOverscroll, preventFling, speed,
1017            gestureSourceType, repeatCount, repeatDelayMs, interactionMarkerName
1018        );
1019
1020        return Script.NO_RET(Domains.Input, "synthesizeScrollGesture", requestJSON);
1021    }
1022
1023    /**
1024     * Synthesizes a tap gesture over a time period by issuing appropriate touch events.
1025     * 
1026     * <BR /><B CLASS=Exp-Top>EXPERIMENTAL</B>
1027     * 
1028     * <BR /><BR /><DIV CLASS=JDHint>
1029     * 👍 Because of the sheer number of input parameters to this method, there is a
1030     * a {@link CommandBuilder} variant to this method which may be invoked instead.
1031     * 
1032     * <BR /><BR />
1033     * Please View: {@link #synthesizeTapGesture()}
1034     * </DIV>
1035     * 
1036     * @param x X coordinate of the start of the gesture in CSS pixels.
1037     * 
1038     * @param y Y coordinate of the start of the gesture in CSS pixels.
1039     * 
1040     * @param duration Duration between touchdown and touchup events in ms (default: 50).
1041     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
1042     * 
1043     * @param tapCount Number of times to perform the tap (e.g. 2 for double tap, default: 1).
1044     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
1045     * 
1046     * @param gestureSourceType 
1047     * Which type of input events to be generated (default: 'default', which queries the platform
1048     * for the preferred input type).
1049     * <BR /><B CLASS=Opt-Top>OPTIONAL</B>
1050     * 
1051     * @return An instance of <CODE>{@link Script}&lt;Void&gt;</CODE>
1052     *
1053     * <BR /><BR />This {@code Script} instance must be <B STYLE='color:red'>executed</B> before the
1054     * browser receives the invocation-request.
1055     *
1056     * <BR /><BR /><DIV CLASS=JDHint>
1057     * This Browser-Function <I>does not have</I> a return-value.  You may choose to
1058     * <B STYLE='color: red'>await</B> the {@link Promise}{@code <Void>} to ensure that
1059     * the Browser Function has run to completion.
1060     * </DIV>
1061     */
1062    public static Script<Void> synthesizeTapGesture
1063        (Number x, Number y, Integer duration, Integer tapCount, String gestureSourceType)
1064    {
1065        // Convert all Method Parameters into a JSON Request-Object (as a String)
1066        final String requestJSON = WriteJSON.get(
1067            Input$$Commands.synthesizeTapGesture$$, "Input.synthesizeTapGesture",
1068            x, y, duration, tapCount, gestureSourceType
1069        );
1070
1071        return Script.NO_RET(Domains.Input, "synthesizeTapGesture", requestJSON);
1072    }
1073
1074
1075    // ********************************************************************************************
1076    // ********************************************************************************************
1077    // CommandBuilder Getter-Methods
1078    // ********************************************************************************************
1079    // ********************************************************************************************
1080
1081
1082    /**
1083     * Creates a buider for conveniently assigning parameters to this method.
1084     * 
1085     * <BR /><BR /><DIV CLASS=JDHint>
1086     * Note that the original method expects 5 parameters, and can be cumbersome.
1087     * </DIV>
1088     * 
1089     * @return {@link CommandBuilder} instance, for assigning parameter values, one by one.
1090     * @see #dispatchDragEvent
1091     */
1092    public static CommandBuilder<Void> dispatchDragEvent()
1093    { return CommandBuilder.builder(Input$$Commands.dispatchDragEvent$$); }
1094
1095    /**
1096     * Creates a buider for conveniently assigning parameters to this method.
1097     * 
1098     * <BR /><BR /><DIV CLASS=JDHint>
1099     * Note that the original method expects 15 parameters, and can be cumbersome.
1100     * </DIV>
1101     * 
1102     * @return {@link CommandBuilder} instance, for assigning parameter values, one by one.
1103     * @see #dispatchKeyEvent
1104     */
1105    public static CommandBuilder<Void> dispatchKeyEvent()
1106    { return CommandBuilder.builder(Input$$Commands.dispatchKeyEvent$$); }
1107
1108    /**
1109     * Creates a buider for conveniently assigning parameters to this method.
1110     * 
1111     * <BR /><BR /><DIV CLASS=JDHint>
1112     * Note that the original method expects 16 parameters, and can be cumbersome.
1113     * </DIV>
1114     * 
1115     * @return {@link CommandBuilder} instance, for assigning parameter values, one by one.
1116     * @see #dispatchMouseEvent
1117     */
1118    public static CommandBuilder<Void> dispatchMouseEvent()
1119    { return CommandBuilder.builder(Input$$Commands.dispatchMouseEvent$$); }
1120
1121    /**
1122     * Creates a buider for conveniently assigning parameters to this method.
1123     * 
1124     * <BR /><BR /><DIV CLASS=JDHint>
1125     * Note that the original method expects 9 parameters, and can be cumbersome.
1126     * </DIV>
1127     * 
1128     * @return {@link CommandBuilder} instance, for assigning parameter values, one by one.
1129     * @see #emulateTouchFromMouseEvent
1130     */
1131    public static CommandBuilder<Void> emulateTouchFromMouseEvent()
1132    { return CommandBuilder.builder(Input$$Commands.emulateTouchFromMouseEvent$$); }
1133
1134    /**
1135     * Creates a buider for conveniently assigning parameters to this method.
1136     * 
1137     * <BR /><BR /><DIV CLASS=JDHint>
1138     * Note that the original method expects 5 parameters, and can be cumbersome.
1139     * </DIV>
1140     * 
1141     * @return {@link CommandBuilder} instance, for assigning parameter values, one by one.
1142     * @see #imeSetComposition
1143     */
1144    public static CommandBuilder<Void> imeSetComposition()
1145    { return CommandBuilder.builder(Input$$Commands.imeSetComposition$$); }
1146
1147    /**
1148     * Creates a buider for conveniently assigning parameters to this method.
1149     * 
1150     * <BR /><BR /><DIV CLASS=JDHint>
1151     * Note that the original method expects 5 parameters, and can be cumbersome.
1152     * </DIV>
1153     * 
1154     * @return {@link CommandBuilder} instance, for assigning parameter values, one by one.
1155     * @see #synthesizePinchGesture
1156     */
1157    public static CommandBuilder<Void> synthesizePinchGesture()
1158    { return CommandBuilder.builder(Input$$Commands.synthesizePinchGesture$$); }
1159
1160    /**
1161     * Creates a buider for conveniently assigning parameters to this method.
1162     * 
1163     * <BR /><BR /><DIV CLASS=JDHint>
1164     * Note that the original method expects 12 parameters, and can be cumbersome.
1165     * </DIV>
1166     * 
1167     * @return {@link CommandBuilder} instance, for assigning parameter values, one by one.
1168     * @see #synthesizeScrollGesture
1169     */
1170    public static CommandBuilder<Void> synthesizeScrollGesture()
1171    { return CommandBuilder.builder(Input$$Commands.synthesizeScrollGesture$$); }
1172
1173    /**
1174     * Creates a buider for conveniently assigning parameters to this method.
1175     * 
1176     * <BR /><BR /><DIV CLASS=JDHint>
1177     * Note that the original method expects 5 parameters, and can be cumbersome.
1178     * </DIV>
1179     * 
1180     * @return {@link CommandBuilder} instance, for assigning parameter values, one by one.
1181     * @see #synthesizeTapGesture
1182     */
1183    public static CommandBuilder<Void> synthesizeTapGesture()
1184    { return CommandBuilder.builder(Input$$Commands.synthesizeTapGesture$$); }
1185
1186
1187}