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 longserialVersionUID-
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 voidactionPerformed(java.awt.event.ActionEvent e)voidcommandChanged(int queueSize, int redoSize)Notifies the listener about the new queue sizeprotected intconfirmCloseDeletedRelation()protected intconfirmDiscardDirtyData()voiddestroy()Allow GC to do its workvoidupdateEnabledState()-
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:
actionPerformedin interfacejava.awt.event.ActionListener
-
updateEnabledState
public void updateEnabledState()
- Overrides:
updateEnabledStatein classSavingAction
-
confirmDiscardDirtyData
protected int confirmDiscardDirtyData()
-
confirmCloseDeletedRelation
protected int confirmCloseDeletedRelation()
-
commandChanged
public void commandChanged(int queueSize, int redoSize)
Description copied from interface:UndoRedoHandler.CommandQueueListenerNotifies the listener about the new queue size- Specified by:
commandChangedin interfaceUndoRedoHandler.CommandQueueListener- Parameters:
queueSize- Undo stack sizeredoSize- Redo stack size
-
destroy
public void destroy()
Allow GC to do its work
-
-