org.openstreetmap.josm.gui.conflict.pair
Class ListMerger.FreezeAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.openstreetmap.josm.gui.conflict.pair.ListMerger.FreezeAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.ItemListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, ListMerger.FreezeActionProperties
Enclosing class:
ListMerger<T extends PrimitiveId>

 class ListMerger.FreezeAction
extends javax.swing.AbstractAction
implements java.awt.event.ItemListener, ListMerger.FreezeActionProperties

Action for freezing the current state of the list merger


Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface org.openstreetmap.josm.gui.conflict.pair.ListMerger.FreezeActionProperties
PROP_SELECTED
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ListMerger.FreezeAction()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent arg0)
           
 void adapt(javax.swing.JToggleButton btn)
          Java 1.5 doesn't known Action.SELECT_KEY.
 void itemStateChanged(java.awt.event.ItemEvent e)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListMerger.FreezeAction

public ListMerger.FreezeAction()
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent arg0)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

adapt

public void adapt(javax.swing.JToggleButton btn)
Java 1.5 doesn't known Action.SELECT_KEY. Wires a toggle button to this action such that the action gets notified about item state changes and the button gets notified about selection state changes of the action.

Parameters:
btn - a toggle button

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Specified by:
itemStateChanged in interface java.awt.event.ItemListener


JOSM