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:
ActionListener
,PropertyChangeListener
,Serializable
,Cloneable
,EventListener
,Action
,ListSelectionListener
,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 long
serialVersionUID
protected AutoCompletingTextField
tfRole
-
Fields inherited from class org.openstreetmap.josm.gui.dialogs.relation.actions.AbstractRelationEditorAction
editorAccess
-
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
-
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 protected
SavingAction(IRelationEditorActionAccess editorAccess, IRelationEditorUpdateOn... updateOn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
applyChanges()
protected void
applyExistingConflictingRelation(TagEditorModel tagEditorModel)
Apply the updates for an existing relation which has been changed outside of the relation editor.protected void
applyExistingNonConflictingRelation(TagEditorModel tagEditorModel)
Apply the updates for an existing relation which has not been changed outside of the relation editor.protected void
applyNewRelation(TagEditorModel tagEditorModel)
apply updates to a new relationprotected boolean
confirmClosingBecauseOfDirtyState()
protected void
hideEditor()
protected boolean
isEditorDirty()
protected void
updateEnabledState()
protected void
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
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
-
-
-
-
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:
updateEnabledState
in classAbstractRelationEditorAction
-
applyChanges
protected boolean applyChanges()
-
hideEditor
protected void hideEditor()
-
isEditorDirty
protected boolean isEditorDirty()
-
-