T
- the type of the row headerpublic interface IRowHeaderMenuProvider<T extends AbstractRowHeader>
AbstractRowHeader
. This could be the row header of
the tree table (TreeTableRowHeader
) or the row header of the layer
container (LayerContainerRowHeader
).
When using this provider instead of using the default popup infrastructure
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.
AbstractRowHeader.setMenuProvider(IRowHeaderMenuProvider)
Modifier and Type | Method and Description |
---|---|
JPopupMenu |
getPopupMenu(T rowHeader,
MouseEvent e,
TreePath treePath)
Returns a popup menu for the given tree table.
|
JPopupMenu getPopupMenu(T rowHeader, MouseEvent e, TreePath treePath)
rowHeader
- the row header 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 occuredAbstractRowHeader.setMenuProvider(IRowHeaderMenuProvider)
Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.