Documentation of 'smile.swing.table.TableCopyPasteAdapter' Java class
TableCopyPasteAdapter
smile.swing.table

Class TableCopyPasteAdapter

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.util.EventListener


    public class TableCopyPasteAdapter
    extends java.lang.Object
    implements java.awt.event.ActionListener
    TableCopyPasteAdapter 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 inter-operability between enabled JTables and Excel.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void actionPerformed(java.awt.event.ActionEvent e)
      This method is activated on the Keystrokes we are listening to in this implementation.
      static TableCopyPasteAdapter apply(javax.swing.JTable table) 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • actionPerformed

        public void actionPerformed(java.awt.event.ActionEvent e)
        This method is activated on the Keystrokes we are listening to in this implementation. Here it listens for Copy and Paste ActionCommands. Selections comprising non-adjacent cells result in invalid selection and then copy action cannot be performed. Paste is done by aligning the upper left corner of the selection with the 1st element in the current selection of the JTable.
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.