Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.dinopolis.util.gui
Class MenuItemActionChangedListener  view MenuItemActionChangedListener download MenuItemActionChangedListener.java

java.lang.Object
  extended byorg.dinopolis.util.gui.MenuItemActionChangedListener
All Implemented Interfaces:
java.util.EventListener, java.beans.PropertyChangeListener

class MenuItemActionChangedListener
extends java.lang.Object
implements java.beans.PropertyChangeListener

The item change listener for menues to change the menues properties accordingly.


Field Summary
private  javax.swing.JMenuItem menu_item_
          the corresponding menu item
private  javax.swing.Action selected_
          the corresponding action
 
Constructor Summary
(package private) MenuItemActionChangedListener(javax.swing.JMenuItem menu_item)
          Constructor taking the menu item as its argument.
 
Method Summary
 void propertyChange(java.beans.PropertyChangeEvent e)
          Invoked on property change events received from the Action.
(package private)  void setSelected(javax.swing.Action action)
          Changes the menu item's state according to the given value action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

menu_item_

private javax.swing.JMenuItem menu_item_
the corresponding menu item


selected_

private javax.swing.Action selected_
the corresponding action

Constructor Detail

MenuItemActionChangedListener

MenuItemActionChangedListener(javax.swing.JMenuItem menu_item)
Constructor taking the menu item as its argument.

Method Detail

setSelected

void setSelected(javax.swing.Action action)
Changes the menu item's state according to the given value action.


propertyChange

public void propertyChange(java.beans.PropertyChangeEvent e)
Invoked on property change events received from the Action. This will update the visualization of the menu item.

Specified by:
propertyChange in interface java.beans.PropertyChangeListener