public static interface NodeTransfer.Paste
Each node should check for this type in a paste operation to allow anyone to insert something into it.
Sample example of implementation of Node.getPasteTypes(java.awt.datatransfer.Transferable)
:
public PasteType[] getPasteTypes (Transferable t) {
NodeTransfer.Paste p = (NodeTransfer.Paste)t.getTransferData (
NodeTransfer.nodePasteFlavor
);
return p.types (this);
}
Built on July 21 2012. | Portions Copyright 1997-2012 Sun Microsystems, Inc. All rights reserved.