public abstract class AbstractMenuItem extends Object implements MenuItem
MenuItem
implementations.Constructor and Description |
---|
AbstractMenuItem() |
Modifier and Type | Method and Description |
---|---|
void |
addChildren(MenuItem menuItem)
Adds a children to the current
MenuItem |
List<MenuItem> |
getChildren()
The
MenuItem s can be cascaded (allowing a tree). |
String |
getLabel()
The Label of the menu item.
|
int |
getOrder() |
boolean |
isCheckable()
Defines if the current
MenuItem is a checkable item. |
void |
setCheckable(boolean checkable) |
void |
setLabel(String label) |
void |
setOrder(int order) |
public String getLabel()
MenuItem
public void setLabel(String label)
public List<MenuItem> getChildren()
MenuItem
MenuItem
s can be cascaded (allowing a tree).getChildren
in interface MenuItem
public void addChildren(MenuItem menuItem)
MenuItem
MenuItem
addChildren
in interface MenuItem
menuItem
- the child to add.public boolean isCheckable()
MenuItem
MenuItem
is a checkable item.isCheckable
in interface MenuItem
MenuBar.MenuItem#isCheckable()
public void setCheckable(boolean checkable)
Copyright © 2021. All rights reserved.