org.openstreetmap.josm.plugins.streetside.gui.imageinfo

## Class AddTagToPrimitiveAction

- java.lang.Object
- - javax.swing.AbstractAction
  - - org.openstreetmap.josm.plugins.streetside.gui.imageinfo.AddTagToPrimitiveAction

- All Implemented Interfaces:
    ActionListener, Serializable, Cloneable, EventListener, Action

      public class AddTagToPrimitiveAction
      extends AbstractAction

  See Also:
    Serialized Form

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `private static long` | `serialVersionUID`
    `private Tag` | `tag`
    `private AbstractPrimitive` | `target`

    - ### 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
    Constructor and Description
    `AddTagToPrimitiveAction(String name)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `actionPerformed(ActionEvent e)`
    `void` | `setTag(Tag tag)`
    `void` | `setTarget(AbstractPrimitive target)`
    `private void` | `updateEnabled()`

    - ### 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`

- - ### Field Detail

    - #### serialVersionUID

          private static final long serialVersionUID

      See Also:
        Constant Field Values

    - #### tag

          private Tag tag

    - #### target

          private AbstractPrimitive target

  - ### Constructor Detail

    - #### AddTagToPrimitiveAction

          public AddTagToPrimitiveAction(String name)

  - ### Method Detail

    - #### setTag

          public void setTag(Tag tag)

    - #### setTarget

          public void setTarget(AbstractPrimitive target)

    - #### updateEnabled

          private void updateEnabled()

    - #### actionPerformed

          public void actionPerformed(ActionEvent e)

JOSM Plugins