public class TextTransferable
extends java.lang.Object
implements java.awt.datatransfer.Transferable
Modifier and Type | Class and Description |
---|---|
static class |
TextTransferable.ColoredStringBuilder |
Constructor and Description |
---|
TextTransferable(java.lang.CharSequence data) |
TextTransferable(java.lang.CharSequence htmlContent,
java.lang.CharSequence plainContent) |
TextTransferable(java.lang.String data) |
TextTransferable(java.lang.String htmlContent,
java.lang.String plainContent) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor flavor) |
java.awt.datatransfer.DataFlavor[] |
getTransferDataFlavors() |
boolean |
isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor) |
public TextTransferable(java.lang.String data)
public TextTransferable(java.lang.CharSequence data)
public TextTransferable(java.lang.String htmlContent, java.lang.String plainContent)
public TextTransferable(java.lang.CharSequence htmlContent, java.lang.CharSequence plainContent)
public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface java.awt.datatransfer.Transferable
public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
isDataFlavorSupported
in interface java.awt.datatransfer.Transferable
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor) throws java.awt.datatransfer.UnsupportedFlavorException
getTransferData
in interface java.awt.datatransfer.Transferable
java.awt.datatransfer.UnsupportedFlavorException