public abstract class TransferableList<T>
extends java.lang.Object
implements java.awt.datatransfer.Transferable
Constructor and Description |
---|
TransferableList(java.util.List<? extends T> list) |
TransferableList(T... array) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getHTML(java.util.List<? extends T> list,
boolean all) |
protected java.lang.String |
getText(java.util.List<? extends T> list) |
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor flavor) |
java.awt.datatransfer.DataFlavor [] |
getTransferDataFlavors() |
boolean |
isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor) |
protected java.lang.String |
toHTML(T object) |
protected abstract java.lang.String |
toString(T object) |
@SafeVarargs public TransferableList(T... array)
public TransferableList(java.util.List<? extends T> list)
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
protected java.lang.String getHTML(java.util.List<? extends T> list, boolean all)
protected java.lang.String getText(java.util.List<? extends T> list)
protected java.lang.String toHTML(T object)
protected abstract java.lang.String toString(T object)