Class SourceEditor.MoveUpDownAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.gui.preferences.SourceEditor.MoveUpDownAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
,javax.swing.event.ListSelectionListener
,javax.swing.event.TableModelListener
- Enclosing class:
- SourceEditor
class SourceEditor.MoveUpDownAction extends javax.swing.AbstractAction implements javax.swing.event.ListSelectionListener, javax.swing.event.TableModelListener
The action to move the currently selected entries up or down in the list.
-
-
Field Summary
Fields Modifier and Type Field Description private int
increment
-
Constructor Summary
Constructors Constructor Description MoveUpDownAction(boolean isDown)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
void
tableChanged(javax.swing.event.TableModelEvent e)
void
updateEnabledState()
void
valueChanged(javax.swing.event.ListSelectionEvent e)
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
increment
private final int increment
-
-
Constructor Detail
-
MoveUpDownAction
MoveUpDownAction(boolean isDown)
-
-
Method Detail
-
updateEnabledState
public final void updateEnabledState()
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
-
valueChanged
public void valueChanged(javax.swing.event.ListSelectionEvent e)
- Specified by:
valueChanged
in interfacejavax.swing.event.ListSelectionListener
-
tableChanged
public void tableChanged(javax.swing.event.TableModelEvent e)
- Specified by:
tableChanged
in interfacejavax.swing.event.TableModelListener
-
-