Package docking.dnd
Class StringTransferable
java.lang.Object
docking.dnd.StringTransferable
- All Implemented Interfaces:
Transferable
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetTransferData
(DataFlavor flavor) boolean
isDataFlavorSupported
(DataFlavor flavor) void
Removes quotes and standard string literal prefixes from the string.
-
Field Details
-
data
-
-
Constructor Details
-
StringTransferable
-
-
Method Details
-
getTransferDataFlavors
- Specified by:
getTransferDataFlavors
in interfaceTransferable
-
isDataFlavorSupported
- Specified by:
isDataFlavorSupported
in interfaceTransferable
-
getTransferData
- Specified by:
getTransferData
in interfaceTransferable
- Throws:
UnsupportedFlavorException
IOException
-
removeOuterQuotesAndStandardStringPrefix
public void removeOuterQuotesAndStandardStringPrefix()Removes quotes and standard string literal prefixes from the string. In order for this method to do anything, the string must start with one of the standard string literals prefixes and end with a quote character"
-