FileDocCategorySizeDatePackage
CopyAction.javaAPI DocExample627Mon Nov 09 12:43:34 GMT 1998None

CopyAction

public class CopyAction extends AbstractAction

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

    super("", new ImageIcon("copy.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).copyText();