Class PopupMenuMouseAdapter

java.lang.Object
java.awt.event.MouseAdapter
org.ka2ddo.yaac.gui.table.PopupMenuMouseAdapter
All Implemented Interfaces:
MouseListener, MouseMotionListener, MouseWheelListener, EventListener

public class PopupMenuMouseAdapter extends MouseAdapter
This class provides a generic mouse click handler for using right-clicks on a table row to raise a popup menu associated with the value in a specified key column of the selected row (such as for the callsign of a station).
Author:
Andrew Pavlin, KA2DDO
  • Constructor Details

    • PopupMenuMouseAdapter

      public PopupMenuMouseAdapter(JTable table, TableModel tableModel, GuiContentType guiContentType, int keyColumn)
      Create the mouse event listener for the specified table, table model, and GuiContentType of the table.
      Parameters:
      table - JTable whose rows can be right-clicked
      tableModel - TableModel of the JTable
      guiContentType - GuiContentType of the table, to help PopupMenuMouseAdapter
      keyColumn - zero-based column number of column to extract value from, or -1 to use the clicked-upon column
  • Method Details