Exemple #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);
            }
        }
Exemple #2
0
        /// <summary>
        /// This method calls <code>dropActionChanged</code> on the
        /// <code>DragSourceListener</code>s registered with this
        /// <code>DragSource</code>, and passes them the specified
        /// <code>DragSourceDragEvent</code>.
        /// </summary>
        /// <param name="dsde"> the <code>DragSourceDragEvent</code> </param>
        internal virtual void ProcessDropActionChanged(DragSourceDragEvent dsde)
        {
            DragSourceListener dsl = Listener;

            if (dsl != null)
            {
                dsl.DropActionChanged(dsde);
            }
        }
Exemple #3
0
        /// <summary>
        /// This method calls <code>dragOver</code> on the
        /// <code>DragSourceListener</code>s registered with this
        /// <code>DragSource</code>, and passes them the specified
        /// <code>DragSourceDragEvent</code>.
        /// </summary>
        /// <param name="dsde"> the <code>DragSourceDragEvent</code> </param>
        internal virtual void ProcessDragOver(DragSourceDragEvent dsde)
        {
            DragSourceListener dsl = Listener;

            if (dsl != null)
            {
                dsl.DragOver(dsde);
            }
        }
        /// <summary>
        /// Calls <code>dropActionChanged</code> on the
        /// <code>DragSourceListener</code>s registered with this
        /// <code>DragSourceContext</code> and with the associated
        /// <code>DragSource</code>, and passes them the specified
        /// <code>DragSourceDragEvent</code>.
        /// </summary>
        /// <param name="dsde"> the <code>DragSourceDragEvent</code> </param>
        public virtual void DropActionChanged(DragSourceDragEvent dsde)
        {
            DragSourceListener dsl = Listener;

            if (dsl != null)
            {
                dsl.DropActionChanged(dsde);
            }
            DragSource.ProcessDropActionChanged(dsde);

            UpdateCurrentCursor(SourceActions, dsde.TargetActions, CHANGED);
        }
        /// <summary>
        /// Calls <code>dragOver</code> on the
        /// <code>DragSourceListener</code>s registered with this
        /// <code>DragSourceContext</code> and with the associated
        /// <code>DragSource</code>, and passes them the specified
        /// <code>DragSourceDragEvent</code>.
        /// </summary>
        /// <param name="dsde"> the <code>DragSourceDragEvent</code> </param>
        public virtual void DragOver(DragSourceDragEvent dsde)
        {
            DragSourceListener dsl = Listener;

            if (dsl != null)
            {
                dsl.DragOver(dsde);
            }
            DragSource.ProcessDragOver(dsde);

            UpdateCurrentCursor(SourceActions, dsde.TargetActions, OVER);
        }
 /// <summary>
 /// Calls <code>dragMouseMoved</code> on the
 /// <code>DragSourceMotionListener</code>s registered with the
 /// <code>DragSource</code> associated with this
 /// <code>DragSourceContext</code>, and them passes the specified
 /// <code>DragSourceDragEvent</code>.
 /// </summary>
 /// <param name="dsde"> the <code>DragSourceDragEvent</code>
 /// @since 1.4 </param>
 public virtual void DragMouseMoved(DragSourceDragEvent dsde)
 {
     DragSource.ProcessDragMouseMoved(dsde);
 }