Class SavingAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.gui.dialogs.relation.actions.AbstractRelationEditorAction
-
- org.openstreetmap.josm.gui.dialogs.relation.actions.SavingAction
-
- 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
- Direct Known Subclasses:
ApplyAction,CancelAction,OKAction,RefreshAction
abstract class SavingAction extends AbstractRelationEditorAction
Abstract superclass of relation saving actions (OK, Apply, Cancel).- Since:
- 9496
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUIDprotected AutoCompletingTextFieldtfRole-
Fields inherited from class org.openstreetmap.josm.gui.dialogs.relation.actions.AbstractRelationEditorAction
editorAccess
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSavingAction(IRelationEditorActionAccess editorAccess, IRelationEditorUpdateOn... updateOn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanapplyChanges()protected voidapplyExistingConflictingRelation(TagEditorModel tagEditorModel)Apply the updates for an existing relation which has been changed outside of the relation editor.protected voidapplyExistingNonConflictingRelation(TagEditorModel tagEditorModel)Apply the updates for an existing relation which has not been changed outside of the relation editor.protected voidapplyNewRelation(TagEditorModel tagEditorModel)apply updates to a new relationprotected booleanconfirmClosingBecauseOfDirtyState()protected voidhideEditor()protected booleanisEditorDirty()protected voidupdateEnabledState()protected voidwarnDoubleConflict()-
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
-
tfRole
protected final AutoCompletingTextField tfRole
-
-
Constructor Detail
-
SavingAction
protected SavingAction(IRelationEditorActionAccess editorAccess, IRelationEditorUpdateOn... updateOn)
-
-
Method Detail
-
applyNewRelation
protected void applyNewRelation(TagEditorModel tagEditorModel)
apply updates to a new relation- Parameters:
tagEditorModel- tag editor model
-
applyExistingConflictingRelation
protected void applyExistingConflictingRelation(TagEditorModel tagEditorModel)
Apply the updates for an existing relation which has been changed outside of the relation editor.- Parameters:
tagEditorModel- tag editor model
-
applyExistingNonConflictingRelation
protected void applyExistingNonConflictingRelation(TagEditorModel tagEditorModel)
Apply the updates for an existing relation which has not been changed outside of the relation editor.- Parameters:
tagEditorModel- tag editor model
-
confirmClosingBecauseOfDirtyState
protected boolean confirmClosingBecauseOfDirtyState()
-
warnDoubleConflict
protected void warnDoubleConflict()
-
updateEnabledState
protected void updateEnabledState()
- Specified by:
updateEnabledStatein classAbstractRelationEditorAction
-
applyChanges
protected boolean applyChanges()
-
hideEditor
protected void hideEditor()
-
isEditorDirty
protected boolean isEditorDirty()
-
-