Class AbstractListMerger.FreezeAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.gui.conflict.pair.AbstractListMerger.FreezeAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.awt.event.ItemListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action,AbstractListMerger.FreezeActionProperties
- Enclosing class:
- AbstractListMerger<T extends PrimitiveId,C extends ConflictResolveCommand>
private final class AbstractListMerger.FreezeAction extends javax.swing.AbstractAction implements java.awt.event.ItemListener, AbstractListMerger.FreezeActionProperties
Action for freezing the current state of the list merger
-
-
Field Summary
-
Fields inherited from interface org.openstreetmap.josm.gui.conflict.pair.AbstractListMerger.FreezeActionProperties
PROP_SELECTED
-
-
Constructor Summary
Constructors Modifier Constructor Description privateFreezeAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent arg0)voidadapt(javax.swing.JToggleButton btn)Java 1.5 doesn't know Action.SELECT_KEY.voiditemStateChanged(java.awt.event.ItemEvent e)-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
FreezeAction
private FreezeAction()
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent arg0)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
adapt
public void adapt(javax.swing.JToggleButton btn)
Java 1.5 doesn't know 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:
itemStateChangedin interfacejava.awt.event.ItemListener
-
-