Class AbstractCopyAction

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.function.IntFunction<java.lang.String> keySupplier  
      private java.util.function.Supplier<java.util.Collection<? extends Tagged>> objectSupplier  
      private javax.swing.JTable tagTable  
      • 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 
      Modifier Constructor Description
      protected AbstractCopyAction​(javax.swing.JTable tagTable, java.util.function.IntFunction<java.lang.String> keySupplier, java.util.function.Supplier<java.util.Collection<? extends Tagged>> objectSupplier)
      Constructs a new AbstractCopyAction.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent ae)  
      protected abstract java.util.Collection<java.lang.String> getString​(Tagged p, java.lang.String key)  
      protected java.util.stream.Stream<java.lang.String> valueStream()  
      • 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

      • tagTable

        private final javax.swing.JTable tagTable
      • keySupplier

        private final java.util.function.IntFunction<java.lang.String> keySupplier
      • objectSupplier

        private final java.util.function.Supplier<java.util.Collection<? extends Tagged>> objectSupplier
    • Constructor Detail

      • AbstractCopyAction

        protected AbstractCopyAction​(javax.swing.JTable tagTable,
                                     java.util.function.IntFunction<java.lang.String> keySupplier,
                                     java.util.function.Supplier<java.util.Collection<? extends Tagged>> objectSupplier)
        Constructs a new AbstractCopyAction.
        Parameters:
        tagTable - the tag table
        keySupplier - a supplier which returns the selected key for a given row index
        objectSupplier - a supplier which returns the selected tagged object(s)
    • Method Detail

      • getString

        protected abstract java.util.Collection<java.lang.String> getString​(Tagged p,
                                                                            java.lang.String key)
      • valueStream

        protected java.util.stream.Stream<java.lang.String> valueStream()
      • actionPerformed

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