Class SetRoleAction
java.lang.Object
javax.swing.AbstractAction
org.openstreetmap.josm.gui.dialogs.relation.actions.AbstractRelationEditorAction
org.openstreetmap.josm.gui.dialogs.relation.actions.SetRoleAction
- All Implemented Interfaces:
ActionListener,PropertyChangeListener,Serializable,Cloneable,EventListener,Action,DocumentListener,ListSelectionListener,TableModelListener
Sets a role for the selected members
- Since:
- 9496
- See Also:
-
Field Summary
FieldsFields inherited from class org.openstreetmap.josm.gui.dialogs.relation.actions.AbstractRelationEditorAction
editorAccessFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields 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
ConstructorsConstructorDescriptionSetRoleAction(IRelationEditorActionAccess editorAccess) Constructs a newSetRoleAction. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected booleanconfirmSettingEmptyRole(int onNumMembers) voidprotected booleanvoidprotected voidMethods inherited from class org.openstreetmap.josm.gui.dialogs.relation.actions.AbstractRelationEditorAction
canDownload, getEditor, getLayer, getMemberTable, getMemberTableModel, getSelectionTable, getSelectionTableModel, getTagModel, isExpertOnly, propertyChange, tableChanged, valueChangedMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
serialVersionUID
- See Also:
-
tfRole
-
-
Constructor Details
-
SetRoleAction
Constructs a newSetRoleAction.- Parameters:
editorAccess- An interface to access the relation editor contents.
-
-
Method Details
-
updateEnabledState
- Specified by:
updateEnabledStatein classAbstractRelationEditorAction
-
isEmptyRole
-
confirmSettingEmptyRole
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
changedUpdate
- Specified by:
changedUpdatein interfaceDocumentListener
-
insertUpdate
- Specified by:
insertUpdatein interfaceDocumentListener
-
removeUpdate
- Specified by:
removeUpdatein interfaceDocumentListener
-