EventTarget addEventListener - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for EventTarget addEventListener method.

This code example shows how to use the following methods:addEventListener
    /* 
     * EventTarget Interface 
     */ 
 
    public void addEventListener(String type, EventListener listener, boolean useCapture) {
        mEventTarget.addEventListener(type, listener, useCapture);
    } 
 
    public void removeEventListener(String type, EventListener listener, boolean useCapture) {
        mEventTarget.removeEventListener(type, listener, useCapture);
    } 
 
    public boolean dispatchEvent(Event evt) throws EventException {
        return mEventTarget.dispatchEvent(evt);
    } 
 
    public String getBaseURI() {
        return null; 
    } 
 
5
CodeRank
This code example shows how to use the following methods:addEventListener
    /* 
     * EventTarget Interface 
     */ 
 
    public void addEventListener(String type, EventListener listener, boolean useCapture) {
        mEventTarget.addEventListener(type, listener, useCapture);
    } 
 
    public void removeEventListener(String type, EventListener listener, boolean useCapture) {
        mEventTarget.removeEventListener(type, listener, useCapture);
    } 
 
    public boolean dispatchEvent(Event evt) throws EventException {
        return mEventTarget.dispatchEvent(evt);
    } 
 
    public String getBaseURI() {
        return null; 
    } 
 
4
CodeRank
This code example shows how to use the following methods:addEventListener
    /* 
     * EventTarget Interface 
     */ 
 
    public void addEventListener(String type, EventListener listener, boolean useCapture) {
        mEventTarget.addEventListener(type, listener, useCapture);
    } 
 
    public void removeEventListener(String type, EventListener listener, boolean useCapture) {
        mEventTarget.removeEventListener(type, listener, useCapture);
    } 
 
    public boolean dispatchEvent(Event evt) throws EventException {
        return mEventTarget.dispatchEvent(evt);
    } 
 
    public String getBaseURI() {
        return null; 
    } 
 
4
CodeRank
This code example shows how to use the following methods:addEventListener
    /* 
     * EventTarget Interface 
     */ 
 
    public void addEventListener(String type, EventListener listener, boolean useCapture) {
        mEventTarget.addEventListener(type, listener, useCapture);
    } 
 
    public void removeEventListener(String type, EventListener listener, boolean useCapture) {
        mEventTarget.removeEventListener(type, listener, useCapture);
    } 
 
    public boolean dispatchEvent(Event evt) throws EventException {
        return mEventTarget.dispatchEvent(evt);
    } 
     
    public String getBaseURI() {
        return null; 
    } 
 
4
CodeRank
This code example shows how to use the following methods:addEventListener
    /* 
     * EventTarget Interface 
     */ 
 
    public void addEventListener(String type, EventListener listener, boolean useCapture) {
        mEventTarget.addEventListener(type, listener, useCapture);
    } 
 
    public void removeEventListener(String type, EventListener listener, boolean useCapture) {
        mEventTarget.removeEventListener(type, listener, useCapture);
    } 
 
    public boolean dispatchEvent(Event evt) throws EventException {
        return mEventTarget.dispatchEvent(evt);
    } 
} 
4
CodeRank
This code example shows how to use the following methods:addEventListener
        addEventToUsedEvents(); 
 
        if(this.phase.equals("capture")){
            targetElement.addEventListener(this.eventType, this, true);
        }else{ 
            targetElement.addEventListener(this.eventType, this, false);
        } 
    } 
 
    private void addEventToUsedEvents() { 
        //add eventType to list of used events in XFormsProcessor 
        List usedEvents =  this.container.getProcessor().getEventList();
        if(!usedEvents.contains(this.eventType)){
            usedEvents.add(this.eventType);
        } 
    } 
 
 
    /** 
     * Disposes this action. 
4
CodeRank
addEventListener Method Overview
This method allows the registration of event listeners on the event target.
See Code Examples for other Java 8 EventTarget Methods: