/// <summary> /// Removes the specified <code>DragSourceMotionListener</code> from this /// <code>DragSource</code>. /// If a <code>null</code> listener is specified, no action is taken and no /// exception is thrown. /// If the listener specified by the argument was not previously added to /// this <code>DragSource</code>, no action is taken and no exception /// is thrown. /// </summary> /// <param name="dsml"> the <code>DragSourceMotionListener</code> to remove /// </param> /// <seealso cref= #addDragSourceMotionListener </seealso> /// <seealso cref= #getDragSourceMotionListeners /// @since 1.4 </seealso> public virtual void RemoveDragSourceMotionListener(DragSourceMotionListener dsml) { if (dsml != null) { lock (this) { MotionListener = DnDEventMulticaster.Remove(MotionListener, dsml); } } }
/// <summary> /// Removes the specified <code>DragSourceListener</code> from this /// <code>DragSource</code>. /// If a <code>null</code> listener is specified, no action is taken and no /// exception is thrown. /// If the listener specified by the argument was not previously added to /// this <code>DragSource</code>, no action is taken and no exception /// is thrown. /// </summary> /// <param name="dsl"> the <code>DragSourceListener</code> to remove /// </param> /// <seealso cref= #addDragSourceListener </seealso> /// <seealso cref= #getDragSourceListeners /// @since 1.4 </seealso> public virtual void RemoveDragSourceListener(DragSourceListener dsl) { if (dsl != null) { lock (this) { Listener = DnDEventMulticaster.Remove(Listener, dsl); } } }