| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A visual entity, representing a base of a command item. The entity has its own icon, tooltip text,
a shortcut (keys combination) and can be made visible or not, and enabled or disabled, as well.
For entities being inserted into menus (main menu or popup menu) this interface provides methods for
inserting a separation line before or after this entity.
IdeCommandManager is responsible for creating and inserting command items
(IdeCommandItems and IdeCommandGroups)
into command containers (main menu, main toolbar, diagram toolbar, popup menu or IdeCommandGroups).
The two actual kinds of command items - IdeCommandItem and IdeCommandGroup extend this interface.
| Method Summary | |
void | addShortcut(KeyStroke value)Adds the specified shortcut to the list of shortcuts for this command item. |
Icon | getIcon(String type)Returns the Icon of the specified kind for this command item. |
String | getId()Returns a string with the ID of this command item. |
String | getText()Returns the string with a tooltip text of this command item. |
boolean | isEnabled()Checks whether this command item is enabled. |
boolean | isSeparatorAfter()Checks whether there is a separation line after this command item. |
boolean | isSeparatorBefore()Checks whether there is a separation line before this command item. |
boolean | isVisible()Checks whether this command item is visible. |
void | removeShortcut(KeyStroke value)Removes the specified shortcut from the list of shortcuts for this command item. |
void | setEnabled(boolean value)Sets whether this command item is enabled. |
void | setIcon(String type, Icon icon)Sets the icon of the specified type for this command item. |
void | setSeparatorAfter(boolean value)Sets a separation line after this command item. |
void | setSeparatorBefore(boolean value)Sets a separation line before this command item. |
void | setText(String text)Sets the content of a tooltip text for this command item. |
void | setVisible(boolean value)Sets the visibility of this command item. |
KeyStrokeEnumeration | shortcuts()Returns the shortcuts for this command item. |
| Method Detail |
public void addShortcut(KeyStroke value)
KeyStroke instance.public Icon getIcon(String type)
Icon of the specified kind for this command item.string with the kind of the icon. Possible types are defined in
IdeCommandIconType interface.Icon of the specified type for this command itempublic String getId()
public String getText()
public boolean isEnabled()
true if enabled, false otherwisepublic boolean isSeparatorAfter()
true if there is a separation line after this command item, false otherwisepublic boolean isSeparatorBefore()
true if there is a separation line before this command item, false otherwisepublic boolean isVisible()
true if this command item is visible, false otherwisepublic void removeShortcut(KeyStroke value)
KeyStroke instance.public void setEnabled(boolean value)
boolean value. If true then this command item will be made enabled,
false then this command item will be made disabled.public void setIcon(String type, Icon icon)
string with the kind of the icon. Possible kinds are defined in
IdeCommandIconType interface.public void setSeparatorAfter(boolean value)
boolean value. If true then a separation line will be inserted after this
false, then deletes the separatino line if anypublic void setSeparatorBefore(boolean value)
boolean value. If true then a separation line will be inserted before this
false, then deletes the separation line if anypublic void setText(String text)
public void setVisible(boolean value)
boolean value. If true then this command item will be made visible,
false then this command item will be made invisible.public KeyStrokeEnumeration shortcuts()
KeyStrokeEnumeration instance
| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||