Class RenameLayerAction

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

    public class RenameLayerAction
    extends javax.swing.AbstractAction
    Action to rename an specific layer. Provides the option to rename the file, this layer was loaded from as well (if it was loaded from a file).
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.File file  
      private Layer layer  
      • 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
      RenameLayerAction​(java.io.File file, Layer layer)
      Constructs a new RenameLayerAction.
    • 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

      • file

        private final java.io.File file
    • Constructor Detail

      • RenameLayerAction

        public RenameLayerAction​(java.io.File file,
                                 Layer layer)
        Constructs a new RenameLayerAction.
        Parameters:
        file - The file of the original location of this layer. If null, no possibility to "rename the file as well" is provided.
        layer - layer to rename
    • Method Detail

      • actionPerformed

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