Class AppletInstance
java.lang.Object
net.sourceforge.jnlp.runtime.ApplicationInstance
net.sourceforge.jnlp.runtime.AppletInstance
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 $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Appletthe appletprivate booleanwhether the applet's stop and destroy methods have been calledprivate final AppletEnvironmentthe applet environmentprivate static final LoggerFields inherited from class ApplicationInstance
BLACKLIST_FOR_JNLP_PROPERTIES, BLACKLISTED_PROPERTIES_SEPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionAppletInstance(JNLPFile file, ThreadGroup group, JNLPClassLoader loader, Applet applet) Create a New Task based on the Specified URLAppletInstance(JNLPFile file, ThreadGroup group, JNLPClassLoader loader, Applet applet, Container cont) Create a New Task based on the Specified URL -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Stop the application and destroy its resources.getTitle()Returns the application title.booleanvoidSet the applet of this launched application; can only be called once.voidsetResizable(boolean resizable) Sets whether the applet is resizable or not.Methods inherited from class ApplicationInstance
addWindow, finalize, getBlackListedJnlpProperties, getClassLoader, getJNLPFile, getMainClassName, getThreadGroup, initialize, isRunning, isSigned
-
Field Details
-
LOG
-
appletStopped
private boolean appletStoppedwhether the applet's stop and destroy methods have been called -
applet
the applet -
environment
the applet environment
-
-
Constructor Details
-
AppletInstance
Create a New Task based on the Specified URL- Parameters:
file- pluginbridge to build instance ongroup- thread group of this instanceloader- classloader for this instanceapplet- applet of this instance
-
AppletInstance
public AppletInstance(JNLPFile file, ThreadGroup group, JNLPClassLoader loader, Applet applet, Container cont) Create a New Task based on the Specified URL- Parameters:
file- pluginbridge to build instance ongroup- thread group of this instanceloader- classloader for this instanceapplet- applet of this instancecont- Container where to place applet
-
-
Method Details
-
setApplet
Set the applet of this launched application; can only be called once.- Parameters:
applet- to be set
-
setResizable
public void setResizable(boolean resizable) Sets whether the applet is resizable or not. Applets default to being not resizable.- Parameters:
resizable- boolean to allow resizing
-
isResizable
public boolean isResizable()- Returns:
- whether the applet is resizable.
-
getTitle
Description copied from class:ApplicationInstanceReturns the application title.- Overrides:
getTitlein classApplicationInstance- Returns:
- the application title.
-
getAppletEnvironment
- Returns:
- the applet environment.
-
getApplet
- Returns:
- the applet.
-
destroy
public void destroy()Stop the application and destroy its resources.- Overrides:
destroyin classApplicationInstance
-