Esempio n. 1
0
 /// <summary>
 /// Removes the specified action listener so that it no longer
 /// receives action events from this button. Action events occur
 /// when a user presses or releases the mouse over this button.
 /// If l is null, no exception is thrown and no action is performed.
 /// <para>Refer to <a href="doc-files/AWTThreadIssues.html#ListenersThreads"
 /// >AWT Threading Issues</a> for details on AWT's threading model.
 ///
 /// </para>
 /// </summary>
 /// <param name="l">     the action listener </param>
 /// <seealso cref=             #addActionListener </seealso>
 /// <seealso cref=             #getActionListeners </seealso>
 /// <seealso cref=             java.awt.event.ActionListener
 /// @since           JDK1.1 </seealso>
 public virtual void RemoveActionListener(ActionListener l)
 {
     lock (this)
     {
         if (l == null)
         {
             return;
         }
         ActionListener = AWTEventMulticaster.Remove(ActionListener, l);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Removes the specified item listener so that it no longer receives
 /// item events from this check box menu item.
 /// If l is null, no exception is thrown and no action is performed.
 /// <para>Refer to <a href="doc-files/AWTThreadIssues.html#ListenersThreads"
 /// >AWT Threading Issues</a> for details on AWT's threading model.
 ///
 /// </para>
 /// </summary>
 /// <param name="l"> the item listener </param>
 /// <seealso cref=           #addItemListener </seealso>
 /// <seealso cref=           #getItemListeners </seealso>
 /// <seealso cref=           java.awt.event.ItemEvent </seealso>
 /// <seealso cref=           java.awt.event.ItemListener
 /// @since         JDK1.1 </seealso>
 public virtual void RemoveItemListener(ItemListener l)
 {
     lock (this)
     {
         if (l == null)
         {
             return;
         }
         ItemListener = AWTEventMulticaster.Remove(ItemListener, l);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Removes the specified mouse-motion listener.  Calling this method with
 /// <code>null</code> or an invalid value has no effect.
 /// <para>Refer to <a href="doc-files/AWTThreadIssues.html#ListenersThreads"
 /// >AWT Threading Issues</a> for details on AWT's threading model.
 ///
 /// </para>
 /// </summary>
 /// <param name="listener">   the mouse listener </param>
 /// <seealso cref=      java.awt.event.MouseEvent </seealso>
 /// <seealso cref=      java.awt.event.MouseMotionListener </seealso>
 /// <seealso cref=      #addMouseMotionListener(MouseMotionListener) </seealso>
 /// <seealso cref=      #getMouseMotionListeners </seealso>
 public virtual void RemoveMouseMotionListener(MouseMotionListener listener)
 {
     lock (this)
     {
         if (listener == null)
         {
             return;
         }
         MouseMotionListener = AWTEventMulticaster.Remove(MouseMotionListener, listener);
     }
 }