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 / WindowOwner.java < prev   
Encoding:
Text File  |  1999-05-28  |  1.6 KB  |  47 lines  |  [TEXT/CWIE]

  1. // WindowOwner.java
  2. // By Ned Etcode
  3. // Copyright 1995, 1996, 1997 Netscape Communications Corp.  All rights reserved.
  4.  
  5. package netscape.application;
  6.  
  7. /** Interface implemented by objects wanting information on important Window
  8.   * events, such as the Window closing.  An object implementing this interface
  9.   * must make itself the Window's "owner" using the Window's <b>setOwner()</b>
  10.   * method.
  11.   * @see Window#setOwner
  12.   */
  13.  
  14. public interface WindowOwner {
  15.     /** Sent just before a <b>aWindow</b> becomes visible. Returning
  16.       * <b>false</b> prevents the Window from appearing onscreen.
  17.       */
  18.     public boolean windowWillShow(Window aWindow);
  19.  
  20.     /** Sent just after <b>aWindow</b> has become visible.
  21.       */
  22.     public void windowDidShow(Window aWindow);
  23.  
  24.     /** Sent just before <b>aWindow</b> is hidden. Returning <b>false</b>
  25.       * prevents the Window from hiding.
  26.       */
  27.     public boolean windowWillHide(Window aWindow);
  28.  
  29.     /** Sent just after <b>aWindow</b> has hidden.
  30.       */
  31.     public void windowDidHide(Window aWindow);
  32.  
  33.     /** Sent just after <b>aWindow</b> becomes the "main" Window, the Window
  34.       * that receives keyboard events.
  35.       */
  36.     public void windowDidBecomeMain(Window aWindow);
  37.  
  38.     /** Sent just after <b>aWindow</b> ceases being the "main" Window.
  39.       */
  40.     public void windowDidResignMain(Window aWindow);
  41.  
  42.     /** Sent just before <b>aWindow</b> changes size by <b>deltaSize</b>.
  43.       * The Window owner can affect this resize by modifying <b>deltaSize</b>.
  44.       */
  45.     public void windowWillSizeBy(Window aWindow, Size deltaSize);
  46. }
  47.