/** * Simulate a mouse-click. */ public final void click() { DOMImpl.impl.buttonClick(this); }
/** * Creates a <button type='reset'> element. * * @return the newly created element */ public final ButtonElement createResetButtonElement() { return DOMImpl.impl.createButtonElement(this, "reset"); }
/** * Creates an <input type='checkbox'> element. * * @return the newly created element */ public final InputElement createCheckInputElement() { return DOMImpl.impl.createCheckInputElement(this); }
/** * Creates an <area> element. * * @return the newly created element */ public final AreaElement createAreaElement() { return (AreaElement) DOMImpl.impl.createElement(this, AreaElement.TAG); }
/** * Creates an <input type='hidden'> element. * * @return the newly created element */ public final InputElement createHiddenInputElement() { return DOMImpl.impl.createInputElement(this, "hidden"); }
/** * Creates an <input type='radio'> element. * * @param name the name of the radio input (used for grouping) * @return the newly created element */ public final InputElement createRadioInputElement(String name) { return DOMImpl.impl.createInputRadioElement(this, name); }
/** * Creates a 'keypress' event. * * @param ctrlKey <code>true</code> if the ctrl key is depressed * @param altKey <code>true</code> if the alt key is depressed * @param shiftKey <code>true</code> if the shift key is depressed * @param metaKey <code>true</code> if the meta key is depressed * @param charCode the char-code to be set on the event * @return the event object */ public final NativeEvent createKeyPressEvent(boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey, int charCode) { return DOMImpl.impl.createKeyPressEvent(this, ctrlKey, altKey, shiftKey, metaKey, charCode); }
/** * Creates a key-code event ('keydown' or 'keyup'). * * <p> * While this method may be used to create events directly, it is generally * preferable to use existing helper methods such as * {@link #createKeyDownEvent(boolean, boolean, boolean, boolean, int)} or * {@link #createKeyUpEvent(boolean, boolean, boolean, boolean, int)}. * </p> * * @param type the type of event (e.g., BrowserEvents.KEYDOWN, BrowserEvents.KEYPRESS, etc) * @param ctrlKey <code>true</code> if the ctrl key is depressed * @param altKey <code>true</code> if the alt key is depressed * @param shiftKey <code>true</code> if the shift key is depressed * @param metaKey <code>true</code> if the meta key is depressed * @param keyCode the key-code to be set on the event * @return the event object */ public final NativeEvent createKeyCodeEvent(String type, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey, int keyCode) { return DOMImpl.impl.createKeyCodeEvent(this, type, ctrlKey, altKey, shiftKey, metaKey, keyCode); }
/** * Creates an event. * * <p> * While this method may be used to create events directly, it is generally * preferable to use existing helper methods such as * {@link #createFocusEvent()}. * </p> * * <p> * Also, note that on Internet Explorer the 'canBubble' and 'cancelable' * arguments will be ignored (the event's behavior is inferred by the browser * based upon its type). * </p> * * @param type the type of event (e.g., BrowserEvents.FOCUS, BrowserEvents.LOAD, etc) * @param canBubble <code>true</code> if the event should bubble * @param cancelable <code>true</code> if the event should be cancelable * @return the event object */ public final NativeEvent createHtmlEvent(String type, boolean canBubble, boolean cancelable) { return DOMImpl.impl.createHtmlEvent(this, type, canBubble, cancelable); }
boolean cancelable, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey, int keyCode, int charCode) { return DOMImpl.impl.createKeyEvent(this, type, canBubble, cancelable, ctrlKey, altKey, shiftKey, metaKey, keyCode, charCode);
/** * Creates a <br> element. * * @return the newly created element */ public final BRElement createBRElement() { return (BRElement) DOMImpl.impl.createElement(this, BRElement.TAG); }
/** * Creates an <input type='button'> element. * * @return the newly created element */ public final InputElement createButtonInputElement() { return DOMImpl.impl.createInputElement(this, "button"); }
/** * Creates an <input type='radio'> element. * * @param name the name of the radio input (used for grouping) * @return the newly created element */ public final InputElement createRadioInputElement(String name) { return DOMImpl.impl.createInputRadioElement(this, name); }
/** * Creates a 'keypress' event. * * @param ctrlKey <code>true</code> if the ctrl key is depressed * @param altKey <code>true</code> if the alt key is depressed * @param shiftKey <code>true</code> if the shift key is depressed * @param metaKey <code>true</code> if the meta key is depressed * @param charCode the char-code to be set on the event * @return the event object */ public final NativeEvent createKeyPressEvent(boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey, int charCode) { return DOMImpl.impl.createKeyPressEvent(this, ctrlKey, altKey, shiftKey, metaKey, charCode); }
/** * Creates a key-code event ('keydown' or 'keyup'). * * <p> * While this method may be used to create events directly, it is generally * preferable to use existing helper methods such as * {@link #createKeyDownEvent(boolean, boolean, boolean, boolean, int)} or * {@link #createKeyUpEvent(boolean, boolean, boolean, boolean, int)}. * </p> * * @param type the type of event (e.g., BrowserEvents.KEYDOWN, BrowserEvents.KEYPRESS, etc) * @param ctrlKey <code>true</code> if the ctrl key is depressed * @param altKey <code>true</code> if the alt key is depressed * @param shiftKey <code>true</code> if the shift key is depressed * @param metaKey <code>true</code> if the meta key is depressed * @param keyCode the key-code to be set on the event * @return the event object */ public final NativeEvent createKeyCodeEvent(String type, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey, int keyCode) { return DOMImpl.impl.createKeyCodeEvent(this, type, ctrlKey, altKey, shiftKey, metaKey, keyCode); }
/** * Creates an event. * * <p> * While this method may be used to create events directly, it is generally * preferable to use existing helper methods such as * {@link #createFocusEvent()}. * </p> * * <p> * Also, note that on Internet Explorer the 'canBubble' and 'cancelable' * arguments will be ignored (the event's behavior is inferred by the browser * based upon its type). * </p> * * @param type the type of event (e.g., BrowserEvents.FOCUS, BrowserEvents.LOAD, etc) * @param canBubble <code>true</code> if the event should bubble * @param cancelable <code>true</code> if the event should be cancelable * @return the event object */ public final NativeEvent createHtmlEvent(String type, boolean canBubble, boolean cancelable) { return DOMImpl.impl.createHtmlEvent(this, type, canBubble, cancelable); }
boolean cancelable, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey, int keyCode, int charCode) { return DOMImpl.impl.createKeyEvent(this, type, canBubble, cancelable, ctrlKey, altKey, shiftKey, metaKey, keyCode, charCode);
/** * Creates a <caption> element. * * @return the newly created element */ public final TableCaptionElement createCaptionElement() { return (TableCaptionElement) DOMImpl.impl.createElement(this, TableCaptionElement.TAG); }
/** * Creates an <input type='image'> element. * * @return the newly created element */ public final InputElement createImageInputElement() { return DOMImpl.impl.createInputElement(this, "image"); }
/** * Creates a <button type='button'> element. * * @return the newly created element */ public final ButtonElement createPushButtonElement() { return DOMImpl.impl.createButtonElement(this, "button"); }