public static class CombinedMenuContent.Item extends Object
Constructor and Description |
---|
Item(Dockable dockable,
String text,
String tooltip,
Icon icon,
boolean enabled)
Creates a new
CombinedMenuContent.Item . |
Modifier and Type | Method and Description |
---|---|
Dockable |
getDockable()
Gets the element which is represented by this item.
|
Icon |
getIcon()
Gets the icon of this item.
|
String |
getText()
Gets the text to be shown to the user.
|
String |
getToolTip()
Gets the description of this item.
|
boolean |
isEnabled()
Tells whether this item can be selected.
|
public Item(Dockable dockable, String text, String tooltip, Icon icon, boolean enabled)
CombinedMenuContent.Item
.dockable
- the items valuetext
- the items texttooltip
- the items descriptionicon
- the items iconenabled
- whether this item is selectablepublic Dockable getDockable()
null
public String getText()
null
public String getToolTip()
null
public Icon getIcon()
null
public boolean isEnabled()