Beispiel #1
0
        /// <summary>
        /// Calls <code>dropActionChanged</code> on the registered
        /// <code>DropTargetListener</code> and passes it
        /// the specified <code>DropTargetDragEvent</code>.
        /// Has no effect if this <code>DropTarget</code>
        /// is not active.
        /// </summary>
        /// <param name="dtde"> the <code>DropTargetDragEvent</code>
        /// </param>
        /// <exception cref="NullPointerException"> if this <code>DropTarget</code>
        ///         is active and <code>dtde</code> is <code>null</code>
        /// </exception>
        /// <seealso cref= #isActive </seealso>
        public virtual void DropActionChanged(DropTargetDragEvent dtde)
        {
            lock (this)
            {
                if (!Active_Renamed)
                {
                    return;
                }

                if (DtListener != null)
                {
                    DtListener.DropActionChanged(dtde);
                }

                UpdateAutoscroll(dtde.Location);
            }
        }
Beispiel #2
0
        /// <summary>
        /// Calls <code>dragEnter</code> on the registered
        /// <code>DropTargetListener</code> and passes it
        /// the specified <code>DropTargetDragEvent</code>.
        /// Has no effect if this <code>DropTarget</code>
        /// is not active.
        /// </summary>
        /// <param name="dtde"> the <code>DropTargetDragEvent</code>
        /// </param>
        /// <exception cref="NullPointerException"> if this <code>DropTarget</code>
        ///         is active and <code>dtde</code> is <code>null</code>
        /// </exception>
        /// <seealso cref= #isActive </seealso>
        public virtual void DragEnter(DropTargetDragEvent dtde)
        {
            lock (this)
            {
                IsDraggingInside = true;

                if (!Active_Renamed)
                {
                    return;
                }

                if (DtListener != null)
                {
                    DtListener.DragEnter(dtde);
                }
                else
                {
                    dtde.DropTargetContext.TargetActions = DnDConstants.ACTION_NONE;
                }

                InitializeAutoscrolling(dtde.Location);
            }
        }
 /// <summary>
 /// The <code>DropTarget</code> intercepts
 /// dropActionChanged() notifications before the
 /// registered <code>DropTargetListener</code> gets them.
 /// </summary>
 public void dropActionChanged(DropTargetDragEvent @dtde)
 {
 }
 /// <summary>
 /// The <code>DropTarget</code>
 /// intercepts dragOver() notifications before the
 /// registered <code>DropTargetListener</code> gets them.
 /// </summary>
 public void dragOver(DropTargetDragEvent @dtde)
 {
 }
		/// <summary>
		/// The <code>DropTarget</code> intercepts
		/// dropActionChanged() notifications before the
		/// registered <code>DropTargetListener</code> gets them.
		/// </summary>
		public void dropActionChanged(DropTargetDragEvent @dtde)
		{
		}
		/// <summary>
		/// The <code>DropTarget</code>
		/// intercepts dragOver() notifications before the
		/// registered <code>DropTargetListener</code> gets them.
		/// </summary>
		public void dragOver(DropTargetDragEvent @dtde)
		{
		}