AnyLogic
Expand
Font size
All Implemented Interfaces:
Transferable

@AnyLogicInternalAPI
public class TableTransferable
extends Object
implements Transferable
This class is internal and shouldn't be called by user.
it may be removed/renamed in future.

Field Summary

Modifier and TypeFieldDescription
static final DataFlavortextDataFlavor 
static final DataFlavorxmlDataFlavor 

Constructor Summary

ConstructorDescription
TableTransferable(List<List<Object>> table) 
TableTransferable(List<List<Object>> table, List<Integer> sqlTypes) 

Method Summary

Modifier and TypeMethodDescription
static byte[]getExcelClipboardData() 
static List<List<Pair<Integer,Object>>>getExcelData(byte[] bytes) 
ObjectgetTransferData(DataFlavor flavor) 
DataFlavor[]getTransferDataFlavors() 
booleanisDataFlavorSupported(DataFlavor flavor) 
static StringtoString(List<List<Object>> lists) 
static StringtoXmlString(List<List<Object>> table, List<Integer> sqlTypes) 

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

xmlDataFlavor

public static final DataFlavor xmlDataFlavor

textDataFlavor

public static final DataFlavor textDataFlavor

Constructor Details

TableTransferable

public TableTransferable(List<List<Object>> table)

TableTransferable

public TableTransferable(List<List<Object>> table,
 List<Integer> sqlTypes)

Method Details

getTransferDataFlavors

public DataFlavor[] getTransferDataFlavors()
Specified by:
getTransferDataFlavors in interface Transferable

isDataFlavorSupported

public boolean isDataFlavorSupported(DataFlavor flavor)
Specified by:
isDataFlavorSupported in interface Transferable

getTransferData

public Object getTransferData(DataFlavor flavor)
                       throws UnsupportedFlavorException,
IOException
Specified by:
getTransferData in interface Transferable
Throws:
UnsupportedFlavorException
IOException

toString

public static String toString(List<List<Object>> lists)

toXmlString

public static String toXmlString(List<List<Object>> table,
 List<Integer> sqlTypes)

getExcelClipboardData

public static byte[] getExcelClipboardData()

getExcelData

public static List<List<Pair<Integer,Object>>> getExcelData(byte[] bytes)
Parameters:
bytes -
Returns:
array of pairs(java.sql.Types, specified java type)