Class 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
    • Constructor Detail

      • RubbishTransferHandler

        public RubbishTransferHandler()
    • Method Detail

      • canImport

        public boolean canImport​(javax.swing.TransferHandler.TransferSupport support)
        Overrides:
        canImport in class javax.swing.TransferHandler
      • 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 ListTransferHandler