public interface CyAction extends Action, MenuListener, PopupMenuListener
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Modifier and Type | Method and Description |
---|---|
KeyStroke |
getAcceleratorKeyStroke()
Returns the accelerator KeyStroke defined for this action.
|
float |
getMenuGravity()
Returns the gravity used to place the menu item for this action.
|
String |
getName()
Returns the name of the action.
|
String |
getPreferredMenu()
This method returns a Menu specification string.
|
float |
getToolbarGravity()
Returns the gravity used to place this action in the toolbar.
|
boolean |
isInMenuBar()
Returns whether the action should be in the menu bar.
|
boolean |
isInToolBar()
Returns whether the action should be in the tool bar.
|
void |
updateEnableState()
Forces the action to update its enable state based on the criteria defined for
the action.
|
boolean |
useCheckBoxMenuItem()
Returns whether or not a checkbox menu item should be used.
|
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
actionPerformed
menuCanceled, menuDeselected, menuSelected
popupMenuCanceled, popupMenuWillBecomeInvisible, popupMenuWillBecomeVisible
String getName()
boolean isInMenuBar()
boolean isInToolBar()
float getMenuGravity()
float getToolbarGravity()
KeyStroke getAcceleratorKeyStroke()
String getPreferredMenu()
boolean useCheckBoxMenuItem()
void updateEnableState()
Copyright 2011 Cytoscape Consortium. All rights reserved.