Package com.inductiveautomation.rm.text
Class RMTextEditorUtils.RMXStringTransferable
java.lang.Object
com.inductiveautomation.rm.text.RMTextEditorUtils.RMXStringTransferable
- All Implemented Interfaces:
Transferable
- Enclosing class:
- RMTextEditorUtils
Transferable implementation for text editor and xstrings.
-
Constructor Summary
ConstructorsConstructorDescriptionRMXStringTransferable(RMXString aString) Creates a new editor clipboard for given xstring. -
Method Summary
Modifier and TypeMethodDescriptiongetTransferData(DataFlavor flavor) Returns an inputstream with clipboard data for requested flavor.Returns the supported flavors: RMTextFlavor and stringFlavor.booleanReturns whether given flavor is supported.
-
Constructor Details
-
RMXStringTransferable
Creates a new editor clipboard for given xstring.
-
-
Method Details
-
getTransferDataFlavors
Returns the supported flavors: RMTextFlavor and stringFlavor.- Specified by:
getTransferDataFlavorsin interfaceTransferable
-
isDataFlavorSupported
Returns whether given flavor is supported.- Specified by:
isDataFlavorSupportedin interfaceTransferable
-
getTransferData
Returns an inputstream with clipboard data for requested flavor.- Specified by:
getTransferDatain interfaceTransferable- Throws:
UnsupportedFlavorExceptionIOException
-