|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.TransferHandler
org.archiviststoolkit.swing.jTreeDnD.NodeMoveTransferHandler
public class NodeMoveTransferHandler
NodeMoveTransferHandler.java
Transfer handler implementation that supports to move a selected tree
node within a JTree.
| Field Summary |
|---|
| Fields inherited from class javax.swing.TransferHandler |
|---|
COPY, COPY_OR_MOVE, MOVE, NONE |
| Constructor Summary | |
|---|---|
NodeMoveTransferHandler()
constructor |
|
| Method Summary | |
|---|---|
protected java.awt.datatransfer.Transferable |
createTransferable(javax.swing.JComponent c)
create a transferable that contains all paths that are currently selected in a given tree |
protected void |
exportDone(javax.swing.JComponent source,
java.awt.datatransfer.Transferable data,
int action)
move selected paths when export of drag is done |
java.awt.image.BufferedImage |
getDragImage(javax.swing.JTree tree)
get a drag image from the currently dragged node (if any) |
int |
getSourceActions(javax.swing.JComponent c)
Returns the type of transfer actions supported by the source. |
| Methods inherited from class javax.swing.TransferHandler |
|---|
canImport, exportAsDrag, exportToClipboard, getCopyAction, getCutAction, getPasteAction, getVisualRepresentation, importData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeMoveTransferHandler()
| Method Detail |
|---|
protected java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent c)
createTransferable in class javax.swing.TransferHandlerTransferHandler.createTransferable(javax.swing.JComponent)
protected void exportDone(javax.swing.JComponent source,
java.awt.datatransfer.Transferable data,
int action)
exportDone in class javax.swing.TransferHandlersource - the component that was the source of the datadata - the data that was transferred or possibly null if the action is NONE.action - the actual action that was performedpublic int getSourceActions(javax.swing.JComponent c)
getSourceActions in class javax.swing.TransferHandlerpublic java.awt.image.BufferedImage getDragImage(javax.swing.JTree tree)
tree - the tree showing the node
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||