public final class UserAction extends Object
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>| Constructor and Description |
|---|
UserAction(ActionListener actionListener)
Creates a new UserAction object.
|
| Modifier and Type | Method and Description |
|---|---|
ActionListener |
getActionListener() |
boolean |
getEnabled() |
void |
setActionListener(ActionListener actionListener) |
void |
setEnabled(boolean enabled) |
public UserAction(ActionListener actionListener)
Tunable mechanism. The Tunable mechanism
will display this as a button on the GUI;
example :
class MyClass implements ActionListener {actionListener - the ActionListener that will be invoked when the user
selects this actionpublic ActionListener getActionListener()
public void setActionListener(ActionListener actionListener)
public boolean getEnabled()
public void setEnabled(boolean enabled)
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.