home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 25 / CDROM25.iso / Share / prog / VJ11 / VJTRIAL.EXE / IE30Java.exe / classd.exe / sun / applet / AppletViewerFactory.java < prev    next >
Encoding:
Java Source  |  1997-01-27  |  1.6 KB  |  50 lines

  1. /*
  2.  * @(#)AppletViewerFactory.java    1.2 96/04/22
  3.  * 
  4.  * Copyright (c) 1994,1996 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * Permission to use, copy, modify, and distribute this software and its
  7.  * documentation for NON-COMMERCIAL purposes and without fee is hereby
  8.  * granted provided that this copyright notice appears in all copies. Please
  9.  * refer to the file "copyright.html" for further important copyright and
  10.  * licensing information.
  11.  * 
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  13.  * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  14.  * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
  15.  * OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY
  16.  * LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR
  17.  * ITS DERIVATIVES.
  18.  */
  19.  
  20. package sun.applet;
  21.  
  22. import java.util.Hashtable;
  23. import java.net.URL;
  24. import java.awt.MenuBar;
  25.  
  26. /**
  27.  * AppletViewerFactory lets us override some specific
  28.  * functionality.  For example, the "clone" menu item
  29.  * uses this interface to create a new AppletViewer of whatever type
  30.  * was originally constructed.
  31.  */
  32.  
  33. public
  34. interface AppletViewerFactory {
  35.     /**
  36.      * Return a new AppletViewer of whatever type
  37.      */
  38.     public AppletViewer createAppletViewer(int x, int y, URL doc, 
  39.                                            Hashtable atts);
  40.     /**
  41.      * Return a MenuBar object that we can add our Applet menu to
  42.      */
  43.     public MenuBar getBaseMenuBar();
  44.  
  45.     /**
  46.      * If true, we add a "quit" menu item
  47.      */
  48.     public boolean isStandalone();
  49. }
  50.