Esempio n. 1
0
        /// <summary>
        /// Calls <code>drop</code> on the registered
        /// <code>DropTargetListener</code> and passes it
        /// the specified <code>DropTargetDropEvent</code>
        /// if this <code>DropTarget</code> is active.
        /// </summary>
        /// <param name="dtde"> the <code>DropTargetDropEvent</code>
        /// </param>
        /// <exception cref="NullPointerException"> if <code>dtde</code> is null
        ///         and at least one of the following is true: this
        ///         <code>DropTarget</code> is not active, or there is
        ///         no a <code>DropTargetListener</code> registered.
        /// </exception>
        /// <seealso cref= #isActive </seealso>
        public virtual void Drop(DropTargetDropEvent dtde)
        {
            lock (this)
            {
                IsDraggingInside = false;

                ClearAutoscroll();

                if (DtListener != null && Active_Renamed)
                {
                    DtListener.Drop(dtde);
                }
                else                 // we should'nt get here ...
                {
                    dtde.RejectDrop();
                }
            }
        }
Esempio n. 2
0
 /// <summary>
 /// The <code>DropTarget</code> intercepts drop() notifications before the
 /// registered <code>DropTargetListener</code> gets them.
 /// </summary>
 public void drop(DropTargetDropEvent @dtde)
 {
 }
Esempio n. 3
0
		/// <summary>
		/// The <code>DropTarget</code> intercepts drop() notifications before the
		/// registered <code>DropTargetListener</code> gets them.
		/// </summary>
		public void drop(DropTargetDropEvent @dtde)
		{
		}