Class AbstractListMerger.FreezeAction
java.lang.Object
javax.swing.AbstractAction
org.openstreetmap.josm.gui.conflict.pair.AbstractListMerger.FreezeAction
- All Implemented Interfaces:
ActionListener,ItemListener,Serializable,Cloneable,EventListener,Action,AbstractListMerger.FreezeActionProperties
- Enclosing class:
- AbstractListMerger<T extends PrimitiveId,
C extends ConflictResolveCommand>
private final class AbstractListMerger.FreezeAction
extends AbstractAction
implements ItemListener, AbstractListMerger.FreezeActionProperties
Action for freezing the current state of the list merger
-
Field Summary
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields inherited from interface org.openstreetmap.josm.gui.conflict.pair.AbstractListMerger.FreezeActionProperties
PROP_SELECTEDFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent arg0) voidadapt(JToggleButton btn) Java 1.5 doesn't know Action.SELECT_KEY.voidMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
FreezeAction
private FreezeAction()
-
-
Method Details
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
adapt
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
- Specified by:
itemStateChangedin interfaceItemListener
-