Package docking.dnd
Class StringTransferable
java.lang.Object
docking.dnd.StringTransferable
- All Implemented Interfaces:
Transferable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTransferData(DataFlavor flavor) booleanisDataFlavorSupported(DataFlavor flavor) voidRemoves quotes and standard string literal prefixes from the string.
-
Field Details
-
data
-
-
Constructor Details
-
StringTransferable
-
-
Method Details
-
getTransferDataFlavors
- Specified by:
getTransferDataFlavorsin interfaceTransferable
-
isDataFlavorSupported
- Specified by:
isDataFlavorSupportedin interfaceTransferable
-
getTransferData
- Specified by:
getTransferDatain interfaceTransferable- Throws:
UnsupportedFlavorExceptionIOException
-
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"
-