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.boolean
Returns 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:
getTransferDataFlavors
in interfaceTransferable
-
isDataFlavorSupported
Returns whether given flavor is supported.- Specified by:
isDataFlavorSupported
in interfaceTransferable
-
getTransferData
Returns an inputstream with clipboard data for requested flavor.- Specified by:
getTransferData
in interfaceTransferable
- Throws:
UnsupportedFlavorException
IOException
-