FileDocCategorySizeDatePackage
PasteAction.javaAPI DocExample610Thu Oct 24 20:14:20 BST 2002None

PasteAction

public class PasteAction extends AbstractAction

Fields Summary
SiteManager
manager
Constructors Summary
public PasteAction(SiteManager sm)

    super("", new ImageIcon("paste.gif"));
    manager = sm;
  
Methods Summary
public voidactionPerformed(java.awt.event.ActionEvent ae)

    JInternalFrame currentFrame = manager.getCurrentFrame();
    if (currentFrame == null) { return; }
    // cannot cut or paste sites
    if (currentFrame instanceof SiteFrame) { return; } 
    ((PageFrame)currentFrame).pasteText();