| 
Java Platform 1.2 | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--java.awt.dnd.DragSource
The DragSource class is a small class responsible for originating a Drag and Drop gesture.
| Field Summary | |
static Cursor | 
DefaultCopyDrop
Default Cursor Constants  | 
static Cursor | 
DefaultCopyNoDrop
 | 
static Cursor | 
DefaultLinkDrop
 | 
static Cursor | 
DefaultLinkNoDrop
 | 
static Cursor | 
DefaultMoveDrop
 | 
static Cursor | 
DefaultMoveNoDrop
 | 
| Constructor Summary | |
DragSource()
construct a DragSource  | 
|
| Method Summary | |
 DragGestureRecognizer | 
createDefaultDragGestureRecognizer(Component c,
                                   int actions,
                                   DragGestureListener dgl)
Creates a new DragSourceRecognizer that implements the default abstract subclass of DragGestureRecognizer for this DragSource, and sets the specified Component and DragGestureListener on the newly created object.  | 
 DragGestureRecognizer | 
createDragGestureRecognizer(Class recognizerAbstractClass,
                            Component c,
                            int actions,
                            DragGestureListener dgl)
Creates a new DragSourceRecognizer that implements the specified abstract subclass of DragGestureRecognizer, and sets the specified Component and DragGestureListener on the newly created object.  | 
protected  DragSourceContext | 
createDragSourceContext(java.awt.dnd.peer.DragSourceContextPeer dscp,
                        DragGestureEvent dgl,
                        Cursor dragCursor,
                        Image dragImage,
                        Point imageOffset,
                        Transferable t,
                        DragSourceListener dsl)
Create the DragSourceContext to handle this Drag.  | 
static DragSource | 
getDefaultDragSource()
 | 
 FlavorMap | 
getFlavorMap()
 | 
static boolean | 
isDragImageSupported()
 | 
 void | 
startDrag(DragGestureEvent trigger,
          Cursor dragCursor,
          Image dragImage,
          Point dragOffset,
          Transferable transferable,
          DragSourceListener dsl)
start a Drag.  | 
 void | 
startDrag(DragGestureEvent trigger,
          Cursor dragCursor,
          Image dragImage,
          Point imageOffset,
          Transferable transferable,
          DragSourceListener dsl,
          FlavorMap flavorMap)
start a Drag.  | 
 void | 
startDrag(DragGestureEvent trigger,
          Cursor dragCursor,
          Transferable transferable,
          DragSourceListener dsl)
start a Drag.  | 
 void | 
startDrag(DragGestureEvent trigger,
          Cursor dragCursor,
          Transferable transferable,
          DragSourceListener dsl,
          FlavorMap flavorMap)
start a Drag.  | 
| Methods inherited from class java.lang.Object | 
clone, 
equals, 
finalize, 
getClass, 
hashCode, 
notify, 
notifyAll, 
toString, 
wait, 
wait, 
wait | 
| Field Detail | 
public static final Cursor DefaultCopyDrop
public static final Cursor DefaultMoveDrop
public static final Cursor DefaultLinkDrop
public static final Cursor DefaultCopyNoDrop
public static final Cursor DefaultMoveNoDrop
public static final Cursor DefaultLinkNoDrop
| Constructor Detail | 
public DragSource()
| Method Detail | 
public static DragSource getDefaultDragSource()
public static boolean isDragImageSupported()
public void startDrag(DragGestureEvent trigger,
                      Cursor dragCursor,
                      Image dragImage,
                      Point imageOffset,
                      Transferable transferable,
                      DragSourceListener dsl,
                      FlavorMap flavorMap)
               throws InvalidDnDOperationException
trigger - The DragGestureEvemt that initiated the DragdragCursor - The initial cursor or null for defaultsdragImage - The image to drag or nullimageOffset - The offset of the image origin from the hotspot
				of the cursor at the instant of the triggertransferable - The subject data of the Dragdsl - The DragSourceListenerflavorMap - The FlavorMap to use, or null
public void startDrag(DragGestureEvent trigger,
                      Cursor dragCursor,
                      Transferable transferable,
                      DragSourceListener dsl,
                      FlavorMap flavorMap)
               throws InvalidDnDOperationException
trigger - The DragGestureEvent that initiated the Dragactions - The drag "verbs" appropriatedragCursor - The initial cursor or null for defaultstransferable - The subject data of the Dragdsl - The DragSourceListenerflavorMap - The FlavorMap to use or null
public void startDrag(DragGestureEvent trigger,
                      Cursor dragCursor,
                      Image dragImage,
                      Point dragOffset,
                      Transferable transferable,
                      DragSourceListener dsl)
               throws InvalidDnDOperationException
trigger - The DragGestureEvent that initiated the Dragactions - The drag "verbs" appropriatedragCursor - The initial cursor or null for defaultsdragImage - The image to drag or nullimageOffset - The offset of the image origin from the hotspot
				of the cursor at the instant of the triggertransferable - The subject data of the Dragdsl - The DragSourceListener
public void startDrag(DragGestureEvent trigger,
                      Cursor dragCursor,
                      Transferable transferable,
                      DragSourceListener dsl)
               throws InvalidDnDOperationException
trigger - The DragGestureEvent that initiated the Dragactions - The drag "verbs" appropriatedragCursor - The initial cursor or null for defaultstransferable - The subject data of the Dragdsl - The DragSourceListener
protected DragSourceContext createDragSourceContext(java.awt.dnd.peer.DragSourceContextPeer dscp,
                                                    DragGestureEvent dgl,
                                                    Cursor dragCursor,
                                                    Image dragImage,
                                                    Point imageOffset,
                                                    Transferable t,
                                                    DragSourceListener dsl)
dscp - The DragSourceContextPeer for this Dragtrigger - The DragGestureEvent that triggered the dragdragCursor - The initial cursordragImage - The image to drag or nullimageOffset - The offset of the image origin from the hotspot
				of the cursor at the instant of the triggertransferable - The subject data of the Dragdsl - The DragSourceListenerpublic FlavorMap getFlavorMap()
public DragGestureRecognizer createDragGestureRecognizer(Class recognizerAbstractClass,
                                                         Component c,
                                                         int actions,
                                                         DragGestureListener dgl)
recognizerAbstractClass - The requested abstract typeactions - The permitted source drag actionsc - The Component targetdgl - The DragGestureListener to notify
public DragGestureRecognizer createDefaultDragGestureRecognizer(Component c,
                                                                int actions,
                                                                DragGestureListener dgl)
c - The Component target for the recognizeractions - The permitted source actionsdgl - The DragGestureListener to notify
  | 
Java Platform 1.2 | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||