Cytoscape 3.0.0-alpha8-SNAPSHOT API

org.cytoscape.application.swing
Class AlwaysEnabledEnableSupport

java.lang.Object
  extended by org.cytoscape.application.swing.AlwaysEnabledEnableSupport

public final class AlwaysEnabledEnableSupport
extends Object

A class that allows the enabled state of an Action to be always enabled.


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
AlwaysEnabledEnableSupport(Action action)
          Constructor.
AlwaysEnabledEnableSupport(DynamicSubmenuListener submenuListener)
          Constructor.
AlwaysEnabledEnableSupport(JMenuItem menuItem)
          Constructor.
 
Method Summary
 boolean isCurrentlyEnabled()
          Returns true if the action/menuListener/menuItem is enabled, false otherwise.
protected  void setEnabled(boolean b)
           
 void updateEnableState()
          Always sets the enable state to true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlwaysEnabledEnableSupport

public AlwaysEnabledEnableSupport(DynamicSubmenuListener submenuListener)
Constructor.

Parameters:
submenuListener - The submenu listener whose enabled state will be updated.

AlwaysEnabledEnableSupport

public AlwaysEnabledEnableSupport(Action action)
Constructor.

Parameters:
action - The action whose enabled state will be updated.

AlwaysEnabledEnableSupport

public AlwaysEnabledEnableSupport(JMenuItem menuItem)
Constructor.

Parameters:
menuItem - The menuItem whose enabled state will be updated.
Method Detail

updateEnableState

public void updateEnableState()
Always sets the enable state to true.


setEnabled

protected void setEnabled(boolean b)

isCurrentlyEnabled

public final boolean isCurrentlyEnabled()
Returns true if the action/menuListener/menuItem is enabled, false otherwise.

Returns:
true if the action/menuListener/menuItem is enabled, false otherwise.

Cytoscape 3.0.0-alpha8-SNAPSHOT API

Copyright 2011 Cytoscape Consortium. All rights reserved.