|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tbee.swing.table.JTableMultipleCellsCopyAdapter
public class JTableMultipleCellsCopyAdapter
JTableMultipleCellsCopyAdapter enables Copy-Paste Clipboard functionality on JTables. The clipboard data format used by the adapter is compatible with the clipboard format used by Excel. This provides for clipboard interoperability between enabled JTables and Excel. NOTE: this adapter copies and pastes String, so the get- and setValueAt must be able to process strings. SetValueAt is not that difficult; if a certain col receives a string instead of the expected type, it needs to be converted. However getValueAt does not know when to return a String and when to return the actual class. So org.tbee.swing.table.JTable has a getValueAtAsString
| Field Summary | |
|---|---|
static java.lang.String |
SOURCECODE_VERSION
Standard variable for determining version of a class file. |
| Constructor Summary | |
|---|---|
JTableMultipleCellsCopyAdapter(javax.swing.JTable myJTable)
The Excel Adapter is constructed with a JTable on which it enables Copy-Paste and acts as a Clipboard listener. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
This method is activated on the Keystrokes we are listening to in this implementation. |
static void |
copy(javax.swing.JTable table)
Copy to system clipboard in Excel compatible format |
static void |
cut(javax.swing.JTable table)
Copy to system clipboard in Excel compatible format |
javax.swing.JTable |
getJTable()
the wrapper table |
static void |
paste(javax.swing.JTable table)
Paste from system clipboard in Excel compatible format |
void |
setJTable(javax.swing.JTable value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SOURCECODE_VERSION
| Constructor Detail |
|---|
public JTableMultipleCellsCopyAdapter(javax.swing.JTable myJTable)
| Method Detail |
|---|
public javax.swing.JTable getJTable()
public void setJTable(javax.swing.JTable value)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic static void cut(javax.swing.JTable table)
table - public static void copy(javax.swing.JTable table)
table - public static void paste(javax.swing.JTable table)
table -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||