<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Interface java.applet.AppletStub
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.applet.html">This Package</a>  <a href="java.applet.AppletContext.html#_top_">Previous</a>  <a href="java.applet.AudioClip.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Interface java.applet.AppletStub
</h1>
<dl>
  <dt> public interface <b>AppletStub</b>
</dl>
When an applet is first created, an applet stub is attached to it 
 using the applet's <code>setStub</code> method. This stub 
 serves as the interface between the applet and the browser 
 environment or applet viewer environment in which the application 
 is running.
<p>
<dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.applet.Applet.html#setStub(java.applet.AppletStub)">setStub</a>
</dl>
<hr>
<a name="index"></a>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#appletResize(int, int)"><b>appletResize</b></a>(int, int)
  <dd>  Called when the applet wants to be resized.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getAppletContext()"><b>getAppletContext</b></a>()
  <dd>  Gets a handler to the applet's context.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getCodeBase()"><b>getCodeBase</b></a>()
  <dd>  Gets the base URL.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getDocumentBase()"><b>getDocumentBase</b></a>()
  <dd>  Gets the document URL.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getParameter(java.lang.String)"><b>getParameter</b></a>(String)
  <dd>  Returns the value of the named parameter in the HTML tag.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#isActive()"><b>isActive</b></a>()
  <dd>  Determines if the applet is active.
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="isActive()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="isActive"><b>isActive</b></a>
<pre>
 public abstract boolean isActive()
</pre>
<dl>
  <dd> Determines if the applet is active. An applet is active just 
 before its <code>start</code> method is called. It becomes 
 inactive immediately after its <code>stop</code> method is called.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> <code>true</code> if the applet is active;
          <code>false</code> otherwise.
  </dl></dd>
</dl>
<a name="getDocumentBase()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getDocumentBase"><b>getDocumentBase</b></a>
<pre>
 public abstract <a href="java.net.URL.html#_top_">URL</a> getDocumentBase()
</pre>
<dl>
  <dd> Gets the document URL.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the <code>URL</code> of the document containing the applet.
  </dl></dd>
</dl>
<a name="getCodeBase()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getCodeBase"><b>getCodeBase</b></a>
<pre>
 public abstract <a href="java.net.URL.html#_top_">URL</a> getCodeBase()
</pre>
<dl>
  <dd> Gets the base URL.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the <code>URL</code> of the applet.
  </dl></dd>
</dl>
<a name="getParameter(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getParameter"><b>getParameter</b></a>
<pre>
 public abstract <a href="java.lang.String.html#_top_">String</a> getParameter(<a href="java.lang.String.html#_top_">String</a> name)
</pre>
<dl>
  <dd> Returns the value of the named parameter in the HTML tag. For 
 example, if an applet is specified as 
 <ul><code>
	&lt;applet code="Clock" width=50 height=50&gt;<br>
  &lt;param name=Color value="blue"&gt;<br>
  &lt;/applet&gt;
 </code></ul>
 <p>
 then a call to <code>getParameter("Color")</code> returns the 
 value <code>"blue"</code>.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> name - a parameter name.
    <dt> <b>Returns:</b>
    <dd> the value of the named parameter.
  </dl></dd>
</dl>
<a name="getAppletContext()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getAppletContext"><b>getAppletContext</b></a>
<pre>
 public abstract <a href="java.applet.AppletContext.html#_top_">AppletContext</a> getAppletContext()
</pre>
<dl>
  <dd> Gets a handler to the applet's context.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the applet's context.
  </dl></dd>
</dl>
<a name="appletResize(int, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="appletResize"><b>appletResize</b></a>
<pre>
 public abstract void appletResize(int width,
                                   int height)
</pre>
<dl>
  <dd> Called when the applet wants to be resized.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> width - the new requested width for the applet.
    <dd> height - the new requested height for the applet.
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.applet.html">This Package</a>  <a href="java.applet.AppletContext.html#_top_">Previous</a>  <a href="java.applet.AudioClip.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
