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
|
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 |
a
private javax.swing.Action a
b
private javax.swing.AbstractButton b
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
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