Package org.compiere.grid
Class VTableExcelAdapter
- java.lang.Object
-
- org.compiere.grid.VTableExcelAdapter
-
- All Implemented Interfaces:
ActionListener,EventListener
public class VTableExcelAdapter extends Object implements ActionListener
VTableExcelAdapter enables Copy Clipboard functionality on VTables.- Author:
- Teo Sarca, SC ARHIPAC SERVICE SRL - FR [ 1753943 ]
-
-
Field Summary
Fields Modifier and Type Field Description static StringCMD_Copystatic StringCMD_CopyWithHeaders
-
Constructor Summary
Constructors Constructor Description VTableExcelAdapter(VTable table)The Excel Adapter is constructed with a VTable on which it enables Copy-Paste and acts as a Clipboard listener.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(ActionEvent e)This method is activated on the Keystrokes we are listening to in this implementation.
-
-
-
Field Detail
-
CMD_Copy
public static final String CMD_Copy
- See Also:
- Constant Field Values
-
CMD_CopyWithHeaders
public static final String CMD_CopyWithHeaders
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VTableExcelAdapter
public VTableExcelAdapter(VTable table)
The Excel Adapter is constructed with a VTable on which it enables Copy-Paste and acts as a Clipboard listener.- Parameters:
table-
-
-
Method Detail
-
actionPerformed
public void actionPerformed(ActionEvent e)
This method is activated on the Keystrokes we are listening to in this implementation. Here it listens for Copy and Paste ActionCommands.- Specified by:
actionPerformedin interfaceActionListener- Parameters:
e- event
-
-