Package com.arbortext.epic.ui
Interface MenuItem
- All Superinterfaces:
Component
- All Known Implementing Classes:
MenuItemImpl
The
MenuItem interface represents a menu item.- Since:
- Epic 4.3
-
Field Summary
Fields inherited from interface com.arbortext.epic.ui.Component
DIALOG_COMPONENT, FRAME_COMPONENT, MENUBAR_COMPONENT, MENUITEM_COMPONENT -
Method Summary
Modifier and TypeMethodDescriptionbooleanFor toggle menu items only.booleanShows whether the menu item is active or not.voidsetChecked(boolean checked) For toggle menu items only.voidsetEnabled(boolean enabled) Shows whether the menu item is active or not.Methods inherited from interface com.arbortext.epic.ui.Component
appendChild, getComponentType, getFirstChild, getLastChild, getNextSibling, getOwnerWindow, getParentComponent, getPreviousSibling, getText, insertBefore, insertBefore, isSameComponent, removeChild, replaceChild, setText
-
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
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
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
-