All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface java.applet.AppletStub

public interface AppletStub
When an applet is first created, an applet stub is attached to it using the applet's setStub method. This stub serves as the interface between the applet and the browser environment or applet viewer environment in which the application is running.

See Also:
setStub

Method Index

 o appletResize(int, int)
Called when the applet wants to be resized.
 o getAppletContext()
Gets a handler to the applet's context.
 o getCodeBase()
Gets the base URL.
 o getDocumentBase()
Gets the document URL.
 o getParameter(String)
Returns the value of the named parameter in the HTML tag.
 o isActive()
Determines if the applet is active.

Methods

 o isActive
    method isActive() returns boolean public abstract    
Determines if the applet is active. An applet is active just before its start method is called. It becomes inactive immediately after its stop method is called.

Returns:
true if the applet is active; false otherwise.
 o getDocumentBase
    method getDocumentBase() returns URL public abstract    
Gets the document URL.

Returns:
the URL of the document containing the applet.
 o getCodeBase
    method getCodeBase() returns URL public abstract    
Gets the base URL.

Returns:
the URL of the applet.
 o getParameter
    method getParameter(name=String) returns String public abstract    
Returns the value of the named parameter in the HTML tag. For example, if an applet is specified as

then a call to getParameter("Color") returns the value "blue".

Parameters:
name - a parameter name.
Returns:
the value of the named parameter.
 o getAppletContext
    method getAppletContext() returns AppletContext public abstract    
Gets a handler to the applet's context.

Returns:
the applet's context.
 o appletResize
    method appletResize(width=int, -
                        height=int)  public abstract    
Called when the applet wants to be resized.

Parameters:
width - the new requested width for the applet.
height - the new requested height for the applet.

All Packages  Class Hierarchy  This Package  Previous  Next  Index