Interface Menu
public interface Menu
A menu to be displayed in the
MenuBar
.-
Method Summary
Modifier and TypeMethodDescriptioncaption()
The caption to be displayed for the menu.static Menu
Create a new instance ofMenu
.The list ofMenuItem
that will be displayed in the menu.withCaption
(String caption) Create a copy ofMenu
with a new caption.withMenuItems
(MenuItem... menuItems) withMenuItems
(List<MenuItem> menuItems)
-
Method Details
-
caption
-
withCaption
-
withMenuItems
-