com.dlsc.flexgantt.swing.treetable

## Interface ITreeTableHeaderMenuProvider

- All Known Implementing Classes:
    DefaultTreeTableHeaderMenuProvider

      public interface ITreeTableHeaderMenuProvider

  A menu provider is a convenient way of adding a context sensitive popup menu to the `TreeTableHeader`. 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 column where the event occured.
  Since:
    1.0
  Version:
    $Revision: 1.2 $
  Author:
    Dirk Lemmermann
  See Also:
    `TreeTableHeader.setMenuProvider(ITreeTableHeaderMenuProvider)`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `JPopupMenu` | `getPopupMenu(TreeTableHeader header, MouseEvent e, TreeTableColumn column)` Returns a popup menu for the given tree table header.

- - ### Method Detail

    - #### getPopupMenu

          JPopupMenu getPopupMenu(TreeTableHeader header,
                                  MouseEvent e,
                                  TreeTableColumn column)

      Returns a popup menu for the given tree table header.
      Parameters:
        `header` - the header for which to return a popup menu
        `e` - the mouse event that triggered the popup menu
        `column` - the column where the event occured
      Returns:
        a popup menu that can be used in the context specified by the given parameters
      Since:
        1.0
      See Also:
        `TreeTableHeader.setMenuProvider(ITreeTableHeaderMenuProvider)`

Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.