Searched refs:listener (Results 226 - 250 of 414) sorted by relevance

1234567891011>>

/openjdk10/jdk/src/java.base/share/classes/javax/net/ssl/
H A DSSLSocket.java447 * Registers an event listener to receive notifications that an
450 * @param listener the HandShake Completed event listener
456 HandshakeCompletedListener listener);
460 * Removes a previously registered handshake completion listener.
462 * @param listener the HandShake Completed event listener
463 * @throws IllegalArgumentException if the listener is not registered,
468 HandshakeCompletedListener listener);
455 addHandshakeCompletedListener( HandshakeCompletedListener listener) argument
467 removeHandshakeCompletedListener( HandshakeCompletedListener listener) argument
/openjdk10/jdk/test/javax/net/ssl/sanity/pluggability/
H A DMySSLSocketFacImpl.java86 (HandshakeCompletedListener listener) {}
88 (HandshakeCompletedListener listener) {}
85 addHandshakeCompletedListener(HandshakeCompletedListener listener) argument
87 removeHandshakeCompletedListener(HandshakeCompletedListener listener) argument
/openjdk10/langtools/test/tools/javac/annotations/typeAnnotations/packageanno/
H A DPackageProcessor.java61 private final AttributionTaskListener listener = new AttributionTaskListener(); field in class:PackageProcessor
67 JavacTask.instance(env).addTaskListener(listener);
/openjdk10/jaxws/src/java.xml.ws/share/classes/com/sun/org/glassfish/external/amx/
H A DMBeanListener.java86 public void mbeanRegistered(final ObjectName objectName, final MBeanListener listener); argument
87 public void mbeanUnregistered(final ObjectName objectName, final MBeanListener listener); argument
130 public void mbeanRegistered(final ObjectName objectName, final MBeanListener listener) argument
135 listener.stopListening();
138 public void mbeanUnregistered(final ObjectName objectName, final MBeanListener listener) argument
143 listener.stopListening();
276 /** unregister the listener */
/openjdk10/jdk/test/java/awt/print/PrinterJob/
H A DDummyPrintTest.java178 public void addPrintServiceAttributeListener(PrintServiceAttributeListener listener) { argument
182 public void removePrintServiceAttributeListener(PrintServiceAttributeListener listener) { argument
208 public void addPrintJobAttributeListener(PrintJobAttributeListener listener, argument
213 public void removePrintJobAttributeListener(PrintJobAttributeListener listener) { argument
217 public void addPrintJobListener(PrintJobListener listener) { argument
221 public void removePrintJobListener(PrintJobListener listener) { argument
/openjdk10/jdk/src/java.management/share/classes/com/sun/jmx/interceptor/
H A DDefaultMBeanServerInterceptor.java104 * Notification is emitted. To register an object as listener to MBeanServerNotifications
1125 * through the MBean server). We also need to wrap the listener
1126 * supplied by the client of the MBeanServer with a listener that
1135 * Here's how we handle it. When you add a listener, we make a
1138 * that listener with the given ObjectName, we reuse it. This map
1139 * is a WeakHashMap, so a listener that is no longer registered
1143 * wrapper or always registering the same listener with the MBean
1144 * and using the handback to find the client's original listener.
1146 * variant that removes all (listener,filter,handback) triples on
1147 * a broadcaster that have a given listener
1159 addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) argument
1191 addNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) argument
1223 removeNotificationListener(ObjectName name, NotificationListener listener) argument
1229 removeNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) argument
1237 removeNotificationListener(ObjectName name, ObjectName listener) argument
1249 removeNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) argument
1264 getListener(ObjectName listener) argument
1289 removeNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback, boolean removeAll) argument
1749 private NotificationListener listener; field in class:DefaultMBeanServerInterceptor.ListenerWrapper
[all...]
/openjdk10/jdk/test/sanity/client/lib/SwingSet3/src/com/sun/swingset3/demos/slider/
H A DSliderDemo.java99 ChangeListener listener;
110 listener = new SliderListener(tf);
136 s.addChangeListener(listener);
152 s.addChangeListener(listener);
174 s.addChangeListener(listener);
193 s.addChangeListener(listener);
207 s.addChangeListener(listener);
224 s.addChangeListener(listener);
242 s.addChangeListener(listener);
260 s.addChangeListener(listener);
[all...]
/openjdk10/jdk/src/java.management/share/classes/com/sun/jmx/remote/internal/
H A DClientNotifForwarder.java167 NotificationListener listener,
175 "Add the listener "+listener+" at "+name);
181 listener,
192 NotificationListener listener)
201 if (li.sameAs(name, listener)) {
214 NotificationListener listener,
225 if (li.sameAs(name, listener, filter, handback)) {
239 NotificationListener listener)
246 "Remove the listener "
165 addNotificationListener(Integer listenerID, ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback, Subject delegationSubject) argument
191 getListenerIds(ObjectName name, NotificationListener listener) argument
213 getListenerId(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) argument
238 removeNotificationListener(ObjectName name, NotificationListener listener) argument
257 removeNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) argument
[all...]
/openjdk10/jdk/src/java.management/share/classes/javax/management/
H A DMBeanServerInvocationHandler.java365 NotificationListener listener = (NotificationListener) args[0];
369 listener,
378 NotificationListener listener = (NotificationListener) args[0];
382 connection.removeNotificationListener(objectName, listener);
389 listener,
/openjdk10/jdk/test/com/sun/jndi/ldap/
H A DRemoveNamingListenerTest.java79 //remove a listener in different thread
97 * Helper thread that removes the naming listener.
102 final NamingListener listener; field in class:RemoveNamingListenerTest.RemoveNamingListener
104 RemoveNamingListener(EventContext ctx, NamingListener listener) { argument
106 this.listener = listener;
112 ctx.removeNamingListener(listener);
/openjdk10/jdk/test/java/net/httpclient/
H A DProxyServer.java37 ServerSocket listener; field in class:ProxyServer
51 listener = new ServerSocket(port);
52 this.port = listener.getLocalPort();
75 listener.close();
104 Socket s = listener.accept();
/openjdk10/jdk/test/java/nio/channels/AsynchronousChannelGroup/
H A DBasic.java214 AsynchronousServerSocketChannel listener =
218 listener.bind(new InetSocketAddress(0));
219 Future<AsynchronousSocketChannel> result = listener.accept();
241 int port = ((InetSocketAddress)listener.getLocalAddress()).getPort();
257 Future<AsynchronousSocketChannel> res = listener.accept();
263 // connect to the listener which should cause the accept to complete
/openjdk10/jdk/test/sun/jvmstat/monitor/MonitoredVm/
H A DMonitorVmStartTerminate.java92 Listener listener = new Listener(host, javaProcesses);
93 host.addHostListener(listener);
101 listener.started.acquire(PROCESS_COUNT);
107 listener.terminated.acquire(PROCESS_COUNT);
109 host.removeHostListener(listener);
/openjdk10/langtools/src/jdk.jshell/share/classes/jdk/jshell/execution/
H A DJdiInitiator.java150 ListeningConnector listener = (ListeningConnector) connector;
156 String addr = listener.startListening(connectorArgs);
176 vm = timedVirtualMachineCreation(() -> listener.accept(connectorArgs),
179 listener.stopListening(connectorArgs);
191 listener.stopListening(connectorArgs);
/openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.virtual/src/org/graalvm/compiler/virtual/phases/ea/
H A DEffectsPhase.java97 HashSetNodeEventListener listener = new HashSetNodeEventListener();
98 try (NodeEventScope nes = graph.trackNodeEvents(listener)) {
108 EconomicSet<Node> changedNodes = listener.getNodes();
/openjdk10/hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/ui/
H A DFindInHeapPanel.java114 ActionListener listener = new ActionListener() {
144 findButton.addActionListener(listener);
145 addressField.addActionListener(listener);
/openjdk10/jdk/src/java.desktop/share/classes/java/awt/
H A DCheckboxMenuItem.java228 * Adds the specified item listener to receive item events from
235 * @param l the item listener
252 * Removes the specified item listener so that it no longer receives
258 * @param l the item listener
394 ItemListener listener = itemListener;
395 if (listener != null) {
396 listener.itemStateChanged(e);
465 * isn't {@code null} adds a listener to receive
H A DButton.java59 * or it can register itself as a listener for mouse events by
76 * {@code ActionListener} and register the new listener
249 * Adds the specified action listener to receive action events from
256 * @param l the action listener
271 * Removes the specified action listener so that it no longer
278 * @param l the action listener
409 ActionListener listener = actionListener;
410 if (listener != null) {
411 listener.actionPerformed(e);
468 * it isn't {@code null} adds a listener t
[all...]
/openjdk10/jdk/src/java.management/share/classes/com/sun/jmx/mbeanserver/
H A DJmxMBeanServer.java81 * Notification is emitted. To register an object as listener to
820 * Adds a listener to a registered MBean.
822 * @param name The name of the MBean on which the listener should be added.
823 * @param listener The listener object which will handle the
827 * @param handback The context to be sent to the listener when a
834 NotificationListener listener,
839 mbsInterceptor.addNotificationListener(cloneObjectName(name), listener,
844 * Adds a listener to a registered MBean.
846 * @param name The name of the MBean on which the listener shoul
833 addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) argument
858 addNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) argument
866 removeNotificationListener(ObjectName name, NotificationListener listener) argument
874 removeNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) argument
884 removeNotificationListener(ObjectName name, ObjectName listener) argument
892 removeNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) argument
[all...]
/openjdk10/jdk/test/java/awt/Mouse/EnterExitEvents/
H A DDragWindowOutOfFrameTest.java153 DragWindowCreationMouseListener listener = new DragWindowCreationMouseListener(frame);
154 label.addMouseListener(listener);
155 label.addMouseMotionListener(listener);
H A DDragWindowTest.java126 LabelMouseListener listener = new LabelMouseListener(frame);
127 label.addMouseListener(listener);
128 label.addMouseMotionListener(listener);
/openjdk10/jdk/test/java/nio/channels/AsynchronousSocketChannel/
H A DStressLoopback.java42 // setup listener
43 AsynchronousServerSocketChannel listener =
45 int port =((InetSocketAddress)(listener.getLocalAddress())).getPort();
57 sink[i] = new Sink(listener.accept().get());
/openjdk10/jdk/test/javax/swing/JInternalFrame/8145060/
H A DTestJInternalFrameMinimize.java58 private static ActionListener listener; field in class:TestJInternalFrameMinimize
132 listener = new ActionListener() {
160 timer = new Timer(1000, listener);
/openjdk10/jdk/test/javax/management/proxy/
H A DNotificationEmitterProxy.java95 final CounterListener listener = new CounterListener(counter);
111 emitter.addNotificationListener(listener,filter,"JMX.newMBeanProxy");
113 throw new RuntimeException("Failed to register listener with "+
125 emitter.addNotificationListener(listener,filter,
128 throw new RuntimeException("Failed to register listener with "+
/openjdk10/jdk/test/javax/management/remote/mandatory/notif/
H A DConcurrentModificationTest.java160 private static void listenerOp(MBeanServerConnection mserver, NotificationListener listener, boolean adding) argument
163 mserver.addNotificationListener(delegateName, listener, null, null);
165 mserver.removeNotificationListener(delegateName, listener);

Completed in 211 milliseconds

1234567891011>>