public interface CyAction extends Action, MenuListener, PopupMenuListener
Module: swing-application-api
To use this in your app, include the following dependency in your POM:
<dependency>
<groupId>org.cytoscape</groupId>
<artifactId>swing-application-api</artifactId>
</dependency>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.
|
Map<String,String> |
getProperties()
Returns the configuration properties that were passed to the CyAction
when it was created.
|
float |
getToolbarGravity()
Returns the gravity used to place this action in the toolbar.
|
boolean |
insertSeparatorAfter()
Insert a separator after this menu item.
|
boolean |
insertSeparatorBefore()
Insert a separator before this menu item.
|
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, setEnabledactionPerformedmenuCanceled, menuDeselected, menuSelectedpopupMenuCanceled, popupMenuWillBecomeInvisible, popupMenuWillBecomeVisibleString getName()
boolean isInMenuBar()
boolean isInToolBar()
boolean insertSeparatorBefore()
boolean insertSeparatorAfter()
float getMenuGravity()
float getToolbarGravity()
KeyStroke getAcceleratorKeyStroke()
String getPreferredMenu()
boolean useCheckBoxMenuItem()
void updateEnableState()
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.