Ejemplo n.º 1
0
        /// <summary>
        /// called to signal that the drop is acceptable
        /// using the specified operation.
        /// must be called during DropTargetListener.drop method invocation.
        /// <P> </summary>
        /// <param name="dropOperation"> the supported action(s) </param>

        protected internal virtual void AcceptDrop(int dropOperation)
        {
            DropTargetContextPeer peer = DropTargetContextPeer;

            if (peer != null)
            {
                peer.AcceptDrop(dropOperation);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// called to signal that the drop is unacceptable.
        /// must be called during DropTargetListener.drop method invocation.
        /// </summary>

        protected internal virtual void RejectDrop()
        {
            DropTargetContextPeer peer = DropTargetContextPeer;

            if (peer != null)
            {
                peer.RejectDrop();
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// This method signals that the drop is completed and
        /// if it was successful or not.
        /// <P> </summary>
        /// <param name="success"> true for success, false if not
        /// <P> </param>
        /// <exception cref="InvalidDnDOperationException"> if a drop is not outstanding/extant </exception>

//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void dropComplete(boolean success) throws InvalidDnDOperationException
        public virtual void DropComplete(bool success)
        {
            DropTargetContextPeer peer = DropTargetContextPeer;

            if (peer != null)
            {
                peer.DropComplete(success);
            }
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Called when associated with the <code>DropTargetContextPeer</code>.
        /// <P> </summary>
        /// <param name="dtcp"> the <code>DropTargetContextPeer</code> </param>

        public virtual void AddNotify(DropTargetContextPeer dtcp)
        {
            DropTargetContextPeer_Renamed = dtcp;
        }