Package com.anylogic.engine
- java.lang.Object
- com.anylogic.engine.TableTransferable
- 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.
it may be removed/renamed in future.
Modifier and Type | Field | Description |
---|---|---|
static final DataFlavor | textDataFlavor | |
static final DataFlavor | xmlDataFlavor |
Constructor | Description |
---|---|
TableTransferable | |
TableTransferable |
Modifier and Type | Method | Description |
---|---|---|
static byte[] | getExcelClipboardData() | |
static List<List<Pair<Integer, | getExcelData | |
Object | getTransferData | |
DataFlavor[] | getTransferDataFlavors() | |
boolean | isDataFlavorSupported | |
static String | toString | |
static String | toXmlString |
public static final DataFlavor xmlDataFlavor
public static final DataFlavor textDataFlavor
public TableTransferable(List<List<Object>> table)
public TableTransferable(List<List<Object>> table, List<Integer> sqlTypes)
public DataFlavor[] getTransferDataFlavors()
- Specified by:
getTransferDataFlavors
in interfaceTransferable
public boolean isDataFlavorSupported(DataFlavor flavor)
- Specified by:
isDataFlavorSupported
in interfaceTransferable
public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException
- Specified by:
getTransferData
in interfaceTransferable
- Throws:
UnsupportedFlavorException
IOException
public static String toString(List<List<Object>> lists)
public static String toXmlString(List<List<Object>> table, List<Integer> sqlTypes)
public static byte[] getExcelClipboardData()
public static List<List<Pair<Integer,Object>>> getExcelData(byte[] bytes)
- Parameters:
bytes
-- Returns:
- array of pairs(java.sql.Types, specified java type)