netx.jnlp.runtime

Class AppletInstance


public class AppletInstance
extends ApplicationInstance

Represents a launched application instance created from a JNLP file. This class does not control the operation of the applet, use the AppletEnvironment class to start and stop the applet.
Version:
$Revision: 1.9 $
Author:
Jon A. Maxwell (JAM) - initial author

Constructor Summary

AppletInstance(JNLPFile file, ThreadGroup group, ClassLoader loader, Applet applet)
Create a New Task based on the Specified URL

Method Summary

void
destroy()
Stop the application and destroy its resources.
Applet
getApplet()
Returns the applet.
AppletEnvironment
getAppletEnvironment()
Returns the applet environment.
String
getTitle()
Returns the application title.
boolean
isResizable()
Returns whether the applet is resizable.
void
setResizable(boolean resizable)
Sets whether the applet is resizable or not.

Methods inherited from class netx.jnlp.runtime.ApplicationInstance

addApplicationListener, addWindow, destroy, finalize, fireDestroyed, getClassLoader, getJNLPFile, getThreadGroup, getTitle, initialize, installEnvironment, isRunning, removeApplicationListener

Constructor Details

AppletInstance

public AppletInstance(JNLPFile file,
                      ThreadGroup group,
                      ClassLoader loader,
                      Applet applet)
Create a New Task based on the Specified URL

Method Details

destroy

public void destroy()
Stop the application and destroy its resources.
Overrides:
destroy in interface ApplicationInstance

getApplet

public Applet getApplet()
Returns the applet.

getAppletEnvironment

public AppletEnvironment getAppletEnvironment()
Returns the applet environment.

getTitle

public String getTitle()
Returns the application title.
Overrides:
getTitle in interface ApplicationInstance

isResizable

public boolean isResizable()
Returns whether the applet is resizable.

setResizable

public void setResizable(boolean resizable)
Sets whether the applet is resizable or not. Applets default to being not resizable.