Class LicensedOnlyComponents.MenuItem

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, MenuElement, SwingConstants
Enclosing class:
LicensedOnlyComponents

public static class LicensedOnlyComponents.MenuItem extends GMenuItem
Same as a GMenuItem but automatically becomes disabled if the user does not have an active license. The text of the components is changed to include "(restricted)" on the end when disabled for this reason
Since:
API 4.202700 (Geneious 2027.0.0)
See Also:
  • Constructor Details

    • MenuItem

      public MenuItem(GeneiousAction a)
      Creates a menu item for the given action. While a license is active the item follows the action's own enabled state; while no license is active it is disabled and its text has "(restricted)" appended. The item is held weakly by its license listener, so it does not need to be displayed to stay up to date and does not leak once it is discarded.
      Parameters:
      a - the action this menu item invokes
  • Method Details