public interface DynamicSubmenuListener extends MenuListener, PopupMenuListener
MenuListener
that is used to describe
dynamic submenus. This interface allows the top name of the
dynamic menu to be set and allows the menu to be enabled or
disabled based on the state of the system.Module: work-swing-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>work-swing-api</artifactId> </dependency>
Modifier and Type | Method and Description |
---|---|
void |
setEnabled(boolean enableState)
Enables or disables the dynamically created menus.
|
void |
setMenuTitle(String name)
Sets the name of the top level menu.
|
menuCanceled, menuDeselected, menuSelected
popupMenuCanceled, popupMenuWillBecomeInvisible, popupMenuWillBecomeVisible
void setMenuTitle(String name)
name
- The name to use for the top level menu.void setEnabled(boolean enableState)
enableState
- Whether to enable or disable the menu.Copyright 2011 Cytoscape Consortium. All rights reserved.