/** * Returns an array of EventListeners that match the given namespace URI. */ public Entry[] getEventListeners(String namespaceURI) { if (namespaceURI == null) { return getEventListeners(); } Entry[] ls = (Entry[]) listenersNS.get(namespaceURI); if (ls != null) { return ls; } int count = counts.get(namespaceURI); if (count == 0) { return null; } ls = new Entry[count]; listenersNS.put(namespaceURI, ls); int i = 0; for (Entry e = head; i < count; e = e.next) { if (namespaceURI.equals(e.namespaceURI)) { ls[i++] = e; } } return ls; }
/** * Returns an array of EventListeners that match the given namespace URI. */ public Entry[] getEventListeners(String namespaceURI) { if (namespaceURI == null) { return getEventListeners(); } Entry[] ls = (Entry[]) listenersNS.get(namespaceURI); if (ls != null) { return ls; } int count = counts.get(namespaceURI); if (count == 0) { return null; } ls = new Entry[count]; listenersNS.put(namespaceURI, ls); int i = 0; for (Entry e = head; i < count; e = e.next) { if (namespaceURI.equals(e.namespaceURI)) { ls[i++] = e; } } return ls; }
/** * Returns an array of EventListeners that match the given namespace URI. */ public Entry[] getEventListeners(String namespaceURI) { if (namespaceURI == null) { return getEventListeners(); } Entry[] ls = (Entry[]) listenersNS.get(namespaceURI); if (ls != null) { return ls; } int count = counts.get(namespaceURI); if (count == 0) { return null; } ls = new Entry[count]; listenersNS.put(namespaceURI, ls); int i = 0; for (Entry e = head; i < count; e = e.next) { if (namespaceURI.equals(e.namespaceURI)) { ls[i++] = e; } } return ls; }
EventListenerList.Entry[] listeners = list.getEventListeners(); fireEventListeners(node, e, listeners, stoppedGroups, toBeStoppedGroups);
EventListenerList.Entry[] listeners = list.getEventListeners(); fireEventListeners(node, e, listeners, stoppedGroups, toBeStoppedGroups);
EventListenerList.Entry[] listeners = list.getEventListeners(); fireEventListeners(node, e, listeners, stoppedGroups, toBeStoppedGroups);
/** * Fires the registered implementation listeners on the given event * target. */ protected void fireImplementationEventListeners(NodeEventTarget node, AbstractEvent e, boolean useCapture) { String type = e.getType(); XBLEventSupport support = (XBLEventSupport) node.getEventSupport(); // check if the event support has been instantiated if (support == null) { return; } EventListenerList list = support.getImplementationEventListeners(type, useCapture); // check if the event listeners list is not empty if (list == null) { return; } // dump event listeners, we get the registered listeners NOW EventListenerList.Entry[] listeners = list.getEventListeners(); fireEventListeners(node, e, listeners, null, null); } }
/** * Fires the registered listeners on the given event target. */ protected void fireEventListeners(NodeEventTarget node, AbstractEvent e, boolean useCapture, HashSet stoppedGroups, HashSet toBeStoppedGroups) { String type = e.getType(); EventSupport support = node.getEventSupport(); // check if the event support has been instantiated if (support == null) { return; } EventListenerList list = support.getEventListeners(type, useCapture); // check if the event listeners list is not empty if (list == null) { return; } // dump event listeners, we get the registered listeners NOW EventListenerList.Entry[] listeners = list.getEventListeners(); fireEventListeners(node, e, listeners, stoppedGroups, toBeStoppedGroups); }
/** * Fires the registered listeners on the given event target. */ protected void fireEventListeners(NodeEventTarget node, AbstractEvent e, boolean useCapture, HashSet stoppedGroups, HashSet toBeStoppedGroups) { String type = e.getType(); EventSupport support = node.getEventSupport(); // check if the event support has been instantiated if (support == null) { return; } EventListenerList list = support.getEventListeners(type, useCapture); // check if the event listeners list is not empty if (list == null) { return; } // dump event listeners, we get the registered listeners NOW EventListenerList.Entry[] listeners = list.getEventListeners(); fireEventListeners(node, e, listeners, stoppedGroups, toBeStoppedGroups); }
/** * Fires the registered implementation listeners on the given event * target. */ protected void fireImplementationEventListeners(NodeEventTarget node, AbstractEvent e, boolean useCapture) { String type = e.getType(); XBLEventSupport support = (XBLEventSupport) node.getEventSupport(); // check if the event support has been instantiated if (support == null) { return; } EventListenerList list = support.getImplementationEventListeners(type, useCapture); // check if the event listeners list is not empty if (list == null) { return; } // dump event listeners, we get the registered listeners NOW EventListenerList.Entry[] listeners = list.getEventListeners(); fireEventListeners(node, e, listeners, null, null); } }
/** * Fires the registered implementation listeners on the given event * target. */ protected void fireImplementationEventListeners(NodeEventTarget node, AbstractEvent e, boolean useCapture) { String type = e.getType(); XBLEventSupport support = (XBLEventSupport) node.getEventSupport(); // check if the event support has been instantiated if (support == null) { return; } EventListenerList list = support.getImplementationEventListeners(type, useCapture); // check if the event listeners list is not empty if (list == null) { return; } // dump event listeners, we get the registered listeners NOW EventListenerList.Entry[] listeners = list.getEventListeners(); fireEventListeners(node, e, listeners, null, null); } }
/** * Fires the registered listeners on the given event target. */ protected void fireEventListeners(NodeEventTarget node, AbstractEvent e, boolean useCapture, HashSet stoppedGroups, HashSet toBeStoppedGroups) { String type = e.getType(); EventSupport support = node.getEventSupport(); // check if the event support has been instantiated if (support == null) { return; } EventListenerList list = support.getEventListeners(type, useCapture); // check if the event listeners list is not empty if (list == null) { return; } // dump event listeners, we get the registered listeners NOW EventListenerList.Entry[] listeners = list.getEventListeners(); fireEventListeners(node, e, listeners, stoppedGroups, toBeStoppedGroups); }