Package net.sourceforge.jnlp.runtime
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.
-
Constructor Summary
ConstructorsConstructorDescriptionAppletInstance(JNLPFile file, ThreadGroup group, ClassLoader loader, Applet applet) Create a New Task based on the Specified URLAppletInstance(JNLPFile file, ThreadGroup group, ClassLoader 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 net.sourceforge.jnlp.runtime.ApplicationInstance
addApplicationListener, addWindow, finalize, fireDestroyed, getAppContext, getClassLoader, getJNLPFile, getThreadGroup, initialize, isRunning, isSigned, removeApplicationListener
-
Constructor Details
-
AppletInstance
Create a New Task based on the Specified URL- Parameters:
file- pluginbrifge to build instance ongroup- thread group of this instanceloader- classlaoder for this instanceapplet- applet of this instance
-
AppletInstance
public AppletInstance(JNLPFile file, ThreadGroup group, ClassLoader loader, Applet applet, Container cont) Create a New Task based on the Specified URL- Parameters:
file- pluginbrifge to build instance ongroup- thread group of this instanceloader- classlaoder 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 allwo 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
-