/** * Creates a new Event object. */ public Event createEvent() { return new DOMUIEvent(); } }
/** * DOM: The <code>initUIEvent</code> method is used to initialize * the value of a <code>UIEvent</code> created through the * <code>DocumentEvent</code> interface. This method may only be * called before the <code>UIEvent</code> has been dispatched via * the <code>dispatchEvent</code> method, though it may be called * multiple times during that phase if necessary. If called * multiple times, the final invocation takes precedence. * * @param typeArg Specifies the event type. * @param canBubbleArg Specifies whether or not the event can bubble. * @param cancelableArg Specifies whether or not the event's default * action can be prevented. * @param viewArg Specifies the <code>Event</code>'s * <code>AbstractView</code>. * @param detailArg Specifies the <code>Event</code>'s detail. */ public void initUIEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, int detailArg) { initEvent(typeArg, canBubbleArg, cancelableArg); this.view = viewArg; this.detail = detailArg; }
/** * <b>DOM</b>: Initializes this event object. */ public void initUIEventNS(String namespaceURIArg, String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, int detailArg) { initEventNS(namespaceURIArg, typeArg, canBubbleArg, cancelableArg); this.view = viewArg; this.detail = detailArg; }
/** * Fires a 'DOMActivate' event to the specified target. * * @param target the event target * @param detailArg the detailArg parameter of the event */ protected void fireDOMActivateEvent(EventTarget target, int detailArg) { DocumentEvent docEvt = (DocumentEvent)((Element)target).getOwnerDocument(); DOMUIEvent uiEvt = (DOMUIEvent)docEvt.createEvent("UIEvents"); uiEvt.initUIEventNS(XMLConstants.XML_EVENTS_NAMESPACE_URI, "DOMActivate", true, // canBubbleArg true, // cancelableArg null, // viewArg 0); // detailArg target.dispatchEvent(uiEvt); } }
/** * Fires a 'DOMFocusIn' event to the specified target. * * @param target the newly focussed event target * @param relatedTarget the previously focussed event target */ protected void fireDOMFocusInEvent(EventTarget target, EventTarget relatedTarget) { DocumentEvent docEvt = (DocumentEvent)((Element)target).getOwnerDocument(); DOMUIEvent uiEvt = (DOMUIEvent)docEvt.createEvent("UIEvents"); uiEvt.initUIEventNS(XMLConstants.XML_EVENTS_NAMESPACE_URI, "DOMFocusIn", true, false, // canBubbleArg null, // cancelableArg 0); // detailArg int limit = DefaultXBLManager.computeBubbleLimit((Node) relatedTarget, (Node) target); uiEvt.setBubbleLimit(limit); target.dispatchEvent(uiEvt); }
/** * Fires a 'DOMFocusIn' event to the specified target. * * @param target the newly focussed event target * @param relatedTarget the previously focussed event target */ protected void fireDOMFocusInEvent(EventTarget target, EventTarget relatedTarget) { DocumentEvent docEvt = (DocumentEvent)((Element)target).getOwnerDocument(); DOMUIEvent uiEvt = (DOMUIEvent)docEvt.createEvent("UIEvents"); uiEvt.initUIEventNS(XMLConstants.XML_EVENTS_NAMESPACE_URI, "DOMFocusIn", true, // canBubbleArg false, // cancelableArg null, // viewArg 0); // detailArg target.dispatchEvent(uiEvt); }
/** * Fires a 'DOMFocusOut' event to the specified target. * * @param target the previously focussed event target * @param relatedTarget the newly focussed event target */ protected void fireDOMFocusOutEvent(EventTarget target, EventTarget relatedTarget) { DocumentEvent docEvt = (DocumentEvent)((Element)target).getOwnerDocument(); DOMUIEvent uiEvt = (DOMUIEvent)docEvt.createEvent("UIEvents"); uiEvt.initUIEventNS(XMLConstants.XML_EVENTS_NAMESPACE_URI, "DOMFocusOut", true, false, // canBubbleArg null, // cancelableArg 0); // detailArg int limit = DefaultXBLManager.computeBubbleLimit((Node) target, (Node) relatedTarget); uiEvt.setBubbleLimit(limit); target.dispatchEvent(uiEvt); } }
/** * Fires a 'DOMFocusIn' event to the specified target. * * @param target the newly focussed event target * @param relatedTarget the previously focussed event target */ protected void fireDOMFocusInEvent(EventTarget target, EventTarget relatedTarget) { DocumentEvent docEvt = (DocumentEvent)((Element)target).getOwnerDocument(); DOMUIEvent uiEvt = (DOMUIEvent)docEvt.createEvent("UIEvents"); uiEvt.initUIEventNS(XMLConstants.XML_EVENTS_NAMESPACE_URI, "DOMFocusIn", true, // canBubbleArg false, // cancelableArg null, // viewArg 0); // detailArg target.dispatchEvent(uiEvt); }
/** * Creates a new Event object. */ public Event createEvent() { return new DOMUIEvent(); } }
/** * <b>DOM</b>: Initializes this event object. */ public void initUIEventNS(String namespaceURIArg, String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, int detailArg) { initEventNS(namespaceURIArg, typeArg, canBubbleArg, cancelableArg); this.view = viewArg; this.detail = detailArg; }
/** * DOM: The <code>initUIEvent</code> method is used to initialize * the value of a <code>UIEvent</code> created through the * <code>DocumentEvent</code> interface. This method may only be * called before the <code>UIEvent</code> has been dispatched via * the <code>dispatchEvent</code> method, though it may be called * multiple times during that phase if necessary. If called * multiple times, the final invocation takes precedence. * * @param typeArg Specifies the event type. * @param canBubbleArg Specifies whether or not the event can bubble. * @param cancelableArg Specifies whether or not the event's default * action can be prevented. * @param viewArg Specifies the <code>Event</code>'s * <code>AbstractView</code>. * @param detailArg Specifies the <code>Event</code>'s detail. */ public void initUIEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, int detailArg) { initEvent(typeArg, canBubbleArg, cancelableArg); this.view = viewArg; this.detail = detailArg; }
/** * Fires a 'DOMFocusOut' event to the specified target. * * @param target the previously focussed event target * @param relatedTarget the newly focussed event target */ protected void fireDOMFocusOutEvent(EventTarget target, EventTarget relatedTarget) { DocumentEvent docEvt = (DocumentEvent)((Element)target).getOwnerDocument(); DOMUIEvent uiEvt = (DOMUIEvent)docEvt.createEvent("UIEvents"); uiEvt.initUIEventNS(XMLConstants.XML_EVENTS_NAMESPACE_URI, "DOMFocusOut", true, // canBubbleArg false, // cancelableArg null, // viewArg 0); // detailArg target.dispatchEvent(uiEvt); }
/** * Creates a new Event object. */ public Event createEvent() { return new DOMUIEvent(); } }
/** * <b>DOM</b>: Initializes this event object. */ public void initUIEventNS(String namespaceURIArg, String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, int detailArg) { initEventNS(namespaceURIArg, typeArg, canBubbleArg, cancelableArg); this.view = viewArg; this.detail = detailArg; }
/** * DOM: The <code>initUIEvent</code> method is used to initialize * the value of a <code>UIEvent</code> created through the * <code>DocumentEvent</code> interface. This method may only be * called before the <code>UIEvent</code> has been dispatched via * the <code>dispatchEvent</code> method, though it may be called * multiple times during that phase if necessary. If called * multiple times, the final invocation takes precedence. * * @param typeArg Specifies the event type. * @param canBubbleArg Specifies whether or not the event can bubble. * @param cancelableArg Specifies whether or not the event's default * action can be prevented. * @param viewArg Specifies the <code>Event</code>'s * <code>AbstractView</code>. * @param detailArg Specifies the <code>Event</code>'s detail. */ public void initUIEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, int detailArg) { initEvent(typeArg, canBubbleArg, cancelableArg); this.view = viewArg; this.detail = detailArg; }
/** * Fires a 'DOMActivate' event to the specified target. * * @param target the event target * @param detailArg the detailArg parameter of the event */ protected void fireDOMActivateEvent(EventTarget target, int detailArg) { DocumentEvent docEvt = (DocumentEvent)((Element)target).getOwnerDocument(); DOMUIEvent uiEvt = (DOMUIEvent)docEvt.createEvent("UIEvents"); uiEvt.initUIEventNS(XMLConstants.XML_EVENTS_NAMESPACE_URI, "DOMActivate", true, // canBubbleArg true, // cancelableArg null, // viewArg 0); // detailArg target.dispatchEvent(uiEvt); } }
/** * Fires a 'DOMFocusOut' event to the specified target. * * @param target the previously focussed event target * @param relatedTarget the newly focussed event target */ protected void fireDOMFocusOutEvent(EventTarget target, EventTarget relatedTarget) { DocumentEvent docEvt = (DocumentEvent)((Element)target).getOwnerDocument(); DOMUIEvent uiEvt = (DOMUIEvent)docEvt.createEvent("UIEvents"); uiEvt.initUIEventNS(XMLConstants.XML_EVENTS_NAMESPACE_URI, "DOMFocusOut", true, // canBubbleArg false, // cancelableArg null, // viewArg 0); // detailArg target.dispatchEvent(uiEvt); }
/** * Fires a 'DOMFocusIn' event to the specified target. * * @param target the newly focussed event target * @param relatedTarget the previously focussed event target */ protected void fireDOMFocusInEvent(EventTarget target, EventTarget relatedTarget) { DocumentEvent docEvt = (DocumentEvent)((Element)target).getOwnerDocument(); DOMUIEvent uiEvt = (DOMUIEvent)docEvt.createEvent("UIEvents"); uiEvt.initUIEventNS(XMLConstants.XML_EVENTS_NAMESPACE_URI, "DOMFocusIn", true, // canBubbleArg false, // cancelableArg null, // viewArg 0); // detailArg target.dispatchEvent(uiEvt); }
/** * Fires a 'DOMFocusOut' event to the specified target. * * @param target the previously focussed event target * @param relatedTarget the newly focussed event target */ protected void fireDOMFocusOutEvent(EventTarget target, EventTarget relatedTarget) { DocumentEvent docEvt = (DocumentEvent)((Element)target).getOwnerDocument(); DOMUIEvent uiEvt = (DOMUIEvent)docEvt.createEvent("UIEvents"); uiEvt.initUIEventNS(XMLConstants.XML_EVENTS_NAMESPACE_URI, "DOMFocusOut", true, // canBubbleArg false, // cancelableArg null, // viewArg 0); // detailArg target.dispatchEvent(uiEvt); }
/** * Fires a 'DOMActivate' event to the specified target. * * @param target the event target * @param detailArg the detailArg parameter of the event */ protected void fireDOMActivateEvent(EventTarget target, int detailArg) { DocumentEvent docEvt = (DocumentEvent)((Element)target).getOwnerDocument(); DOMUIEvent uiEvt = (DOMUIEvent)docEvt.createEvent("UIEvents"); uiEvt.initUIEventNS(XMLConstants.XML_EVENTS_NAMESPACE_URI, "DOMActivate", true, // canBubbleArg true, // cancelableArg null, // viewArg 0); // detailArg target.dispatchEvent(uiEvt); } }