net.sourceforge.jpotpourri.gui.table
Class TableBodyContext
java.lang.Object
java.awt.event.MouseAdapter
net.sourceforge.jpotpourri.gui.table.TableBodyContext
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.util.EventListener
public class TableBodyContext
- extends java.awt.event.MouseAdapter
- implements java.awt.event.ActionListener, java.awt.event.KeyListener
- Author:
- christoph_pickl@users.sourceforge.net
Constructor Summary |
TableBodyContext(javax.swing.JTable table,
java.util.List<javax.swing.JMenuItem> popupItemsSingle,
java.util.List<javax.swing.JMenuItem> popupItemsMultiple,
ITableBodyContextListener listener)
|
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent event)
|
void |
keyPressed(java.awt.event.KeyEvent event)
|
void |
keyReleased(java.awt.event.KeyEvent event)
|
void |
keyTyped(java.awt.event.KeyEvent event)
|
void |
mousePressed(java.awt.event.MouseEvent event)
|
static javax.swing.JMenuItem |
newJMenuItem(java.util.List<javax.swing.JMenuItem> items,
java.lang.String label,
java.lang.String actionCommand)
|
static javax.swing.JMenuItem |
newJMenuItem(java.util.List<javax.swing.JMenuItem> items,
java.lang.String label,
java.lang.String actionCommand,
javax.swing.Icon icon)
utility method |
static void |
newJMenuSeparator(java.util.List<javax.swing.JMenuItem> items)
|
Methods inherited from class java.awt.event.MouseAdapter |
mouseClicked, mouseEntered, mouseExited, mouseReleased |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TableBodyContext
public TableBodyContext(javax.swing.JTable table,
java.util.List<javax.swing.JMenuItem> popupItemsSingle,
java.util.List<javax.swing.JMenuItem> popupItemsMultiple,
ITableBodyContextListener listener)
newJMenuItem
public static javax.swing.JMenuItem newJMenuItem(java.util.List<javax.swing.JMenuItem> items,
java.lang.String label,
java.lang.String actionCommand)
newJMenuItem
public static javax.swing.JMenuItem newJMenuItem(java.util.List<javax.swing.JMenuItem> items,
java.lang.String label,
java.lang.String actionCommand,
javax.swing.Icon icon)
- utility method
newJMenuSeparator
public static void newJMenuSeparator(java.util.List<javax.swing.JMenuItem> items)
mousePressed
public final void mousePressed(java.awt.event.MouseEvent event)
- Specified by:
mousePressed
in interface java.awt.event.MouseListener
- Overrides:
mousePressed
in class java.awt.event.MouseAdapter
actionPerformed
public final void actionPerformed(java.awt.event.ActionEvent event)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
keyPressed
public final void keyPressed(java.awt.event.KeyEvent event)
- Specified by:
keyPressed
in interface java.awt.event.KeyListener
keyReleased
public final void keyReleased(java.awt.event.KeyEvent event)
- Specified by:
keyReleased
in interface java.awt.event.KeyListener
keyTyped
public final void keyTyped(java.awt.event.KeyEvent event)
- Specified by:
keyTyped
in interface java.awt.event.KeyListener
Copyright © 2008. All Rights Reserved.