public interface ITreeTableMenuProvider
TreeTable
. When using this provider instead of using
JComponent.setComponentPopupMenu(JPopupMenu)
the information that is
usually required by the popup menu gets already delivered to the provider.
This information contains the location of the mouse event that triggered the
popup and the tree path to the row where the popup got requested.TreeTable.setMenuProvider(ITreeTableMenuProvider)
Modifier and Type | Method and Description |
---|---|
JPopupMenu |
getPopupMenu(TreeTable table,
MouseEvent e,
TreePath treePath,
TreeTableColumn column)
Returns a popup menu for the given tree table.
|
JPopupMenu getPopupMenu(TreeTable table, MouseEvent e, TreePath treePath, TreeTableColumn column)
table
- the tree table that requests the popup menue
- the mouse event that triggered the popup menu requesttreePath
- the tree path that points to the row where the request occured
(can be NULL)column
- the column in which the popup mouse event occuredTreeTable.setMenuProvider(ITreeTableMenuProvider)
Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.