Java 2 Platform
v1.3

edu.umich.visualsoar.util
Class ActionButtonAssociation

java.lang.Object
  |
  +--edu.umich.visualsoar.util.ActionButtonAssociation
All Implemented Interfaces:
java.util.EventListener, java.beans.PropertyChangeListener

public class ActionButtonAssociation
extends java.lang.Object
implements java.beans.PropertyChangeListener

This class is used to associate a button with an action so that the the action is enabled, the button is enabled if the action is disabled, then so is the button


Field Summary
private  javax.swing.Action a
           
private  javax.swing.AbstractButton b
           
 
Constructor Summary
private ActionButtonAssociation()
           
  ActionButtonAssociation(javax.swing.Action _a, javax.swing.AbstractButton _b)
          This associates the button with the give action
 
Method Summary
 void propertyChange(java.beans.PropertyChangeEvent evt)
          This listener method changes the buttons enabled-ness when the action's enabled-ness changes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

a

private javax.swing.Action a

b

private javax.swing.AbstractButton b
Constructor Detail

ActionButtonAssociation

private ActionButtonAssociation()

ActionButtonAssociation

public ActionButtonAssociation(javax.swing.Action _a,
                               javax.swing.AbstractButton _b)
This associates the button with the give action

Parameters:
_a - the action for which you want the button associated
_b - the button for which you want the action associated
Method Detail

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
This listener method changes the buttons enabled-ness when the action's enabled-ness changes

Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Parameters:
evt - the change event, not used

Java 2 Platform
v1.3