|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TableContextMenuItem
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 |
---|
void addListener(MenuItemListener l)
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)
.
addListener
in interface MenuItem
l
- listener to be notified when user has selected the menu item.void addMultiListener(MenuItemListener l)
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.
addMultiListener
in interface MenuItem
l
- listener to be notified when user has selected the menu item.String getTableID()
TableManager
.TABLE_ constant
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |