AnyLogic AnyLogic
Expand
Font size
  • java.lang.Object
    • com.anylogic.engine.TableTransferable
All Implemented Interfaces:
java.awt.datatransfer.Transferable

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

Field Summary

Fields 
static java.awt.datatransfer.DataFlavor textDataFlavor  
static java.awt.datatransfer.DataFlavor xmlDataFlavor  
Modifier and Type Field Description

Constructor Summary

Constructors 
TableTransferable​(java.util.List<java.util.List<java.lang.Object>> table)  
TableTransferable​(java.util.List<java.util.List<java.lang.Object>> table, java.util.List<java.lang.Integer> sqlTypes)  
Constructor Description

Method Summary

All Methods Static Methods Instance Methods Concrete Methods 
static byte[] getExcelClipboardData()  
static java.util.List<java.util.List<Pair<java.lang.Integer,​java.lang.Object>>> getExcelData​(byte[] bytes)  
java.lang.Object getTransferData​(java.awt.datatransfer.DataFlavor flavor)  
java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()  
boolean isDataFlavorSupported​(java.awt.datatransfer.DataFlavor flavor)  
static java.lang.String toString​(java.util.List<java.util.List<java.lang.Object>> lists)  
static java.lang.String toXmlString​(java.util.List<java.util.List<java.lang.Object>> table, java.util.List<java.lang.Integer> sqlTypes)  
Modifier and Type Method Description

Methods inherited from class java.lang.Object

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

Field Detail

xmlDataFlavor

public static final java.awt.datatransfer.DataFlavor xmlDataFlavor

textDataFlavor

public static final java.awt.datatransfer.DataFlavor textDataFlavor

Constructor Detail

TableTransferable

public TableTransferable​(java.util.List<java.util.List<java.lang.Object>> table)

TableTransferable

public TableTransferable​(java.util.List<java.util.List<java.lang.Object>> table,
                         java.util.List<java.lang.Integer> sqlTypes)

Method Detail

getTransferDataFlavors

public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
Specified by:
getTransferDataFlavors in interface java.awt.datatransfer.Transferable

isDataFlavorSupported

public boolean isDataFlavorSupported​(java.awt.datatransfer.DataFlavor flavor)
Specified by:
isDataFlavorSupported in interface java.awt.datatransfer.Transferable

getTransferData

public java.lang.Object getTransferData​(java.awt.datatransfer.DataFlavor flavor)
                                 throws java.awt.datatransfer.UnsupportedFlavorException,
                                        java.io.IOException
Specified by:
getTransferData in interface java.awt.datatransfer.Transferable
Throws:
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException

toString

public static java.lang.String toString​(java.util.List<java.util.List<java.lang.Object>> lists)

toXmlString

public static java.lang.String toXmlString​(java.util.List<java.util.List<java.lang.Object>> table,
                                           java.util.List<java.lang.Integer> sqlTypes)

getExcelClipboardData

public static byte[] getExcelClipboardData()

getExcelData

public static java.util.List<java.util.List<Pair<java.lang.Integer,​java.lang.Object>>> getExcelData​(byte[] bytes)
Parameters:
bytes -
Returns:
array of pairs(java.sql.Types, specified java type)
How can we improve this article?