org.gudy.azureus2.plugins.ui.tables
Interface TableContextMenuItem

All Superinterfaces:
MenuItem
All Known Implementing Classes:
TableContextMenuItemImpl

public interface TableContextMenuItem
extends MenuItem

Represents on context menu item for a table.


Field Summary
 
Fields inherited from interface org.gudy.azureus2.plugins.ui.menus.MenuItem
STYLE_CHECK, STYLE_MENU, STYLE_PUSH, STYLE_RADIO, STYLE_SEPARATOR
 
Method Summary
 void addListener(MenuItemListener l)
          Adds a selection listener for this menu item.
 void addMultiListener(MenuItemListener l)
          Adds a selection listener for this menu item.
 String getTableID()
          Retrieve the Table ID that the menu item belongs to
 
Methods inherited from interface org.gudy.azureus2.plugins.ui.menus.MenuItem
addFillListener, getData, getGraphic, getItem, getItems, getMenuID, getParent, getResourceKey, getStyle, getText, isEnabled, isSelected, isVisible, remove, removeAllChildItems, removeFillListener, removeListener, removeMultiListener, setData, setEnabled, setGraphic, setStyle, setSubmenuBuilder, setText, setVisible
 

Method Detail

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