public class ArrayListTransferHandler
extends javax.swing.TransferHandler
构造器和说明 |
---|
ArrayListTransferHandler() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
canImport(javax.swing.JComponent c,
java.awt.datatransfer.DataFlavor[] flavors) |
protected java.awt.datatransfer.Transferable |
createTransferable(javax.swing.JComponent c) |
protected void |
exportDone(javax.swing.JComponent c,
java.awt.datatransfer.Transferable data,
int action) |
protected void |
exportJListDone(javax.swing.JList targetList,
int[] indices) |
int |
getSourceActions(javax.swing.JComponent c) |
boolean |
importData(javax.swing.JComponent c,
java.awt.datatransfer.Transferable t) |
protected void |
importJListData(javax.swing.JList targetList,
int addIndex,
java.util.ArrayList dataList) |
public boolean importData(javax.swing.JComponent c, java.awt.datatransfer.Transferable t)
importData
在类中 javax.swing.TransferHandler
protected void importJListData(javax.swing.JList targetList, int addIndex, java.util.ArrayList dataList)
protected void exportJListDone(javax.swing.JList targetList, int[] indices)
protected void exportDone(javax.swing.JComponent c, java.awt.datatransfer.Transferable data, int action)
exportDone
在类中 javax.swing.TransferHandler
public boolean canImport(javax.swing.JComponent c, java.awt.datatransfer.DataFlavor[] flavors)
canImport
在类中 javax.swing.TransferHandler
protected java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent c)
createTransferable
在类中 javax.swing.TransferHandler
public int getSourceActions(javax.swing.JComponent c)
getSourceActions
在类中 javax.swing.TransferHandler