Class RestorePropertyAction

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

    public class RestorePropertyAction
    extends javax.swing.AbstractAction
    Obtains the selected key and values from a table and restores those properties on the specified primitive.
    Since:
    16593
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.function.IntFunction<java.lang.String> keyFn  
      private java.util.function.Supplier<OsmPrimitive> objectSp  
      private javax.swing.ListSelectionModel selectionModel  
      private java.util.function.IntFunction<java.lang.String> valueFn  
      • 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 Description
      RestorePropertyAction​(java.util.function.IntFunction<java.lang.String> keyFn, java.util.function.IntFunction<java.lang.String> valueFn, java.util.function.Supplier<OsmPrimitive> objectSp, javax.swing.ListSelectionModel selectionModel)
      Constructs a new RestorePropertyAction.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent e)  
      • 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 javax.swing.Action

        accept
    • Field Detail

      • keyFn

        private final java.util.function.IntFunction<java.lang.String> keyFn
      • valueFn

        private final java.util.function.IntFunction<java.lang.String> valueFn
      • selectionModel

        private final javax.swing.ListSelectionModel selectionModel
    • Constructor Detail

      • RestorePropertyAction

        public RestorePropertyAction​(java.util.function.IntFunction<java.lang.String> keyFn,
                                     java.util.function.IntFunction<java.lang.String> valueFn,
                                     java.util.function.Supplier<OsmPrimitive> objectSp,
                                     javax.swing.ListSelectionModel selectionModel)
        Constructs a new RestorePropertyAction.
        Parameters:
        keyFn - a function which returns the selected key for a given row index
        valueFn - a function which returns the selected value for a given row index
        objectSp - a supplier which returns the selected tagged object
        selectionModel - selection model
    • Method Detail

      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent e)