dsto.dfc.swing.dnd
Class CmdCopy
java.lang.Object
dsto.dfc.swing.commands.AbstractCommand
dsto.dfc.swing.commands.AbstractMutableCommand
dsto.dfc.swing.dnd.AbstractCnpCommand
dsto.dfc.swing.dnd.CmdCopy
- All Implemented Interfaces:
- Command, Iconic, Copyable, PropertyEventSource, ClipboardOwner, ActionListener, PropertyChangeListener, Cloneable, EventListener
public class CmdCopy
- extends AbstractCnpCommand
Copy from a CnpProvider
to the system clipboard.
- Version:
- $Revision$
Method Summary |
void |
execute()
Execute the command. |
KeyStroke |
getAccelerator()
Get a keyboard accelerator for the command. |
String |
getDescription()
A short description of the command, suitable for a tooltip or use
in a status panel. |
Icon |
getIcon()
The small (16x16) icon for the object. |
char |
getMnemonic()
Get a character shortcut for the command (eg for use on a menu). |
String |
getName()
The formal identifying name for this command (eg edit.Copy, file.Open). |
ICON
public static final Icon ICON
CmdCopy
public CmdCopy(CnpProvider source)
execute
public void execute()
- Description copied from interface:
Command
- Execute the command.
- Specified by:
execute
in interface Command
- Specified by:
execute
in class AbstractCnpCommand
getName
public String getName()
- Description copied from interface:
Command
- The formal identifying name for this command (eg edit.Copy, file.Open).
This must not change during the lifetime of a command
instance.
- Specified by:
getName
in interface Command
- Specified by:
getName
in interface Iconic
- Specified by:
getName
in class AbstractCnpCommand
getIcon
public Icon getIcon()
- Description copied from interface:
Iconic
- The small (16x16) icon for the object. May be null if no small
icon is available.
- Specified by:
getIcon
in interface Iconic
- Overrides:
getIcon
in class AbstractCommand
getDescription
public String getDescription()
- Description copied from interface:
Command
- A short description of the command, suitable for a tooltip or use
in a status panel.
- Specified by:
getDescription
in interface Command
- Specified by:
getDescription
in class AbstractCnpCommand
getMnemonic
public char getMnemonic()
- Description copied from interface:
Command
- Get a character shortcut for the command (eg for use on a menu). May
return 0 for no mnemonic.
- Specified by:
getMnemonic
in interface Command
- Specified by:
getMnemonic
in class AbstractCnpCommand
getAccelerator
public KeyStroke getAccelerator()
- Description copied from interface:
Command
- Get a keyboard accelerator for the command. May return null for no
accelerator.
- Specified by:
getAccelerator
in interface Command
- Overrides:
getAccelerator
in class AbstractCommand
Copyright © 2008 Commonwealth of Australia