home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 October / Chip_1997-10_cd.bin / tema / sybase / powerj / java.z / AppletStub.java < prev    next >
Text File  |  1996-05-03  |  2KB  |  61 lines

  1. /*
  2.  * @(#)AppletStub.java    1.8 95/12/14 Arthur van Hoff
  3.  *
  4.  * Copyright (c) 1994-1995 Sun Microsystems, Inc. All Rights Reserved.
  5.  *
  6.  * Permission to use, copy, modify, and distribute this software
  7.  * and its documentation for NON-COMMERCIAL purposes and without
  8.  * fee is hereby granted provided that this copyright notice
  9.  * appears in all copies. Please refer to the file "copyright.html"
  10.  * for further important copyright and licensing information.
  11.  *
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
  13.  * THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
  14.  * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
  15.  * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR
  16.  * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
  17.  * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
  18.  */
  19. package java.applet;
  20.  
  21. import java.net.URL;
  22.  
  23. /**
  24.  * This interface is used to implement an applet viewer. It is not
  25.  * normally used by applet programmers.
  26.  *
  27.  * @version     1.8, 14 Dec 1995
  28.  * @author     Arthur van Hoff
  29.  */
  30. public interface AppletStub {
  31.     /**
  32.      * Returns true if the applet is active. 
  33.      */
  34.     boolean isActive();
  35.     
  36.     /**
  37.      * Gets the document URL.
  38.      */
  39.     URL getDocumentBase();
  40.  
  41.     /**
  42.      * Gets the base URL.
  43.      */
  44.     URL getCodeBase();
  45.  
  46.     /**
  47.      * Gets a parameter of the applet.
  48.      */
  49.     String getParameter(String name);
  50.  
  51.     /**
  52.      * Gets a handler to the applet's context.
  53.      */
  54.     AppletContext getAppletContext();
  55.  
  56.     /**
  57.      * Called when the applet wants to be resized.
  58.      */
  59.     void appletResize(int width, int height);
  60. }
  61.