| org.apache.ojb.tools.mapping.reversedb2.dnd2.DragCopyCutWorkerInterface
All known Subclasses: org.apache.ojb.tools.mapping.reversedb2.ojbmetatreemodel.OjbMetaTreeNodesDragWorker, org.apache.ojb.tools.mapping.reversedb2.dnd2.ReverseDbNodesDragWorker,
DragCopyCutWorkerInterface | public interface DragCopyCutWorkerInterface (Code) | | Implementers of this interface are used by DragHelper to query the possible
actions for a drag gesture and to export the data into a Transferable
author: Florian Bruckner version: $Id: DragCopyCutWorkerInterface.java,v 1.1.2.1 2005/12/21 22:32:42 tomdz Exp $ |
exportDone | public void exportDone(Component c, int action)(Code) | | Is called to notify you that the export this Worker has been notified of
has finished. action shows you which action has been performed, e.g. if it
is DRAG_MOVE you can remove the dragged items from your model.
Parameters: c - The component that acts as the drag source Parameters: action - The drag action that has been performed |
exportStarted | public void exportStarted(Component c, int action)(Code) | | Is called to notify you that the export has started. This is always
called after getTransferable, so you should know which items are exported.
This method is currently not called by the framework, but may be in future.
Parameters: c - The component that acts as the drag source Parameters: action - The drag action that is going to be performed |
getAcceptableActions | public int getAcceptableActions(Component c)(Code) | | Return a bitmask of acceptable actions. In most cases you will only support
DRAG_COPY, but sometimes you might support DRAG_LINK or DRAG_MOVE as well.
Parameters: c - The component that acts as the drag source A bitmask of possible drag actions for the given Component |
getDragImage | public Image getDragImage(Component c, Transferable t, int action)(Code) | | DnD on some platforms supports displaying a drag image in addition
to the drag cursor (Windows is known not to support it, so if you are
on Windows you might be doing all right, but still see no image)
an Image that shall be displayed with the cursor. Parameters: c - The component that acts as the drag source Parameters: t - The transferable that is used in this DnD process Parameters: action - The currently requested action for the ongoing drag process |
getTransferable | public Transferable getTransferable(Component c)(Code) | | Return a Transferable with the data you whish to export. You also get
the Component the DnD actions has been started for. If the component
supports selection you must first check which items are selected and
afterwards put those items in the Transferable.
Parameters: c - The component that acts as the drag source a Transferable containing the exported data |
|
|