Package org.compiere.grid.tree
Class VTreeTransferHandler
- java.lang.Object
-
- javax.swing.TransferHandler
-
- org.compiere.grid.tree.VTreeTransferHandler
-
- All Implemented Interfaces:
Serializable
public class VTreeTransferHandler extends TransferHandler
VTreeTransferHandler provides the TransferHandler for dragging and dropping within a tree. See VTreePanel.- Author:
- phib 2008/07/30 FR [ 2032092 ] Java 6 improvements to tree drag and drop
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.TransferHandler
TransferHandler.DropLocation, TransferHandler.TransferSupport
-
-
Field Summary
-
Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, LINK, MOVE, NONE
-
-
Constructor Summary
Constructors Constructor Description VTreeTransferHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canImport(TransferHandler.TransferSupport info)
protected Transferable
createTransferable(JComponent c)
protected void
exportDone(JComponent c, Transferable t, int action)
int
getSourceActions(JComponent c)
boolean
importData(TransferHandler.TransferSupport info)
-
Methods inherited from class javax.swing.TransferHandler
canImport, exportAsDrag, exportToClipboard, getCopyAction, getCutAction, getDragImage, getDragImageOffset, getPasteAction, getVisualRepresentation, importData, setDragImage, setDragImageOffset
-
-
-
-
Method Detail
-
getSourceActions
public int getSourceActions(JComponent c)
- Overrides:
getSourceActions
in classTransferHandler
-
createTransferable
protected Transferable createTransferable(JComponent c)
- Overrides:
createTransferable
in classTransferHandler
-
exportDone
protected void exportDone(JComponent c, Transferable t, int action)
- Overrides:
exportDone
in classTransferHandler
-
canImport
public boolean canImport(TransferHandler.TransferSupport info)
- Overrides:
canImport
in classTransferHandler
-
importData
public boolean importData(TransferHandler.TransferSupport info)
- Overrides:
importData
in classTransferHandler
-
-