congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
EventListenerList.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.batik.dom.events.EventListenerList
constructor

Best Java code snippets using org.apache.batik.dom.events.EventListenerList.<init> (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.eventsEventListenerList<init>

Popular methods of EventListenerList

  • addListener
    Adds a listener.
  • 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

  • Making http post requests using okhttp
  • findViewById (Activity)
  • setScale (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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