Package com.jsql.view.swing.list
Class AbstractListTransfertHandler
java.lang.Object
javax.swing.TransferHandler
com.jsql.view.swing.list.AbstractListTransfertHandler
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ListTransfertHandler
,ListTransfertHandlerScan
Handler for processing cut/copy/paste/drag/drop action on a JList items.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.TransferHandler
TransferHandler.DropLocation, TransferHandler.TransferSupport
-
Field Summary
Modifier and TypeFieldDescriptionList of cut/copy/paste/drag/drop items.Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, LINK, MOVE, NONE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canImport
(TransferHandler.TransferSupport support) protected Transferable
protected void
exportDone
(JComponent c, Transferable data, int action) int
boolean
initializeStringPaste
(String clipboardText, int selectedIndex, DefaultListModel<ItemList> listModel) protected abstract String
protected abstract void
parseStringDrop
(TransferHandler.TransferSupport support, DnDList list, DefaultListModel<ItemList> listModel) Methods inherited from class javax.swing.TransferHandler
canImport, exportAsDrag, exportToClipboard, getCopyAction, getCutAction, getDragImage, getDragImageOffset, getPasteAction, getVisualRepresentation, importData, setDragImage, setDragImageOffset
-
Field Details
-
dragPaths
List of cut/copy/paste/drag/drop items.
-
-
Constructor Details
-
AbstractListTransfertHandler
public AbstractListTransfertHandler()
-
-
Method Details
-
initializeTransferable
-
parseStringDrop
protected abstract void parseStringDrop(TransferHandler.TransferSupport support, DnDList list, DefaultListModel<ItemList> listModel) -
initializeStringPaste
protected abstract List<Integer> initializeStringPaste(String clipboardText, int selectedIndex, DefaultListModel<ItemList> listModel) -
getSourceActions
- Overrides:
getSourceActions
in classTransferHandler
-
createTransferable
- Overrides:
createTransferable
in classTransferHandler
-
exportDone
- Overrides:
exportDone
in classTransferHandler
-
canImport
- Overrides:
canImport
in classTransferHandler
-
importData
- Overrides:
importData
in classTransferHandler
-