Class CancelAction
- 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.CancelAction
-
- 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
public class CancelAction extends SavingAction
Cancel the updates and close the dialog- Since:
- 9496
- 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 CancelAction(IRelationEditorActionAccess editorAccess)Constructs a newCancelAction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)protected intconfirmClosingByCancel(boolean isUseful)-
Methods inherited from class org.openstreetmap.josm.gui.dialogs.relation.actions.SavingAction
applyChanges, applyExistingConflictingRelation, applyExistingNonConflictingRelation, applyNewRelation, confirmClosingBecauseOfDirtyState, hideEditor, isEditorDirty, updateEnabledState, 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
-
CancelAction
public CancelAction(IRelationEditorActionAccess editorAccess)
Constructs a newCancelAction.- Parameters:
editorAccess- An interface to access the relation editor contents.
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
-
confirmClosingByCancel
protected int confirmClosingByCancel(boolean isUseful)
-
-