|
Cytoscape 3.0.0-alpha8-SNAPSHOT API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cytoscape.application.swing.TaskFactoryEnableSupport
public final class TaskFactoryEnableSupport
A class that allows the enabled state of an Action of JMenuItem to be managed in a consistent way.
| Constructor Summary | |
|---|---|
TaskFactoryEnableSupport(Action action,
TaskFactory tfp)
Constructor. |
|
TaskFactoryEnableSupport(DynamicSubmenuListener submenuListener,
TaskFactory tfp)
Constructor. |
|
TaskFactoryEnableSupport(JMenuItem menuItem,
TaskFactory tfp)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
isCurrentlyEnabled()
Returns true if the action/menuListener/menuItem is enabled, false otherwise. |
protected void |
setEnabled(boolean b)
|
void |
updateEnableState()
Updates the enable state for the specified action/menuListener/menuItem for the specified enableFor description and the state of the system. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TaskFactoryEnableSupport(DynamicSubmenuListener submenuListener,
TaskFactory tfp)
submenuListener - The submenu listener whose enabled state will be updated.tfp - The task factory enabler that indicates whether or not the submenu
listener should be enabled.
public TaskFactoryEnableSupport(Action action,
TaskFactory tfp)
action - The action whose enabled state will be updated.tfp - The task factory enabler that indicates whether or not the action
should be enabled.
public TaskFactoryEnableSupport(JMenuItem menuItem,
TaskFactory tfp)
menuItem - The menuItem whose enabled state will be updated.tfp - The task factory enabler that indicates whether or not the menu item
should be enabled.| Method Detail |
|---|
public void updateEnableState()
protected void setEnabled(boolean b)
public final boolean isCurrentlyEnabled()
|
Cytoscape 3.0.0-alpha8-SNAPSHOT API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||