|
Generated by JDiff |
||||||||
| PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES | |||||||||
This file contains all the changes in documentation in the packagejava.awt.dndas colored differences. Deletions are shownlike this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a <code> tag will cause all subsequent paragraphs to be displayed differently.
During DnD operations it is possible that a user may wish to drop the subject of the operation on a region of a scrollable GUI control that is not currently visible to the user.In such situations it is desirable that the GUI control detect this and institute a scroll operation in order to make obscured region(s) visible to the user. This feature is known as autoscrolling.
If a GUI control is both an active
DropTargetand is also scrollable it can receive notifications of autoscrolling gestures by the user from the DnD system by implementing this interface.An autoscrolling gesture is initiated by the user by keeping the drag cursor motionless with a border region of the
Componentreferred to as the "autoscrolling region" for a predefined period of time this will result in repeated scroll requests to theComponentuntil the dragCursorresumes its motion. @version 1.610 02/02/00 @sinceJDK11.2
This class contains constant values representing the type of action(s) to be performed by a Drag and Drop operation. @version 1.1216 02/02/00 @sinceJDK11.2
ADragGestureEventis passed toDragGestureListener's dragGestureRecognized() method when a particularDragGestureRecognizerdetects that a platform dependent drag initiating gesture has occurred on theComponentthat it is tracking. @version 1.1315 @see java.awt.dnd.DragGestureRecognizer @see java.awt.dnd.DragGestureListener @see java.awt.dnd.DragSource
TheDragGestureRecognizeris an abstract base class for the specification of a platform-dependent listener that can be associated with a particularComponentin order to identify platform-dependent drag initiating gestures.The appropriate
DragGestureRecognizersubclass is obtained from theDragSourceasssociated with a particularComponentor from theToolkitobject via its createDragGestureRecognizer() method.Once the
DragGestureRecognizeris associated with a particularComponentit will register the appropriate listener interfaces on thatComponentin order to track the input events delivered to theComponent.Once the
DragGestureRecognizeridentifies a sequence of events on theComponentas a drag initiating gesture it will notify its unicastDragGestureListenerby invoking its gestureRecognized() method.When a concrete
DragGestureRecognizerinstance detects a drag initiating gesture on theComponentit is associated with it will fire aDragGestureEventto theDragGestureListenerregistered on its unicast event source forDragGestureListenerevents. ThisDragGestureListeneris responsible for causing the associatedDragSourceto start the Drag and Drop operation (if appropriate).@author Laurence P. G. Cable @version 1.
1113 @see java.awt.dnd.DragGestureListener @see java.awt.dnd.DragGestureEvent @see java.awt.dnd.DragSource
TheDragSourceis the entity responsible for the initiation of the Drag and Drop operation and may be used in a number of scenarios:Once the
- 1 default instance per JVM for the lifetime of that JVM.
- 1 instance per class of potential Drag Initiator object (e.g TextField). [implementation dependent]
- 1 per instance of a particular
Componentor application specific object associated with aComponentinstance in the GUI. [implementation dependent]- Some other arbitrary association. [implementation dependent]
DragSourceis obtained aDragGestureRecognizershould also be obtained to associate theDragSourcewith a particularComponent.The initial interpretation of the user's gesture and the subsequent starting of the drag operation are the responsibility of the implementing
Componentwhich is usually implemented by aDragGestureRecognizer.When a drag gesture occurs the
DragSource's startDrag() method shall be invoked in order to cause processing of the user's navigational gestures and delivery of Drag and Drop protocol notifications. ADragSourceshall only permit a single Drag and Drop operation to be current at any one time and shall reject any further startDrag() requests by throwing anIllegalDnDOperationExceptionuntil such time as the extant operation is complete.The startDrag() method invokes the createDragSourceContext() method to instantiate an appropriate
DragSourceContextand associate theDragSourceContextPeerwith that.If the Drag and Drop System is unable to initiate a drag operation for some reason the startDrag() method throws a
java.awt.dnd.InvalidDnDOperationExceptionto signal such a condition. Typically this exception is thrown when the underlying platform system is either not in a state to initiate a drag or the parameters specified are invalid.Note that during the drag the set of operations exposed by the source at the start of the drag operation may not change until the operation is complete. The operation(s) are constant for the duration of the operation with respect to the
DragSource. @version 1.2630 02/02/00 @sinceJDK11.2
The DragSourceContext class is responsible for managing the initiator side of the Drag and Drop protocol. In particular it is responsible for managing event notifications to the DragSourceListener and providing the Transferable state to enable the data transfer.An instance of this class is created as a result of a
DragSource'sstartDrag() method being successfully invoked. This instance is responsible for tracking the state of the operation on behalf of theDragSourceand dispatching state changes to theDragSourceListener.Note that the
DragSourceContextitself implements theDragSourceListenerinterface. This is to allow the platform peer (theDragSourceContextPeerinstance) created by theDragSourceto notify theDragSourceContextof changes in state in the ongiong operation. This allows theDragSourceContextto interpose itself between the platform and theDragSourceListenerprovided by the initiator of the operation. @version 1.3539 02/02/00 @sinceJDK11.2
TheDragSourceDragEventis delivered from theDragSourceContextPeervia theDragSourceContextto the currently registeredDragSourceListener. It contains state regarding the current state of the operation to enable the operations initiator to provide the end user with the appropriate drag over feedback. @version 1.1620 02/02/00 @sinceJDK11.2
TheDragSourceDropEventis delivered from theDragSourceContextPeervia theDragSourceContextto its currently registeredDragSourceListener's dragDropEnd() method. It contains sufficient information for the originator of the operation to provide appropriate feedback to the end user when the operation completes.@version 1.
812 02/02/00@since
JDK11.2
This class is the base class forDragSourceDragEventandDragSourceDropEvent. @sinceJDK11.2
TheDragSourceListenerdefines the event interface for originators of Drag and Drop operations to track the state of the user's gesture and to provide appropriate "drag over" feedback to the user throughout the Drag and Drop operation. @version 1.1115 02/02/00 @sinceJDK11.2
TheClass DropTarget, constructor DropTarget(Component, DropTargetListener)DropTargetis associated with aComponentwhen thatComponentwishes to accept drops during Drag and Drop operations. @version 1.2934 02/02/00 @sinceJDK11.2
Construct aClass DropTarget, constructor DropTarget(Component, int, DropTargetListener)DropTargetgiven theComponentto associate itself with and theDropTargetListenerto handle event processing.The Component will receive drops only if it is enabled. @param c The
Componentwith which thisDropTargetis associated @param dtl TheDropTargetListenerfor thisDropTarget
Construct aClass DropTarget, constructor DropTarget(Component, int, DropTargetListener, boolean)DropTargetgiven theComponentto associate itself with anintrepresenting the default acceptable action(s) to support and aDropTargetListenerto handle event processing.The Component will receive drops only if it is enabled. @param c The
Componentwith which thisDropTargetis associated @param ops The default acceptable actions for thisDropTarget@param dtl TheDropTargetListenerfor thisDropTarget
Construct aClass DropTarget, constructor DropTarget(Component, int, DropTargetListener, boolean, FlavorMap)DropTargetgiven theComponentto associate itself with anintrepresenting the default acceptable action(s) to support aDropTargetListenerto handle event processing and abooleanindicating if theDropTargetis currently accepting drops.The Component will receive drops only if it is enabled. @param c The
Componentwith which thisDropTargetis associated @param ops The default acceptable actions for thisDropTarget@param dtl TheDropTargetListenerfor thisDropTarget@param act Is theDropTargetaccepting drops.
Construct a new DropTarget given theClass DropTarget, void setComponent(Component)Componentto associate itself with anintrepresenting the default acceptable action(s) to support aDropTargetListenerto handle event processing abooleanindicating if theDropTargetis currently accepting drops and aFlavorMapto use (or null).The Component will receive drops only if it is enabled. @param c The
Componentwith which thisDropTargetis associated @param ops The default acceptable actions for thisDropTarget@param dtl TheDropTargetListenerfor thisDropTarget@param act Is theDropTargetaccepting drops. @param fm TheFlavorMapto use or null
Note: this interface is required to permit the safe association of a DropTarget with a Component in one of two ways either:component.setDropTarget(droptarget);ordroptarget.setComponent(component);The Component will receive drops only if it is enabled. @param c The new
ComponentthisDropTargetis to be associated with.
ADropTargetContextis created whenever the logical cursor associated with a Drag and Drop operation coincides with the visible geometry of aComponentassociated with aDropTarget. TheDropTargetContextprovides the mechanism for a potential receiver of a drop operation to both provide the end user with the appropriate drag under feedback but also to effect the subsequent data transfer if appropriate. @version 1.828 02/02/00 @sinceJDK11.2
TheDropTargetDragEventis delivered to aDropTargetListenervia its dragEnter() and dragOver() methods. @version 1.1216 02/02/00 @sinceJDK11.2
TheDropTargetDropEventis delivered via theDropTargetListenerdrop() method. @version 1.1721 02/02/00 @sinceJDK11.2
TheDropTargetEventis the base class for both theDropTargetDragEventand theDropTargetDropEvent. It encapsulates the current state of the Drag and Drop operations in particular the currentDropTargetContext. @version 1.1014 02/02/00 @sinceJDK11.2
TheDropTargetListenerinterface is the callback interface used by theDropTargetclass to provide notification of DnD operations that involve the subjectDropTarget. Methods of this interface may be implemented to provide "drag under" visual feedback to the user throughout the Drag and Drop operation. @version 1.1216 02/02/00 @sinceJDK11.2
This exception is thrown by various methods in the java.awt.dnd package. It is usually thrown to indicate that the target in question is unable to undertake the requested operation that the present time since the undrelying DnD system is not in the appropriate state. @version 1.59 02/02/00 @sinceJDK11.2
This abstract subclass ofDragGestureRecognizerdefines aDragGestureRecognizerfor mouse based gestures. Each platform will implement its own concrete subclass of this class available via the Toolkit.createDragGestureRecognizer() method to encapsulate the recognition of the platform dependent mouse gesture(s) that initiate a Drag and Drop operation. @author Laurence P. G. Cable @version 1.79 @see java.awt.dnd.DragGestureListener @see java.awt.dnd.DragGestureEvent @see java.awt.dnd.DragSource