Interface TableContextMenuItem

All Superinterfaces:
MenuItem
All Known Implementing Classes:
TableContextMenuItemImpl

public interface TableContextMenuItem extends MenuItem
Represents on context menu item for a table.
  • Method Details

    • addListener

      void addListener(MenuItemListener l)
      Adds a selection listener for this menu item. The MenuItemListener.selected(MenuItem, Object) method invoked with the target being a TableRow instance. This will be one of the items which was selected - this method will be invoked multiple times with each item that was selected - if you want the entire selection of items in one go, you should register the listener via addMultiListener(MenuItemListener).
      Specified by:
      addListener in interface MenuItem
      Parameters:
      l - listener to be notified when user has selected the menu item.
    • addMultiListener

      void addMultiListener(MenuItemListener l)
      Adds a selection listener for this menu item. This differs from addListener(MenuItemListener), in that the target object which will be passed to the listener will be an array of TableRow objects, rather than just a single object.
      Specified by:
      addMultiListener in interface MenuItem
      Parameters:
      l - listener to be notified when user has selected the menu item.
      Since:
      2.5.0.2
    • getTableID

      String getTableID()
      Retrieve the Table ID that the menu item belongs to
      Returns:
      TableManager.TABLE_ constant
    • getTable

      TableView<?> getTable()