public class CopyableJTableAdapter
extends java.lang.Object
CopyableJTableAdapter provides an utility services for
 copying table data to the clipboard.| Constructor and Description | 
|---|
CopyableJTableAdapter(javax.swing.JTable table)
Create a new adapter. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
canCopy()
Whether the table data can be copied. 
 | 
boolean | 
copyToClipboard()
Copies the adapted table's data to the clipboard. 
 | 
java.lang.String | 
getNullString()
Retrieves the string being used to indicate a null value in the table. 
 | 
static boolean | 
isSelectionSizeOk(int num,
                 int[] rows)
Determines whether a selection is okay 
 | 
void | 
setNullString(java.lang.String s)
Sets the string used to indicate an null value in the table. 
 | 
public CopyableJTableAdapter(javax.swing.JTable table)
table - the table for which the new CopyableJTableAdapter is an adapter.public void setNullString(java.lang.String s)
s - the stringpublic java.lang.String getNullString()
public boolean canCopy()
public boolean copyToClipboard()
public static boolean isSelectionSizeOk(int num,
                        int[] rows)