org.openide.util.datatransfer
Class PasteType
java.lang.Object
|
+--org.openide.util.datatransfer.PasteType
- public abstract class PasteType
- extends Object
Clipboard operation providing one kind of paste action.
- See Also:
Node.getPasteTypes(java.awt.datatransfer.Transferable)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PasteType
public PasteType()
getName
public String getName()
- Display name for the paste action. This should be
presented as an item in a menu.
- Returns:
- the name of the action
getHelpCtx
public HelpCtx getHelpCtx()
- Help content for the action.
- Returns:
- the help context
paste
public abstract Transferable paste()
throws IOException
- Perform the paste action.
- Returns:
- transferable which should be inserted into the clipboard after the
paste action. It can be
null
, meaning that the clipboard content
is not affected. Use e.g. ExTransferable.EMPTY
to clear it. - Throws:
IOException
- if something fails
Built on December 12 2001. | Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.