home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection Student Program / ADC Tools Sampler CD Disk 3 1999.iso / Metrowerks CodeWarrior / Java Support / Java_Source / IFC_112 / netscape / application / WindowInvalidationAgent.java < prev    next >
Encoding:
Text File  |  1999-05-28  |  620 b   |  26 lines  |  [TEXT/CWIE]

  1. // WindowInvalidationAgent.java
  2. // By Ned Etcode
  3. // Copyright 1996, 1997 Netscape Communications Corp.  All rights reserved.
  4.  
  5. package netscape.application;
  6.  
  7. class WindowInvalidationAgent implements Target {
  8.     ExternalWindow window;
  9.  
  10.     WindowInvalidationAgent(ExternalWindow aWindow) {
  11.         super();
  12.         window = aWindow;
  13.     }
  14.  
  15.     void run() {
  16.         Application app = Application.application();
  17.         if (app != null)
  18.             app.performCommandLater(this, "invalidate", null, false);
  19.     }
  20.  
  21.     public void performCommand(String command, Object data) {
  22.         window.invalidateAWTWindow();
  23.     }
  24. }
  25.  
  26.