コード例 #1
0
ファイル: DropTarget.cs プロジェクト: ranganathsb/JavaSharp
        /// <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);
            }
        }
コード例 #2
0
ファイル: DropTarget.cs プロジェクト: ranganathsb/JavaSharp
        /// <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);
            }
        }
コード例 #3
0
 /// <summary>
 /// The <code>DropTarget</code> intercepts
 /// dropActionChanged() notifications before the
 /// registered <code>DropTargetListener</code> gets them.
 /// </summary>
 public void dropActionChanged(DropTargetDragEvent @dtde)
 {
 }
コード例 #4
0
 /// <summary>
 /// The <code>DropTarget</code>
 /// intercepts dragOver() notifications before the
 /// registered <code>DropTargetListener</code> gets them.
 /// </summary>
 public void dragOver(DropTargetDragEvent @dtde)
 {
 }
コード例 #5
0
		/// <summary>
		/// The <code>DropTarget</code> intercepts
		/// dropActionChanged() notifications before the
		/// registered <code>DropTargetListener</code> gets them.
		/// </summary>
		public void dropActionChanged(DropTargetDragEvent @dtde)
		{
		}
コード例 #6
0
		/// <summary>
		/// The <code>DropTarget</code>
		/// intercepts dragOver() notifications before the
		/// registered <code>DropTargetListener</code> gets them.
		/// </summary>
		public void dragOver(DropTargetDragEvent @dtde)
		{
		}