edu.northwestern.at.wordhoard.swing.tables
Class PosWindow.PosTransferHandler
java.lang.Object
javax.swing.TransferHandler
edu.northwestern.at.wordhoard.swing.tables.PosWindow.PosTransferHandler
- All Implemented Interfaces:
- java.io.Serializable
- Enclosing class:
- PosWindow
public class PosWindow.PosTransferHandler
- extends javax.swing.TransferHandler
TransferHandler for drag and drop
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class javax.swing.TransferHandler |
javax.swing.TransferHandler.DropLocation, javax.swing.TransferHandler.TransferSupport |
Field Summary |
(package private) java.awt.datatransfer.DataFlavor |
xferFlavor
|
(package private) java.lang.String |
xferType
|
Fields inherited from class javax.swing.TransferHandler |
COPY, COPY_OR_MOVE, LINK, MOVE, NONE |
Method Summary |
boolean |
canImport(javax.swing.JComponent c,
java.awt.datatransfer.DataFlavor[] flavors)
|
protected java.awt.datatransfer.Transferable |
createTransferable(javax.swing.JComponent c)
|
protected void |
exportDone(javax.swing.JComponent c,
java.awt.datatransfer.Transferable data,
int action)
|
int |
getSourceActions(javax.swing.JComponent c)
|
javax.swing.Icon |
getVisualRepresentation(java.awt.datatransfer.Transferable t)
|
boolean |
importData(javax.swing.JComponent c,
java.awt.datatransfer.Transferable t)
|
Methods inherited from class javax.swing.TransferHandler |
canImport, exportAsDrag, exportToClipboard, getCopyAction, getCutAction, getPasteAction, importData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
xferFlavor
java.awt.datatransfer.DataFlavor xferFlavor
xferType
java.lang.String xferType
PosWindow.PosTransferHandler
public PosWindow.PosTransferHandler()
PosWindow.PosTransferHandler
public PosWindow.PosTransferHandler(java.lang.String property)
importData
public boolean importData(javax.swing.JComponent c,
java.awt.datatransfer.Transferable t)
- Overrides:
importData
in class javax.swing.TransferHandler
exportDone
protected void exportDone(javax.swing.JComponent c,
java.awt.datatransfer.Transferable data,
int action)
- Overrides:
exportDone
in class javax.swing.TransferHandler
canImport
public boolean canImport(javax.swing.JComponent c,
java.awt.datatransfer.DataFlavor[] flavors)
- Overrides:
canImport
in class javax.swing.TransferHandler
createTransferable
protected java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent c)
- Overrides:
createTransferable
in class javax.swing.TransferHandler
getSourceActions
public int getSourceActions(javax.swing.JComponent c)
- Overrides:
getSourceActions
in class javax.swing.TransferHandler
getVisualRepresentation
public javax.swing.Icon getVisualRepresentation(java.awt.datatransfer.Transferable t)
- Overrides:
getVisualRepresentation
in class javax.swing.TransferHandler