| graphical.DragPolicy
All known Subclasses: graphical.DragIGREView, graphical.DragListView,
DragPolicy | public interface DragPolicy (Code) | | |
Field Summary | |
final public static int | DRAGFROMCOPY Drag source policy that allows drag but doesn't alter display. | final public static int | DRAGFROMDISALLOWED Drag source policy that dissallows dragging from this list. | final public static int | DRAGFROMMOVE Drag source policy that allows drag and removes from display. | final public static int | DRAGTOACCEPT Drag destination policy that allows dragging to this list
without updating it. | final public static int | DRAGTOACCEPTDISPLACE Drag destination policy that allows dragging to this list
and includes the new item in the list if it is a ListItem,
displacing what it was dragged to. | final public static int | DRAGTOACCEPTINCLUDE Drag destination policy that allows dragging to this list
and includes the new item in the list if it is a ListItem. | final public static int | DRAGTODISALLOWED Drag destination policy that dissallows dragging to this list. |
DRAGFROMCOPY | final public static int DRAGFROMCOPY(Code) | | Drag source policy that allows drag but doesn't alter display.
|
DRAGFROMDISALLOWED | final public static int DRAGFROMDISALLOWED(Code) | | Drag source policy that dissallows dragging from this list.
|
DRAGFROMMOVE | final public static int DRAGFROMMOVE(Code) | | Drag source policy that allows drag and removes from display.
|
DRAGTOACCEPT | final public static int DRAGTOACCEPT(Code) | | Drag destination policy that allows dragging to this list
without updating it.
|
DRAGTOACCEPTDISPLACE | final public static int DRAGTOACCEPTDISPLACE(Code) | | Drag destination policy that allows dragging to this list
and includes the new item in the list if it is a ListItem,
displacing what it was dragged to.
|
DRAGTOACCEPTINCLUDE | final public static int DRAGTOACCEPTINCLUDE(Code) | | Drag destination policy that allows dragging to this list
and includes the new item in the list if it is a ListItem.
|
DRAGTODISALLOWED | final public static int DRAGTODISALLOWED(Code) | | Drag destination policy that dissallows dragging to this list.
|
getDestinationTarget | public Target getDestinationTarget()(Code) | | Get the destination target. When a destination takes in
data, it's handlers can ask another target to do additional
handling.
Parameters: v - target view |
getDragImage | abstract public Image getDragImage()(Code) | | Get the drag image.
|
getSourceTarget | public Target getSourceTarget()(Code) | | Get the source target. When a source sends
data, it's handlers can ask another target to do additional
handling.
Parameters: v - target view |
mouseDown | abstract public boolean mouseDown(MouseEvent e)(Code) | | Use to capture the originating mouseDown x, y.
Parameters: e - the mouse event |
mouseDragged | abstract public void mouseDragged(MouseEvent e)(Code) | | Use to set up the DragSession using the mouseDown x, y.
Parameters: e - the mouse event |
setDestinationTarget | public void setDestinationTarget(Target t)(Code) | | Set the destination target. When a destination takes in
data, it's handlers can ask another target to do additional
handling.
Parameters: v - target view |
setDragDestinationPolicy | abstract public void setDragDestinationPolicy(int dragDestinationPolicy) throws IllegalArgumentException(Code) | | Set the drag destination policy.
Parameters: dragDestinationPolicy - the policy exception: IllegalArgumentException - if not passed a legal policy |
setDragImage | abstract public void setDragImage(Image dragImage)(Code) | | Set the drag image.
Parameters: dragImage - the drag image. |
setSourceTarget | public void setSourceTarget(Target t)(Code) | | Set the source target. When a source sends
data, it's handlers can ask another target to do additional
handling.
Parameters: v - target view |
|
|