37 * @see java.applet.Applet#setStub(java.applet.AppletStub) 38 * @since JDK1.0 39 */ 40 public interface AppletStub { 41 /** 42 * Determines if the applet is active. An applet is active just 43 * before its <code>start</code> method is called. It becomes 44 * inactive just before its <code>stop</code> method is called. 45 * 46 * @return <code>true</code> if the applet is active; 47 * <code>false</code> otherwise. 48 */ 49 boolean isActive(); 50 51 52 /** 53 * Gets the URL of the document in which the applet is embedded. 54 * For example, suppose an applet is contained 55 * within the document: 56 * <blockquote><pre> 57 * http://java.sun.com/products/jdk/1.2/index.html 58 * </pre></blockquote> 59 * The document base is: 60 * <blockquote><pre> 61 * http://java.sun.com/products/jdk/1.2/index.html 62 * </pre></blockquote> 63 * 64 * @return the {@link java.net.URL} of the document that contains the 65 * applet. 66 * @see java.applet.AppletStub#getCodeBase() 67 */ 68 URL getDocumentBase(); 69 70 /** 71 * Gets the base URL. This is the URL of the directory which contains the applet. 72 * 73 * @return the base {@link java.net.URL} of 74 * the directory which contains the applet. 75 * @see java.applet.AppletStub#getDocumentBase() 76 */ 77 URL getCodeBase(); 78 79 /** 80 * Returns the value of the named parameter in the HTML tag. For 81 * example, if an applet is specified as | 37 * @see java.applet.Applet#setStub(java.applet.AppletStub) 38 * @since JDK1.0 39 */ 40 public interface AppletStub { 41 /** 42 * Determines if the applet is active. An applet is active just 43 * before its <code>start</code> method is called. It becomes 44 * inactive just before its <code>stop</code> method is called. 45 * 46 * @return <code>true</code> if the applet is active; 47 * <code>false</code> otherwise. 48 */ 49 boolean isActive(); 50 51 52 /** 53 * Gets the URL of the document in which the applet is embedded. 54 * For example, suppose an applet is contained 55 * within the document: 56 * <blockquote><pre> 57 * http://www.oracle.com/technetwork/java/index.html 58 * </pre></blockquote> 59 * The document base is: 60 * <blockquote><pre> 61 * http://www.oracle.com/technetwork/java/index.html 62 * </pre></blockquote> 63 * 64 * @return the {@link java.net.URL} of the document that contains the 65 * applet. 66 * @see java.applet.AppletStub#getCodeBase() 67 */ 68 URL getDocumentBase(); 69 70 /** 71 * Gets the base URL. This is the URL of the directory which contains the applet. 72 * 73 * @return the base {@link java.net.URL} of 74 * the directory which contains the applet. 75 * @see java.applet.AppletStub#getDocumentBase() 76 */ 77 URL getCodeBase(); 78 79 /** 80 * Returns the value of the named parameter in the HTML tag. For 81 * example, if an applet is specified as |