public static class CombinedMenuContent.Item
extends java.lang.Object
Constructor and Description |
---|
Item(Dockable dockable,
java.lang.String text,
java.lang.String tooltip,
javax.swing.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.
|
javax.swing.Icon |
getIcon()
Gets the icon of this item.
|
java.lang.String |
getText()
Gets the text to be shown to the user.
|
java.lang.String |
getToolTip()
Gets the description of this item.
|
boolean |
isEnabled()
Tells whether this item can be selected.
|
public Item(Dockable dockable, java.lang.String text, java.lang.String tooltip, javax.swing.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 java.lang.String getText()
null
public java.lang.String getToolTip()
null
public javax.swing.Icon getIcon()
null
public boolean isEnabled()