|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.statcato.spreadsheet.ExcelAdapter
public class ExcelAdapter
ExcelAdapter 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. Modified to work with Cut in a spreadsheet. Java Tip 77: Enable copy and paste functionality between Swing's JTables and Excel This adapter makes it easy to transfer data from one type of spreadsheet to the other By Ashok Banerjee and Jignesh Mehta
Constructor Summary | |
---|---|
ExcelAdapter(Spreadsheet 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. |
javax.swing.JTable |
getJTable()
Public Accessor methods for the Table on which this adapter acts. |
void |
setJTable(Spreadsheet jTable1)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExcelAdapter(Spreadsheet myJTable)
Method Detail |
---|
public javax.swing.JTable getJTable()
public void setJTable(Spreadsheet jTable1)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |