public class ArooaTransferHandler extends TransferHandler
ArooaTree
.TransferHandler.DropLocation, TransferHandler.TransferSupport
COPY, COPY_OR_MOVE, LINK, MOVE, NONE
Constructor and Description |
---|
ArooaTransferHandler() |
Modifier and Type | Method and Description |
---|---|
void |
addTransferEventListener(TransferEventListener listener)
Add a Listener to receive transfer events.
|
boolean |
canImport(TransferHandler.TransferSupport support) |
protected Transferable |
createTransferable(JComponent c) |
protected void |
exportDone(JComponent source,
Transferable data,
int action) |
protected void |
fireFailureEvent(String reason,
Exception exception) |
int |
getSourceActions(JComponent c) |
boolean |
importData(TransferHandler.TransferSupport support) |
void |
removeTransferEventListener(TransferEventListener listener)
Remove a listener.
|
canImport, exportAsDrag, exportToClipboard, getCopyAction, getCutAction, getDragImage, getDragImageOffset, getPasteAction, getVisualRepresentation, importData, setDragImage, setDragImageOffset
public int getSourceActions(JComponent c)
getSourceActions
in class TransferHandler
protected Transferable createTransferable(JComponent c)
createTransferable
in class TransferHandler
protected void exportDone(JComponent source, Transferable data, int action)
exportDone
in class TransferHandler
public boolean canImport(TransferHandler.TransferSupport support)
canImport
in class TransferHandler
public boolean importData(TransferHandler.TransferSupport support)
importData
in class TransferHandler
public void addTransferEventListener(TransferEventListener listener)
listener
- public void removeTransferEventListener(TransferEventListener listener)
listener
-