Ejemplo n.º 1
0
        /// <summary>
        /// This method calls <code>dragMouseMoved</code> on the
        /// <code>DragSourceMotionListener</code>s registered with this
        /// <code>DragSource</code>, and passes them the specified
        /// <code>DragSourceDragEvent</code>.
        /// </summary>
        /// <param name="dsde"> the <code>DragSourceEvent</code> </param>
        internal virtual void ProcessDragMouseMoved(DragSourceDragEvent dsde)
        {
            DragSourceMotionListener dsml = MotionListener;

            if (dsml != null)
            {
                dsml.DragMouseMoved(dsde);
            }
        }
Ejemplo n.º 2
0
 /// <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);
         }
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Removes the old drag-source-motion-listener from
 /// drag-source-motion-listener-l and returns the resulting multicast
 /// listener.
 /// </summary>
 /// <param name="l"> drag-source-motion-listener-l </param>
 /// <param name="ol"> the drag-source-motion-listener being removed </param>
 public static DragSourceMotionListener Remove(DragSourceMotionListener l, DragSourceMotionListener ol)
 {
     return((DragSourceMotionListener)RemoveInternal(l, ol));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Adds drag-source-motion-listener-a with drag-source-motion-listener-b and
 /// returns the resulting multicast listener.
 /// </summary>
 /// <param name="a"> drag-source-motion-listener-a </param>
 /// <param name="b"> drag-source-motion-listener-b </param>
 public static DragSourceMotionListener Add(DragSourceMotionListener a, DragSourceMotionListener b)
 {
     return((DragSourceMotionListener)AddInternal(a, b));
 }