javax.swing.text
Class DefaultEditorKit.CopyAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by javax.swing.text.TextAction
          extended by javax.swing.text.DefaultEditorKit.CopyAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
DefaultEditorKit

public static class DefaultEditorKit.CopyAction
extends TextAction

Copies the selected content into the system clipboard.

See Also:
Toolkit.getSystemClipboard(), DefaultEditorKit.CutAction, DefaultEditorKit.PasteAction, Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
DefaultEditorKit.CopyAction()
          Create a new CopyAction.
 
Method Summary
 void actionPerformed(ActionEvent event)
          Performs the Action.
 
Methods inherited from class javax.swing.text.TextAction
augmentList, getFocusedComponent, getTextComponent
 
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
 

Constructor Detail

DefaultEditorKit.CopyAction

public DefaultEditorKit.CopyAction()
Create a new CopyAction.

Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
Performs the Action.

Parameters:
event - the action event describing the user action