Class EditorKit.PasteAction

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

    public static class EditorKit.PasteAction
    extends PEAction
    Paste the content of the given ClipBoard into the target canvas
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String KEY_PASTE  
      static java.lang.String KEY_PASTE_SPECIAL  
      • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void undoableActionPerformed​(java.awt.event.ActionEvent e)
      called by "actionPerformed" ; default implementation does nothing.
      • 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
    • Constructor Detail

      • PasteAction

        public PasteAction​(ActionDispatcher actionDispatcher,
                           ActionLocalizer localizer,
                           java.awt.datatransfer.Clipboard clipboard)
        paste from the given clipboard
      • PasteAction

        public PasteAction​(ActionDispatcher actionDispatcher,
                           ActionLocalizer localizer)
        paste from System clipboard ; action name = "PasteSpecial"
    • Method Detail

      • undoableActionPerformed

        public void undoableActionPerformed​(java.awt.event.ActionEvent e)
        Description copied from class: PEAction
        called by "actionPerformed" ; default implementation does nothing. Action that want to be undoable override this method instead of "actionPerformed".

        Note : this is not an abstract method, since this would force all PEAction's, including those we don't want to be undoable, to implement this method.

        Overrides:
        undoableActionPerformed in class PEAction