Package com.biglybt.pif.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 com.biglybt.pif.ui.menus.MenuItem
HEADER_CONTENT, HEADER_CONTROL, HEADER_ORGANIZE, HEADER_OTHER, HEADER_SOCIAL, STYLE_CHECK, STYLE_MENU, STYLE_PUSH, STYLE_RADIO, STYLE_SEPARATOR
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addListener(MenuItemListener l)
Adds a selection listener for this menu item.void
addMultiListener(MenuItemListener l)
Adds a selection listener for this menu item.java.lang.String
getTableID()
Retrieve the Table ID that the menu item belongs to-
Methods inherited from interface com.biglybt.pif.ui.menus.MenuItem
addFillListener, getData, getDisposeWithUIDetach, getGraphic, getHeaderCategory, getItem, getItems, getMenuID, getMinUserMode, getParent, getResourceKey, getStyle, getText, isEnabled, isSelected, isVisible, remove, removeAllChildItems, removeFillListener, removeListener, removeMultiListener, setData, setDisposeWithUIDetach, setEnabled, setGraphic, setHeaderCategory, setMinUserMode, setStyle, setSubmenuBuilder, setText, setVisible
-
-
-
-
Method Detail
-
addListener
void addListener(MenuItemListener l)
Adds a selection listener for this menu item. TheMenuItemListener.selected(MenuItem, Object)
method invoked with the target being aTableRow
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 viaaddMultiListener(MenuItemListener)
.- Specified by:
addListener
in interfaceMenuItem
- 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 fromaddListener(MenuItemListener)
, in that the target object which will be passed to the listener will be an array ofTableRow
objects, rather than just a single object.- Specified by:
addMultiListener
in interfaceMenuItem
- Parameters:
l
- listener to be notified when user has selected the menu item.- Since:
- 2.5.0.2
-
getTableID
java.lang.String getTableID()
Retrieve the Table ID that the menu item belongs to- Returns:
TableManager
.TABLE_ constant
-
-