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, enabled
-
Fields inherited from interface org.openstreetmap.josm.gui.conflict.pair.AbstractListMerger.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
Constructors Modifier Constructor Description private
FreezeAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(ActionEvent arg0)
void
adapt(JToggleButton btn)
Java 1.5 doesn't known Action.SELECT_KEY.void
itemStateChanged(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(ActionEvent arg0)
- Specified by:
actionPerformed
in interfaceActionListener
-
adapt
public void adapt(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(ItemEvent e)
- Specified by:
itemStateChanged
in interfaceItemListener
-
-