/** * 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); }
/** * 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); }
/** * 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); }