DhAppletFactory Class

DhAppletFactory Class

This Package | All Packages

DhObjectFactory
  |
  +--DhAppletFactory
public class DhAppletFactory
extends DhObjectFactory

Creates an Applet object and adds it to the document. To use this, construct a DhAppletFactory object given the the URL or the class identifier (CLASSID) of an existing applet.

Constructors
Name Description
DhAppletFactory() Creates a DhAppletFactory object.
DhAppletFactory(String className) Creates a DhAppletFactory object.
DhAppletFactory(String className, String codeBase) Creates a DhAppletFactory object.
DhAppletFactory(String className, String codeBase, AppletContext context) Creates a DhAppletFactory object.

Methods
Name Description
getAppletPeer() Retrieves the Applet object representing the applet instantiation.
setAppletContext( AppletContext appcontext) Sets the applet context for the applet.

Constructors

DhAppletFactory.DhAppletFactory

Syntax 1
public DhAppletFactory();
Description

Creates a DhAppletFactory object.



Syntax 2
public DhAppletFactory( String className );
Parameters
className
The class to be loaded.
Description

Creates a DhAppletFactory object.



Syntax 3
public DhAppletFactory( String className, String codeBase );
Parameters
className
The name of the class to be loaded.
codeBase
The code base of the class to be loaded.
Description

Creates a DhAppletFactory object.



Syntax 4
public DhAppletFactory( String className, String codeBase, AppletContext context );
Parameters
className
The name of the class to be loaded.
codeBase
The code base of the class to be loaded.
context
The java.applet.AppletContext interface. The methods in this interface can be used by an applet to obtain information about its environment.
Description

Creates a DhAppletFactory object.

Methods

DhAppletFactory.getAppletPeer

Syntax
public synchronized Applet getAppletPeer();
Description

Retrieves the Applet object representing the applet instantiation. Returns the java.applet.Applet object.

DhAppletFactory.setAppletContext

Syntax
public synchronized void setAppletContext( AppletContext appcontext );
Parameters
appcontext
The java.applet.AppletContext interface. The methods in this interface can be used by an applet to obtain information about its environment.
Description

Sets the applet context for the applet.