Package org.cytoscape.work.swing.util
Class UserAction
- java.lang.Object
-
- org.cytoscape.work.swing.util.UserAction
-
public final class UserAction extends Object
Support for a user initiated actionModule:
work-swing-apiTo use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>work-swing-api</artifactId> </dependency>
Cytoscape Backwards Compatibility (Final Class): This class is final and therefore can't be extended by users. This means that we may add methods for minor version updates. Methods will only be removed for major version updates.
-
-
Constructor Summary
Constructors Constructor Description UserAction(ActionListener actionListener)Creates a new UserAction object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionListenergetActionListener()booleangetEnabled()voidsetActionListener(ActionListener actionListener)voidsetEnabled(boolean enabled)
-
-
-
Constructor Detail
-
UserAction
public UserAction(ActionListener actionListener)
Creates a new UserAction object. This object is meant to be used by the CytoscapeTunablemechanism. The Tunable mechanism will display this as a button on the GUI;example :
class MyClass implements ActionListener {- Parameters:
actionListener- the ActionListener that will be invoked when the user selects this action
-
-
Method Detail
-
getActionListener
public ActionListener getActionListener()
-
setActionListener
public void setActionListener(ActionListener actionListener)
-
getEnabled
public boolean getEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
-
-