oracle.ide.controls
Class CopyableJTableAdapter
java.lang.Object
|
+--oracle.ide.controls.CopyableJTableAdapter
- public class CopyableJTableAdapter
- extends java.lang.Object
CopyableJTableAdapter
provides an utility services for
copying table data to the clipboard.
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CopyableJTableAdapter
public CopyableJTableAdapter(javax.swing.JTable table)
- Create a new adapter.
- Parameters:
table
- the table for which the new CopyableJTableAdapter is an adapter.
setNullString
public void setNullString(java.lang.String s)
- Sets the string used to indicate an null value in the table.
- Parameters:
s
- the string
getNullString
public java.lang.String getNullString()
- Retrieves the string being used to indicate a null value in the table.
canCopy
public boolean canCopy()
- Whether the table data can be copied.
copyToClipboard
public boolean copyToClipboard()
- Copies the adapted table's data to the clipboard.
- Returns:
- whether the copy succeeded.
isSelectionSizeOk
public static boolean isSelectionSizeOk(int num,
int[] rows)
- Determines whether a selection is okay