Class AbstractTableHeaderMenu

java.lang.Object
slash.navigation.converter.gui.helpers.AbstractTableHeaderMenu
Direct Known Subclasses:
PhotosTableHeaderMenu, PointsOfInterestTableHeaderMenu, PositionsTableHeaderMenu, RoutesTableHeaderMenu

public abstract class AbstractTableHeaderMenu extends Object
Helps to make popups for tables headers useable.
Author:
Christian Pesch
  • Constructor Details

  • Method Details

    • initializeSortPositions

      protected void initializeSortPositions(JMenu sortPositionListMenu, PositionsModel positionsModel)
    • initializeShowColumn

      protected void initializeShowColumn()
      Registers a ToggleColumnVisibilityAction once per prepared column and builds the header right-click popup. The menu-bar "Show Column" submenu is no longer built here - see populateShowColumnMenu(JMenu), which reuses these registered actions.
    • populateShowColumnMenu

      public void populateShowColumnMenu(JMenu menu)
      Rebuilds the given menu-bar "Show Column" submenu from this table's prepared columns, reusing the actions registered once by initializeShowColumn() - repeated calls (one per tab switch) must not re-register actions with the ActionManager. All mutation happens on the EDT.
    • initializePopup

      protected void initializePopup(JTableHeader tableHeader)
    • enableSortActions

      public void enableSortActions(boolean enable)