|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the type of the row headerpublic interface IRowHeaderMenuProvider<T extends AbstractRowHeader>
A menu provider is a convenient way of adding a context sensitive popup menu
to an instance of 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)
Method Summary | |
---|---|
javax.swing.JPopupMenu |
getPopupMenu(T rowHeader,
java.awt.event.MouseEvent e,
javax.swing.tree.TreePath treePath)
Returns a popup menu for the given tree table. |
Method Detail |
---|
javax.swing.JPopupMenu getPopupMenu(T rowHeader, java.awt.event.MouseEvent e, javax.swing.tree.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 occured
AbstractRowHeader.setMenuProvider(IRowHeaderMenuProvider)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |