com.bluemarsh.jswat.ui
Class MainWindow.ActionChangedListener

java.lang.Object
  |
  +--com.bluemarsh.jswat.ui.MainWindow.ActionChangedListener
All Implemented Interfaces:
java.util.EventListener, java.beans.PropertyChangeListener
Enclosing class:
MainWindow

protected class MainWindow.ActionChangedListener
extends java.lang.Object
implements java.beans.PropertyChangeListener

Watches for changes in the actions and deals with them by changing the corresponding menu items or toolbar buttons.


Constructor Summary
MainWindow.ActionChangedListener(javax.swing.JComponent c)
          Constructor for our action change listener.
 
Method Summary
 void propertyChange(java.beans.PropertyChangeEvent e)
          Handles changes in the action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainWindow.ActionChangedListener

public MainWindow.ActionChangedListener(javax.swing.JComponent c)
Constructor for our action change listener.
Parameters:
c - component we are to associate with.
Method Detail

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent e)
Handles changes in the action. If the action name changed we change our menu name. If the action changed it's enabled state, we change our component's state.
Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Parameters:
e - property change event