Package ca.cgjennings.ui
Class ListTransferHandler.RubbishTransferHandler
- java.lang.Object
-
- javax.swing.TransferHandler
-
- ca.cgjennings.ui.ListTransferHandler
-
- ca.cgjennings.ui.ListTransferHandler.RubbishTransferHandler
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- ListTransferHandler
public static class ListTransferHandler.RubbishTransferHandler extends ListTransferHandler
This can be used as the transfer handler for a "rubbish can". Objects can be moved to it but not dragged from it.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ca.cgjennings.ui.ListTransferHandler
ListTransferHandler.ListTransferable, ListTransferHandler.RubbishTransferHandler
-
-
Field Summary
-
Fields inherited from class ca.cgjennings.ui.ListTransferHandler
addCount, addIndex, indices, localArrayListFlavor, localArrayListType, serialArrayListFlavor
-
-
Constructor Summary
Constructors Constructor Description RubbishTransferHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canImport(javax.swing.TransferHandler.TransferSupport support)
protected void
exportDone(javax.swing.JComponent c, java.awt.datatransfer.Transferable data, int action)
int
getSourceActions(javax.swing.JComponent c)
boolean
importData(javax.swing.JComponent c, java.awt.datatransfer.Transferable t)
-
Methods inherited from class ca.cgjennings.ui.ListTransferHandler
canImport, createTransferable, getTransferData, getVisualRepresentation, importData
-
-
-
-
Method Detail
-
getSourceActions
public int getSourceActions(javax.swing.JComponent c)
- Overrides:
getSourceActions
in classListTransferHandler
-
canImport
public boolean canImport(javax.swing.TransferHandler.TransferSupport support)
- Overrides:
canImport
in classjavax.swing.TransferHandler
-
importData
public boolean importData(javax.swing.JComponent c, java.awt.datatransfer.Transferable t)
- Overrides:
importData
in classjavax.swing.TransferHandler
-
exportDone
protected void exportDone(javax.swing.JComponent c, java.awt.datatransfer.Transferable data, int action)
- Overrides:
exportDone
in classListTransferHandler
-
-