Searched refs:listeners (Results 1 - 25 of 99) sorted by relevance

1234

/openjdk7/jdk/src/share/classes/javax/swing/
H A DAbstractListModel.java77 * Returns an array of all the list data listeners
81 * or an empty array if no list data listeners
110 Object[] listeners = listenerList.getListenerList();
113 for (int i = listeners.length - 2; i >= 0; i -= 2) {
114 if (listeners[i] == ListDataListener.class) {
118 ((ListDataListener)listeners[i+1]).contentsChanged(e);
140 Object[] listeners = listenerList.getListenerList();
143 for (int i = listeners.length - 2; i >= 0; i -= 2) {
144 if (listeners[i] == ListDataListener.class) {
148 ((ListDataListener)listeners[
[all...]
H A DAbstractCellEditor.java38 * of listeners.
117 * array if no listeners have been added
125 * Notifies all listeners that have registered interest for
133 Object[] listeners = listenerList.getListenerList();
134 // Process the listeners last to first, notifying
136 for (int i = listeners.length-2; i>=0; i-=2) {
137 if (listeners[i]==CellEditorListener.class) {
141 ((CellEditorListener)listeners[i+1]).editingStopped(changeEvent);
147 * Notifies all listeners that have registered interest for
155 Object[] listeners
[all...]
H A DAbstractSpinnerModel.java62 * store their own listeners here.
97 * array if no listeners have been added
113 Object[] listeners = listenerList.getListenerList();
114 for (int i = listeners.length - 2; i >= 0; i -=2 ) {
115 if (listeners[i] == ChangeListener.class) {
119 ((ChangeListener)listeners[i+1]).stateChanged(changeEvent);
126 * Return an array of all the listeners of the given type that
133 * @param listenerType the type of listeners to return, e.g. ChangeListener.class
H A DDefaultButtonModel.java69 /** Stores the listeners on this model. */
316 * Returns an array of all the change listeners
321 * array if no change listeners are currently registered
333 * Notifies all listeners that have registered interest for
341 Object[] listeners = listenerList.getListenerList();
342 // Process the listeners last to first, notifying
344 for (int i = listeners.length-2; i>=0; i-=2) {
345 if (listeners[i]==ChangeListener.class) {
349 ((ChangeListener)listeners[i+1]).stateChanged(changeEvent);
369 * Returns an array of all the action listeners
[all...]
H A DDefaultSingleSelectionModel.java53 /** The collection of registered listeners */
100 * Returns an array of all the change listeners
105 * array if no change listeners are currently registered
117 * Notifies all listeners that have registered interest for
124 Object[] listeners = listenerList.getListenerList();
125 // Process the listeners last to first, notifying
127 for (int i = listeners.length-2; i>=0; i-=2) {
128 if (listeners[i]==ChangeListener.class) {
132 ((ChangeListener)listeners[i+1]).stateChanged(changeEvent);
148 * for its change listeners
[all...]
H A DJMenuItem.java338 * action listeners without navigating the menu hierarchy. It is the
511 * Notifies all listeners that have registered interest for
519 Object[] listeners = listenerList.getListenerList();
520 // Process the listeners last to first, notifying
522 for (int i = listeners.length-2; i>=0; i-=2) {
523 if (listeners[i]==MenuDragMouseListener.class) {
525 ((MenuDragMouseListener)listeners[i+1]).menuDragMouseEntered(event);
531 * Notifies all listeners that have registered interest for
539 Object[] listeners = listenerList.getListenerList();
540 // Process the listeners las
[all...]
/openjdk7/jdk/src/share/classes/sun/print/
H A DServiceNotifier.java37 * A utility class usable by all print services for managing listeners
40 * to obtain the state of the attributes and notifies the listeners of
46 private Vector listeners; field in class:ServiceNotifier
53 listeners = new Vector();
64 if (listener == null || listeners == null) {
67 listeners.add(listener);
73 if (listener == null || listeners == null) {
76 listeners.remove(listener);
81 return (listeners == null || listeners
[all...]
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/ui/treetable/
H A DAbstractTreeTableModel.java32 * of listeners.
77 * Notify all listeners that have registered interest for
87 Object[] listeners = listenerList.getListenerList();
89 // Process the listeners last to first, notifying
91 for (int i = listeners.length-2; i>=0; i-=2) {
92 if (listeners[i]==TreeModelListener.class) {
97 ((TreeModelListener)listeners[i+1]).treeNodesChanged(e);
103 * Notify all listeners that have registered interest for
113 Object[] listeners = listenerList.getListenerList();
115 // Process the listeners las
[all...]
/openjdk7/jdk/src/share/classes/com/sun/tools/jconsole/
H A DJConsolePlugin.java77 private List<PropertyChangeListener> listeners = null; field in class:JConsolePlugin
97 if (listeners != null) {
98 for (PropertyChangeListener l : listeners) {
102 listeners = null;
210 if (listeners == null) {
211 listeners = new ArrayList<PropertyChangeListener>();
213 listeners.add(listener);
242 if (listeners != null) {
243 listeners.remove(listener);
/openjdk7/jdk/src/share/classes/javax/swing/undo/
H A DUndoableEditSupport.java32 * A support class used for managing <code>UndoableEdit</code> listeners.
39 protected Vector<UndoableEditListener> listeners; field in class:UndoableEditSupport
58 listeners = new Vector<UndoableEditListener>();
69 listeners.addElement(l);
80 listeners.removeElement(l);
88 * array if no listeners have been added
92 return listeners.toArray(new UndoableEditListener[0]);
97 * <code>undoableEditHappened</code> in all listeners. No synchronization
102 Enumeration cursor = ((Vector)listeners.clone()).elements();
111 * <code>undoableEditHappened</code> in all listeners
[all...]
/openjdk7/jdk/src/share/classes/sun/awt/
H A DSunDisplayChanger.java62 private Map listeners = Collections.synchronizedMap(new WeakHashMap(1)); field in class:SunDisplayChanger
79 listeners.put(theListener, null);
94 listeners.remove(theListener);
105 // This method is implemented by making a clone of the set of listeners,
119 synchronized(listeners) {
120 listClone = new HashMap(listeners);
139 listeners.remove(current);
152 // This method is implemented by making a clone of the set of listeners,
166 synchronized (listeners) {
167 listClone = new HashMap(listeners);
[all...]
/openjdk7/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/protocol/local/
H A DLocalMonitoredVm.java50 * List of registered listeners.
52 private ArrayList<VmListener> listeners; field in class:LocalMonitoredVm
69 listeners = new ArrayList<VmListener>();
94 synchronized(listeners) {
95 listeners.add(l);
108 synchronized(listeners) {
109 listeners.remove(l);
110 if (listeners.isEmpty() && task != null) {
121 synchronized(listeners) {
150 synchronized (listeners) {
[all...]
H A DMonitoredHostProvider.java44 private ArrayList<HostListener> listeners; field in class:MonitoredHostProvider
56 this.listeners = new ArrayList<HostListener>();
100 synchronized(listeners) {
101 listeners.add(listener);
114 synchronized(listeners) {
115 listeners.remove(listener);
116 if (listeners.isEmpty() && (task != null)) {
127 synchronized(listeners) {
168 synchronized(listeners) {
169 registered = (ArrayList)listeners
[all...]
/openjdk7/jdk/src/share/classes/com/sun/beans/editors/
H A DEnumEditor.java46 private final List<PropertyChangeListener> listeners = new ArrayList<PropertyChangeListener>(); field in class:EnumEditor
74 PropertyChangeListener[] listeners;
75 synchronized ( this.listeners ) {
82 int size = this.listeners.size();
86 listeners = this.listeners.toArray( new PropertyChangeListener[size] );
89 for ( PropertyChangeListener listener : listeners ) {
133 synchronized ( this.listeners ) {
134 this.listeners.add( listener );
139 synchronized ( this.listeners ) {
[all...]
/openjdk7/jdk/src/share/classes/java/beans/
H A DPropertyEditorSupport.java253 if (listeners == null) {
254 listeners = new java.util.Vector();
256 listeners.addElement(listener);
271 if (listeners == null) {
274 listeners.removeElement(listener);
278 * Report that we have been modified to any interested listeners.
283 if (listeners == null) {
286 targets = (java.util.Vector) listeners.clone();
288 // Tell our listeners that "everything" has changed.
301 private java.util.Vector listeners; field in class:PropertyEditorSupport
[all...]
H A DChangeListenerMap.java51 * Creates an array of listeners.
71 * Adds a listener to the list of listeners for the specified property.
95 * Removes a listener from the list of listeners for the specified property.
129 * Returns the list of listeners for the specified property.
132 * @return the corresponding list of listeners
141 * Sets new list of listeners for the specified property.
144 * @param listeners new list of listeners
146 public final void set(String name, L[] listeners) { argument
147 if (listeners !
[all...]
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/ui/
H A DSAPanel.java56 protected List listeners = new ArrayList(); field in class:SAPanel
63 listeners.add(listener);
67 listeners.remove(listener);
71 for (Iterator iter = listeners.iterator(); iter.hasNext(); ) {
82 for (Iterator iter = listeners.iterator(); iter.hasNext(); ) {
89 for (Iterator iter = listeners.iterator(); iter.hasNext(); ) {
96 for (Iterator iter = listeners.iterator(); iter.hasNext(); ) {
103 for (Iterator iter = listeners.iterator(); iter.hasNext(); ) {
110 for (Iterator iter = listeners.iterator(); iter.hasNext(); ) {
/openjdk7/jdk/src/share/classes/javax/swing/table/
H A DDefaultTableColumnModel.java108 * event to its listeners.
136 * event to its listeners.
168 * also posts a <code>columnMoved</code> event to its listeners.
215 * listeners.
494 * Returns an array of all the column model listeners
499 * array if no column model listeners are currently registered
515 * Notifies all listeners that have registered interest for
524 Object[] listeners = listenerList.getListenerList();
525 // Process the listeners last to first, notifying
527 for (int i = listeners
[all...]
/openjdk7/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/protocol/rmi/
H A DRemoteMonitoredVm.java50 private ArrayList<VmListener> listeners; field in class:RemoteMonitoredVm
72 this.listeners = new ArrayList<VmListener>();
142 synchronized(listeners) {
143 listeners.add(l);
155 synchronized(listeners) {
156 listeners.remove(l);
157 if (listeners.isEmpty() && (notifierTask != null)) {
168 synchronized(listeners) {
205 synchronized(listeners) {
206 registered = (ArrayList)listeners
[all...]
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/bugspot/
H A DStackTracePanel.java68 private java.util.List listeners; field in class:StackTracePanel
101 if (listeners == null) {
102 listeners = new ArrayList();
104 listeners.add(listener);
108 if (listeners != null) {
110 for (Iterator iter = listeners.iterator(); iter.hasNext(); ) {
/openjdk7/jdk/src/share/classes/sun/java2d/pipe/hw/
H A DAccelDeviceEventNotifier.java35 * This class is used to notify listeners about accelerated device's
43 * A device is about to be reset. The listeners have to release all
50 * A device is about to be disposed. The listeners have to release all
55 private final Map<AccelDeviceEventListener, Integer> listeners; field in class:AccelDeviceEventNotifier
58 listeners = Collections.synchronizedMap(
83 * If a singleton exists, the listeners (those associated with
123 listeners.put(theListener, screen);
126 listeners.remove(theListener);
130 * Notifies the listeners associated with the screen's device about the
133 * Implementation note: the current list of listeners i
[all...]
/openjdk7/jdk/src/share/classes/sun/tools/jconsole/inspector/
H A DXTextFieldEditor.java88 Object[] listeners = evtListenerList.getListenerList();
89 for (int i=0;i< listeners.length;i++) {
90 if (listeners[i] == CellEditorListener.class) {
91 listener = (CellEditorListener) listeners[i+1];
99 Object[] listeners = evtListenerList.getListenerList();
100 for (int i=0;i< listeners.length;i++) {
101 if (listeners[i] == CellEditorListener.class) {
102 listener = (CellEditorListener) listeners[i+1];
/openjdk7/jdk/src/share/classes/javax/swing/colorchooser/
H A DDefaultColorSelectionModel.java127 * array if no listeners have been added
143 Object[] listeners = listenerList.getListenerList();
144 for (int i = listeners.length - 2; i >= 0; i -=2 ) {
145 if (listeners[i] == ChangeListener.class) {
149 ((ChangeListener)listeners[i+1]).stateChanged(changeEvent);
/openjdk7/jdk/src/share/classes/javax/swing/tree/
H A DDefaultTreeModel.java208 * this model depends. The model will notify all of its listeners that the
290 * this model depends. The model will notify all of its listeners that the
443 * Returns an array of all the tree model listeners
448 * array if no tree model listeners are currently registered
460 * Notifies all listeners that have registered interest for
476 Object[] listeners = listenerList.getListenerList();
478 // Process the listeners last to first, notifying
480 for (int i = listeners.length-2; i>=0; i-=2) {
481 if (listeners[i]==TreeModelListener.class) {
486 ((TreeModelListener)listeners[
[all...]
/openjdk7/jdk/src/share/classes/sun/net/
H A DProgressMonitor.java117 ArrayList<ProgressListener> listeners = new ArrayList<ProgressListener>();
119 // Copy progress listeners to another list to avoid holding locks
122 listeners.add(iter.next());
127 for (Iterator<ProgressListener> iter = listeners.iterator(); iter.hasNext();) {
154 ArrayList<ProgressListener> listeners = new ArrayList<ProgressListener>();
156 // Copy progress listeners to another list to avoid holding locks
159 listeners.add(iter.next());
164 for (Iterator<ProgressListener> iter = listeners.iterator(); iter.hasNext();) {
186 ArrayList<ProgressListener> listeners = new ArrayList<ProgressListener>();
188 // Copy progress listeners t
[all...]

Completed in 48 milliseconds

1234