Interface EventTarget

All Known Subinterfaces:
Attr, CDATASection, CharacterData, Comment, Document, DocumentFragment, DocumentType, Element, EntityReference, GlobalEventHandlers, HTMLAnchorElement, HTMLAppletElement, HTMLAreaElement, HTMLBaseElement, HTMLBaseFontElement, HTMLBodyElement, HTMLBRElement, HTMLButtonElement, HTMLCanvasElement, HTMLDataElement, HTMLDataListElement, HTMLDetailsElement, HTMLDialogElement, HTMLDirectoryElement, HTMLDivElement, HTMLDListElement, HTMLDocument, HTMLElement, HTMLEmbedElement, HTMLFieldSetElement, HTMLFontElement, HTMLFormElement, HTMLHeadElement, HTMLHeadingElement, HTMLHRElement, HTMLHtmlElement, HTMLIFrameElement, HTMLImageElement, HTMLInputElement, HTMLLabelElement, HTMLLegendElement, HTMLLIElement, HTMLLinkElement, HTMLMapElement, HTMLMarqueeElement, HTMLMenuElement, HTMLMetaElement, HTMLMeterElement, HTMLModElement, HTMLObjectElement, HTMLOListElement, HTMLOptGroupElement, HTMLOptionElement, HTMLOutputElement, HTMLParagraphElement, HTMLParamElement, HTMLPictureElement, HTMLPreElement, HTMLProgressElement, HTMLQuoteElement, HTMLScriptElement, HTMLSelectElement, HTMLSlotElement, HTMLSourceElement, HTMLSpanElement, HTMLStyleElement, HTMLTableCaptionElement, HTMLTableCellElement, HTMLTableColElement, HTMLTableDataCellElement, HTMLTableElement, HTMLTableHeaderCellElement, HTMLTableRowElement, HTMLTableSectionElement, HTMLTextAreaElement, HTMLTimeElement, HTMLTitleElement, HTMLUListElement, HTMLUnknownElement, HTMLVideoElement, Node, Notation, ParentNode, ProcessingInstruction, SMILAnimateColorElement, SMILAnimateElement, SMILAnimateMotionElement, SMILAnimation, SMILDocument, SMILElement, SMILLayoutElement, SMILMediaElement, SMILRefElement, SMILRegionElement, SMILRootLayoutElement, SMILSetElement, SMILSwitchElement, SMILTopLayoutElement, SVGAElement, SVGAltGlyphDefElement, SVGAltGlyphElement, SVGAltGlyphItemElement, SVGAnimateElement, SVGAnimateMotionElement, SVGAnimateTransformElement, SVGAnimationElement, SVGCircleElement, SVGClipPathElement, SVGColorProfileElement, SVGComponentTransferFunctionElement, SVGCursorElement, SVGDefinitionSrcElement, SVGDefsElement, SVGDescElement, SVGElement, SVGElementInstance, SVGEllipseElement, SVGFEBlendElement, SVGFEColorMatrixElement, SVGFEComponentTransferElement, SVGFECompositeElement, SVGFEConvolveMatrixElement, SVGFEDiffuseLightingElement, SVGFEDisplacementMapElement, SVGFEDistantLightElement, SVGFEFloodElement, SVGFEFuncAElement, SVGFEFuncBElement, SVGFEFuncGElement, SVGFEFuncRElement, SVGFEGaussianBlurElement, SVGFEImageElement, SVGFEMergeElement, SVGFEMergeNodeElement, SVGFEMorphologyElement, SVGFEOffsetElement, SVGFEPointLightElement, SVGFESpecularLightingElement, SVGFESpotLightElement, SVGFETileElement, SVGFETurbulenceElement, SVGFilterElement, SVGFontElement, SVGFontFaceElement, SVGFontFaceFormatElement, SVGFontFaceNameElement, SVGFontFaceSrcElement, SVGFontFaceUriElement, SVGForeignObjectElement, SVGGElement, SVGGlyphElement, SVGGlyphRefElement, SVGGradientElement, SVGHKernElement, SVGImageElement, SVGLinearGradientElement, SVGLineElement, SVGMarkerElement, SVGMaskElement, SVGMetadataElement, SVGMissingGlyphElement, SVGMPathElement, SVGPathElement, SVGPatternElement, SVGPolygonElement, SVGPolylineElement, SVGRadialGradientElement, SVGRectElement, SVGScriptElement, SVGSetElement, SVGStopElement, SVGSVGElement, SVGSwitchElement, SVGSymbolElement, SVGTextContentElement, SVGTextElement, SVGTextPathElement, SVGTextPositioningElement, SVGTitleElement, SVGTRefElement, SVGTSpanElement, SVGUseElement, SVGViewElement, SVGVKernElement, Text, Window, WindowEventHandlers, WindowProxy, XMLHttpRequest, XMLHttpRequestEventTarget, XMLHttpRequestUpload, XPathNamespace
All Known Implementing Classes:
AttrImpl, CDataSectionImpl, CharacterDataImpl, CommentImpl, DocumentFragmentImpl, DocumentImpl, DocumentTypeImpl, DOM2DTMdefaultNamespaceDeclarationNode, DTMNodeProxy, ElementImpl, EntityReferenceImpl, EventTargetImpl, HTMLAnchorElementImpl, HTMLBaseElementImpl, HTMLBasicInputElement, HTMLBodyElementImpl, HTMLBRElementImpl, HTMLButtonElementImpl, HTMLCanvasElementImpl, HTMLCenterElementImpl, HTMLDDElementImpl, HTMLDetailsElementImpl, HTMLDialogElementImpl, HTMLDirectoryElementImpl, HTMLDivElementImpl, HTMLDListElementImpl, HTMLDocumentImpl, HTMLElementImpl, HTMLEmElementImpl, HTMLFieldsetElementImpl, HTMLFigureElementImpl, HTMLFormElementImpl, HTMLGenericMarkupElement, HTMLHeadElementImpl, HTMLHeadingElementImpl, HTMLHRElementImpl, HTMLHtmlElementImpl, HTMLIFrameElementImpl, HTMLImageElementImpl, HTMLInputElementImpl, HTMLLabelElementImpl, HTMLLegendElementImpl, HTMLLIElementImpl, HTMLLinkElementImpl, HTMLMarqueeElementImpl, HTMLMeterElementImpl, HTMLMonospacedElementImpl, HTMLNonStandardElement, HTMLNoScriptElementImpl, HTMLObjectElementImpl, HTMLOListElementImpl, HTMLOptGroupElementImpl, HTMLOptionElementImpl, HTMLPElementImpl, HTMLPreElementImpl, HTMLProcessingInstruction, HTMLProgressElementImpl, HTMLQuoteElementImpl, HTMLScriptElementImpl, HTMLSelectElementImpl, HTMLSmallElementImpl, HTMLSpanElementImpl, HTMLStrikeElementImpl, HTMLStrongElementImpl, HTMLStyleElementImpl, HTMLSuperscriptElementImpl, HTMLTableCaptionElementImpl, HTMLTableCellElementImpl, HTMLTableColElementImpl, HTMLTableColGroupElementImpl, HTMLTableElementImpl, HTMLTableRowElementImpl, HTMLTableSectionElementImpl, HTMLTextAreaElementImpl, HTMLTitleElementImpl, HTMLUListElementImpl, HTMLUnderlineElementImpl, HTMLVideoElementImpl, HttpRequest, NodeImpl, NotationImpl, RSSChanelElementImpl, RSSDescriptionElementImpl, RSSElement, RSSElementImpl, RSSItemElementImpl, RSSTitleElementImpl, SVGAElementImpl, SVGAnimateElementImpl, SVGAnimateTransformElementImpl, SVGAnimationElementImpl, SVGAnimationImpl, SVGCircleElementImpl, SVGClipPathElementImpl, SVGDefsElementImpl, SVGElementImpl, SVGEllipseElementImpl, SVGFontElementImpl, SVGFontFaceElementImpl, SVGGElementImpl, SVGGradientElementImpl, SVGGraphic, SVGImageElementImpl, SVGLinearGradientElementImpl, SVGLineElementImpl, SVGLocatableImpl, SVGPathElementImpl, SVGPolygonElementImpl, SVGPolylineElementImpl, SVGRadialGradientElementImpl, SVGRectElementImpl, SVGStopElementImpl, SVGStylableImpl, SVGSVGElementImpl, SVGSymbolElementImpl, SVGTextElementImpl, SVGTransformableImpl, SVGUseElementImpl, TextImpl, WindowEventHandlersImpl, WindowImpl, XMLDocument, XMLHttpRequestEventTargetImpl, XMLHttpRequestImpl, XMLHttpRequestUploadImpl, XPathNamespaceImpl

public interface EventTarget

EventTarget interface.

  • Method Details

    • addEventListener

      void addEventListener(String type, Function listener)

      addEventListener.

      Parameters:
      type - a String object.
      listener - a Function object.
    • addEventListener

      void addEventListener(String type, Function listener, boolean useCapture)

      addEventListener.

      Parameters:
      type - a String object.
      listener - a Function object.
      useCapture - a boolean.
    • removeEventListener

      void removeEventListener(String script, Function function)

      removeEventListener.

      Parameters:
      script - a String object.
      function - a Function object.
    • removeEventListener

      void removeEventListener(String type, Function listener, boolean useCapture)

      removeEventListener.

      Parameters:
      type - a String object.
      listener - a Function object.
      useCapture - a boolean.
    • dispatchEvent

      boolean dispatchEvent(Node element, Event evt)

      dispatchEvent.

      Parameters:
      element - a Node object.
      evt - a Event object.
      Returns:
      a boolean.
    • dispatchEvent

      boolean dispatchEvent(Event evt) throws EventException

      dispatchEvent.

      Parameters:
      evt - a Event object.
      Returns:
      a boolean.
      Throws:
      EventException - if any.