Class RefreshAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.gui.dialogs.relation.actions.AbstractRelationEditorAction
-
- org.openstreetmap.josm.gui.dialogs.relation.actions.SavingAction
-
- org.openstreetmap.josm.gui.dialogs.relation.actions.RefreshAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.beans.PropertyChangeListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
,javax.swing.event.ListSelectionListener
,javax.swing.event.TableModelListener
,UndoRedoHandler.CommandQueueListener
public class RefreshAction extends SavingAction implements UndoRedoHandler.CommandQueueListener
Refresh relation.- Since:
- 9657
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Fields inherited from class org.openstreetmap.josm.gui.dialogs.relation.actions.SavingAction
tfRole
-
Fields inherited from class org.openstreetmap.josm.gui.dialogs.relation.actions.AbstractRelationEditorAction
editorAccess
-
-
Constructor Summary
Constructors Constructor Description RefreshAction(IRelationEditorActionAccess editorAccess)
Constructs a newRefreshAction
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
void
commandChanged(int queueSize, int redoSize)
Notifies the listener about the new queue sizeprotected int
confirmCloseDeletedRelation()
protected int
confirmDiscardDirtyData()
void
destroy()
Allow GC to do its workvoid
updateEnabledState()
-
Methods inherited from class org.openstreetmap.josm.gui.dialogs.relation.actions.SavingAction
applyChanges, applyExistingConflictingRelation, applyExistingNonConflictingRelation, applyNewRelation, confirmClosingBecauseOfDirtyState, hideEditor, isEditorDirty, warnDoubleConflict
-
Methods inherited from class org.openstreetmap.josm.gui.dialogs.relation.actions.AbstractRelationEditorAction
canDownload, getEditor, getLayer, getMemberTable, getMemberTableModel, getSelectionTable, getSelectionTableModel, getTagModel, isExpertOnly, propertyChange, tableChanged, valueChanged
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RefreshAction
public RefreshAction(IRelationEditorActionAccess editorAccess)
Constructs a newRefreshAction
.- Parameters:
editorAccess
- An interface to access the relation editor contents.
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
-
updateEnabledState
public void updateEnabledState()
- Overrides:
updateEnabledState
in classSavingAction
-
confirmDiscardDirtyData
protected int confirmDiscardDirtyData()
-
confirmCloseDeletedRelation
protected int confirmCloseDeletedRelation()
-
commandChanged
public void commandChanged(int queueSize, int redoSize)
Description copied from interface:UndoRedoHandler.CommandQueueListener
Notifies the listener about the new queue size- Specified by:
commandChanged
in interfaceUndoRedoHandler.CommandQueueListener
- Parameters:
queueSize
- Undo stack sizeredoSize
- Redo stack size
-
destroy
public void destroy()
Allow GC to do its work
-
-