Interface DragSource
All Packages Class Hierarchy This Package Previous Next Index
Interface DragSource
public interface netscape.application.DragSource
{
/* Methods
*/
public abstract void dragWasAccepted(DragSession);
public abstract boolean dragWasRejected(DragSession);
public abstract View sourceView(DragSession);
}
Interface implemented by objects interested in initiating drag sessions.
These methods provide context for the DragSession managing the drag
session, and notification of a drag session's results.
- See Also:
- DragSession
Methods
sourceView
public abstract View sourceView(DragSession session)
- Returns the View from which the drag session originated. This View
determines the context for the coordinates supplied to the
DragSession.
- See Also:
- DragSession
dragWasAccepted
public abstract void dragWasAccepted(DragSession session)
- Called when the user releases a DragSession and the receiving
DragDestination accepts the dragged item.
dragWasRejected
public abstract boolean dragWasRejected(DragSession session)
- Called when the user releases a DragSession without it being accepted
by a DragDestination. This method should return true if the
DragSession's image should animate back to the drag session's origin.
All Packages Class Hierarchy This Package Previous Next Index