Constructor and Description |
---|
TextBlockTransferable(java.lang.String text,
java.util.Collection<? extends TextBlockTransferableData> extraData,
RawText rawText) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
convertLineSeparators(Editor editor,
java.lang.String input) |
static java.lang.String |
convertLineSeparators(Editor editor,
java.lang.String input,
java.util.Collection<? extends TextBlockTransferableData> itemsToUpdate) |
static java.lang.String |
convertLineSeparators(java.lang.String text,
java.lang.String newSeparator,
java.util.Collection<? extends TextBlockTransferableData> itemsToUpdate) |
int |
getSize()
Object size estimation (in bytes).
|
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor flavor) |
java.awt.datatransfer.DataFlavor[] |
getTransferDataFlavors() |
boolean |
isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor) |
public TextBlockTransferable(java.lang.String text, java.util.Collection<? extends TextBlockTransferableData> extraData, RawText rawText)
public int getSize()
Sizeable
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, java.io.IOException
getTransferData
in interface java.awt.datatransfer.Transferable
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException
public static java.lang.String convertLineSeparators(Editor editor, java.lang.String input)
public static java.lang.String convertLineSeparators(Editor editor, java.lang.String input, java.util.Collection<? extends TextBlockTransferableData> itemsToUpdate)
public static java.lang.String convertLineSeparators(java.lang.String text, java.lang.String newSeparator, java.util.Collection<? extends TextBlockTransferableData> itemsToUpdate)