Class AbstractRelationEditorAction
java.lang.Object
javax.swing.AbstractAction
org.openstreetmap.josm.gui.dialogs.relation.actions.AbstractRelationEditorAction
- All Implemented Interfaces:
ActionListener,PropertyChangeListener,Serializable,Cloneable,EventListener,Action,ListSelectionListener,TableModelListener
- Direct Known Subclasses:
AddFromSelectionAction,DeleteCurrentRelationAction,DownloadIncompleteMembersAction,DownloadSelectedIncompleteMembersAction,DuplicateRelationAction,EditAction,MoveDownAction,MoveUpAction,RemoveAction,ReverseAction,SavingAction,SelectAction,SelectPrimitivesForSelectedMembersAction,SetRoleAction,SortAction,SortBelowAction
public abstract class AbstractRelationEditorAction
extends AbstractAction
implements TableModelListener, ListSelectionListener, PropertyChangeListener
Abstract superclass of relation editor actions.
- Since:
- 9496
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final IRelationEditorActionAccessprivate static final longFields 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
ConstructorsModifierConstructorDescriptionprotectedAbstractRelationEditorAction(IRelationEditorActionAccess editorAccess, String actionMapKey, IRelationEditorUpdateOn... updateOn) Create a new relation editor actionprotectedAbstractRelationEditorAction(IRelationEditorActionAccess editorAccess, IRelationEditorUpdateOn... updateOn) Create a new relation editor action -
Method Summary
Modifier and TypeMethodDescriptionprotected final booleanprotected IRelationEditorprotected OsmDataLayergetLayer()protected MemberTableprotected MemberTableModelprotected SelectionTableprotected SelectionTableModelprotected TagEditorModelbooleanIndicates that this action only visible in expert modevoidvoidprotected abstract voidvoidMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.awt.event.ActionListener
actionPerformed
-
Field Details
-
serialVersionUID
- See Also:
-
editorAccess
-
-
Constructor Details
-
AbstractRelationEditorAction
protected AbstractRelationEditorAction(IRelationEditorActionAccess editorAccess, IRelationEditorUpdateOn... updateOn) Create a new relation editor action- Parameters:
editorAccess- The editor this action is forupdateOn- The events that may cause the enabled state of this button to change.
-
AbstractRelationEditorAction
protected AbstractRelationEditorAction(IRelationEditorActionAccess editorAccess, String actionMapKey, IRelationEditorUpdateOn... updateOn) Create a new relation editor action- Parameters:
editorAccess- The editor this action is foractionMapKey- The key for the member table action map.updateOn- The events that may cause the enabled state of this button to change.
-
-
Method Details
-
tableChanged
- Specified by:
tableChangedin interfaceTableModelListener
-
valueChanged
- Specified by:
valueChangedin interfaceListSelectionListener
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
updateEnabledState
-
canDownload
-
getMemberTable
-
getMemberTableModel
-
getSelectionTable
-
getSelectionTableModel
-
getEditor
-
getTagModel
-
getLayer
-
isExpertOnly
Indicates that this action only visible in expert mode- Returns:
truefor expert mode actions.- Since:
- 14027
-