Package com.jsql.view.swing.list
Class ListTransfertHandler
java.lang.Object
javax.swing.TransferHandler
com.jsql.view.swing.list.AbstractListTransfertHandler
com.jsql.view.swing.list.ListTransfertHandler
- All Implemented Interfaces:
Serializable
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
Fields inherited from class com.jsql.view.swing.list.AbstractListTransfertHandler
dragPaths
Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, LINK, MOVE, NONE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioninitializeStringPaste
(String clipboardText, int selectedIndexFrom, DefaultListModel<ItemList> listModel) protected String
protected void
parseStringDrop
(TransferHandler.TransferSupport support, DnDList list, DefaultListModel<ItemList> listModel) Methods inherited from class com.jsql.view.swing.list.AbstractListTransfertHandler
canImport, createTransferable, exportDone, getSourceActions, importData
Methods inherited from class javax.swing.TransferHandler
canImport, exportAsDrag, exportToClipboard, getCopyAction, getCutAction, getDragImage, getDragImageOffset, getPasteAction, getVisualRepresentation, importData, setDragImage, setDragImageOffset
-
Constructor Details
-
ListTransfertHandler
public ListTransfertHandler()
-
-
Method Details
-
initializeTransferable
- Specified by:
initializeTransferable
in classAbstractListTransfertHandler
-
parseStringDrop
protected void parseStringDrop(TransferHandler.TransferSupport support, DnDList list, DefaultListModel<ItemList> listModel) - Specified by:
parseStringDrop
in classAbstractListTransfertHandler
-
initializeStringPaste
protected List<Integer> initializeStringPaste(String clipboardText, int selectedIndexFrom, DefaultListModel<ItemList> listModel) - Specified by:
initializeStringPaste
in classAbstractListTransfertHandler
-