congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
EventListenerList.addListener
Code IndexAdd Tabnine to your IDE (free)

How to use
addListener
method
in
org.apache.batik.dom.events.EventListenerList

Best Java code snippets using org.apache.batik.dom.events.EventListenerList.addListener (Showing top 6 results out of 315)

origin: apache/batik

/**
 * Registers an event listener for the given namespaced event type
 * in the specified group.
 */
public void addEventListenerNS(String namespaceURI,
                String type,
                EventListener listener,
                boolean useCapture,
                Object group) {
  HashMap<String, EventListenerList> listeners;
  if (useCapture) {
    if (capturingListeners == null) {
      capturingListeners = new HashMap();
    }
    listeners = capturingListeners;
  } else {
    if (bubblingListeners == null) {
      bubblingListeners = new HashMap();
    }
    listeners = bubblingListeners;
  }
  EventListenerList list = listeners.get(type);
  if (list == null) {
    list = new EventListenerList();
    listeners.put(type, list);
  }
  list.addListener(namespaceURI, group, listener);
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * Registers an event listener that will not be stopped by the usual
 * XBL stopping.
 */
public void addImplementationEventListenerNS(String namespaceURI,
                       String type,
                       EventListener listener,
                       boolean useCapture) {
  HashMap<String, EventListenerList> listeners;
  if (useCapture) {
    if (capturingImplementationListeners == null) {
      capturingImplementationListeners = new HashMap<String, EventListenerList>();
    }
    listeners = capturingImplementationListeners;
  } else {
    if (bubblingImplementationListeners == null) {
      bubblingImplementationListeners = new HashMap<String, EventListenerList>();
    }
    listeners = bubblingImplementationListeners;
  }
  EventListenerList list = listeners.get(type);
  if (list == null) {
    list = new EventListenerList();
    listeners.put(type, list);
  }
  list.addListener(namespaceURI, null, listener);
}
origin: org.apache.xmlgraphics/batik-dom

/**
 * Registers an event listener for the given namespaced event type
 * in the specified group.
 */
public void addEventListenerNS(String namespaceURI,
                String type,
                EventListener listener,
                boolean useCapture,
                Object group) {
  HashMap<String, EventListenerList> listeners;
  if (useCapture) {
    if (capturingListeners == null) {
      capturingListeners = new HashMap();
    }
    listeners = capturingListeners;
  } else {
    if (bubblingListeners == null) {
      bubblingListeners = new HashMap();
    }
    listeners = bubblingListeners;
  }
  EventListenerList list = listeners.get(type);
  if (list == null) {
    list = new EventListenerList();
    listeners.put(type, list);
  }
  list.addListener(namespaceURI, group, listener);
}
origin: apache/batik

/**
 * Registers an event listener that will not be stopped by the usual
 * XBL stopping.
 */
public void addImplementationEventListenerNS(String namespaceURI,
                       String type,
                       EventListener listener,
                       boolean useCapture) {
  HashMap<String, EventListenerList> listeners;
  if (useCapture) {
    if (capturingImplementationListeners == null) {
      capturingImplementationListeners = new HashMap<String, EventListenerList>();
    }
    listeners = capturingImplementationListeners;
  } else {
    if (bubblingImplementationListeners == null) {
      bubblingImplementationListeners = new HashMap<String, EventListenerList>();
    }
    listeners = bubblingImplementationListeners;
  }
  EventListenerList list = listeners.get(type);
  if (list == null) {
    list = new EventListenerList();
    listeners.put(type, list);
  }
  list.addListener(namespaceURI, null, listener);
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Registers an event listener for the given namespaced event type
 * in the specified group.
 */
public void addEventListenerNS(String namespaceURI,
                String type,
                EventListener listener,
                boolean useCapture,
                Object group) {
  HashTable listeners;
  if (useCapture) {
    if (capturingListeners == null) {
      capturingListeners = new HashTable();
    }
    listeners = capturingListeners;
  } else {
    if (bubblingListeners == null) {
      bubblingListeners = new HashTable();
    }
    listeners = bubblingListeners;
  }
  EventListenerList list = (EventListenerList) listeners.get(type);
  if (list == null) {
    list = new EventListenerList();
    listeners.put(type, list);
  }
  list.addListener(namespaceURI, group, listener);
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Registers an event listener that will not be stopped by the usual
 * XBL stopping.
 */
public void addImplementationEventListenerNS(String namespaceURI,
                       String type,
                       EventListener listener,
                       boolean useCapture) {
  HashTable listeners;
  if (useCapture) {
    if (capturingImplementationListeners == null) {
      capturingImplementationListeners = new HashTable();
    }
    listeners = capturingImplementationListeners;
  } else {
    if (bubblingImplementationListeners == null) {
      bubblingImplementationListeners = new HashTable();
    }
    listeners = bubblingImplementationListeners;
  }
  EventListenerList list = (EventListenerList) listeners.get(type);
  if (list == null) {
    list = new EventListenerList();
    listeners.put(type, list);
  }
  list.addListener(namespaceURI, null, listener);
}
org.apache.batik.dom.eventsEventListenerListaddListener

Javadoc

Adds a listener.

Popular methods of EventListenerList

  • <init>
  • getEventListeners
    Returns an array of EventListeners that match the given namespace URI.
  • removeListener
    Removes a listener.
  • size
    Returns the number of event listeners stored in this object.
  • hasEventListener
    Returns whether there is an event listener for the given namespace URI.

Popular in Java

  • Creating JSON documents from java classes using gson
  • setContentView (Activity)
  • getContentResolver (Context)
  • getSupportFragmentManager (FragmentActivity)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Join (org.hibernate.mapping)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now