Class AbstractPopupMenuPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ScrollableHost
Direct Known Subclasses:
BasicRibbonBandUI.BandCollapsePopupMenuPanel, JColorSelectorPopupMenuPanel, JCommandPopupMenuPanel, JRibbonApplicationMenuPopupPanel

public abstract class AbstractPopupMenuPanel extends JPopupPanel implements ScrollableHost
Popup menu with groups of command buttons. Use the CommandMenuContentModel(CommandPanelContentModel, List) constructor to place a scrollable command button panel in the top part of the popup menu.
See Also:
  • Field Details

  • Constructor Details

    • AbstractPopupMenuPanel

      protected AbstractPopupMenuPanel()
  • Method Details

    • addMenuButton

      protected void addMenuButton(JCommandButton menuButton)
    • addMenuSeparator

      protected void addMenuSeparator()
    • addMenuPanel

      protected void addMenuPanel(JPanel menuPanel)
      Adds a menu panel to this menu.
      Parameters:
      menuPanel - Menu panel to add.
    • getMenuComponents

      public List<Component> getMenuComponents()
      Returns an unmodifiable list of all the menu components. Can return null.
      Returns:
      An unmodifiable list of all the menu components
    • addChangeListener

      public void addChangeListener(ChangeListener l)
      Adds the specified change listener to track changes to this popup menu.
      Parameters:
      l - Change listener to add.
      See Also:
    • removeChangeListener

      public void removeChangeListener(ChangeListener l)
      Removes the specified change listener from tracking changes to this popup menu.
      Parameters:
      l - Change listener to remove.
      See Also:
    • fireStateChanged

      protected void fireStateChanged()
      Notifies all registered listener that the state of this popup menu has changed.