Interface MenuItem

All Superinterfaces:
Component
All Known Implementing Classes:
MenuItemImpl

public interface MenuItem extends Component
The MenuItem interface represents a menu item.
Since:
Epic 4.3
  • Method Details

    • getEnabled

      boolean getEnabled()
      Shows whether the menu item is active or not.
      Throws:
      WindowException - INVALID_MODIFICATION_ERR: Raised if the object is a top-level menu item which cannot be disabled.
    • setEnabled

      void setEnabled(boolean enabled) throws WindowException
      Shows whether the menu item is active or not.
      Throws:
      WindowException - INVALID_MODIFICATION_ERR: Raised if the object is a top-level menu item which cannot be disabled.
    • getChecked

      boolean getChecked()
      For toggle menu items only. Shows whether the toggle menu item is checked or not.
      Throws:
      WindowException - INVALID_MODIFICATION_ERR: Raised if the object is not a toggle menu item.
      Since:
      Epic 4.4
    • setChecked

      void setChecked(boolean checked) throws WindowException
      For toggle menu items only. Shows whether the toggle menu item is checked or not.
      Throws:
      WindowException - INVALID_MODIFICATION_ERR: Raised if the object is not a toggle menu item.
      Since:
      Epic 4.4