Package jpicedt.graphic.toolkit
Class EditorKit.PasteAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jpicedt.graphic.toolkit.PEAction
-
- jpicedt.graphic.toolkit.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.StringKEY_PASTEstatic java.lang.StringKEY_PASTE_SPECIAL
-
Constructor Summary
Constructors Constructor Description PasteAction(ActionDispatcher actionDispatcher, ActionLocalizer localizer)paste from System clipboard ; action name = "PasteSpecial"PasteAction(ActionDispatcher actionDispatcher, ActionLocalizer localizer, java.awt.datatransfer.Clipboard clipboard)paste from the given clipboard
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidundoableActionPerformed(java.awt.event.ActionEvent e)called by "actionPerformed" ; default implementation does nothing.-
Methods inherited from class jpicedt.graphic.toolkit.PEAction
actionPerformed, getCanvas, getDrawing, getEditorKit, getSelectedObject, setAttribute
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
KEY_PASTE
public static final java.lang.String KEY_PASTE
- See Also:
- Constant Field Values
-
KEY_PASTE_SPECIAL
public static final java.lang.String KEY_PASTE_SPECIAL
- See Also:
- Constant Field Values
-
-
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:PEActioncalled 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:
undoableActionPerformedin classPEAction
-
-