Class AppletInstance

java.lang.Object
net.sourceforge.jnlp.runtime.ApplicationInstance
net.sourceforge.jnlp.runtime.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 $
  • Field Details

    • LOG

      private static final Logger LOG
    • appletStopped

      private boolean appletStopped
      whether the applet's stop and destroy methods have been called
    • applet

      private Applet applet
      the applet
    • environment

      private final AppletEnvironment environment
      the applet environment
  • Constructor Details

    • AppletInstance

      public AppletInstance(JNLPFile file, ThreadGroup group, JNLPClassLoader loader, Applet applet)
      Create a New Task based on the Specified URL
      Parameters:
      file - pluginbridge to build instance on
      group - thread group of this instance
      loader - classloader for this instance
      applet - 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 on
      group - thread group of this instance
      loader - classloader for this instance
      applet - applet of this instance
      cont - Container where to place applet
  • Method Details

    • setApplet

      public void setApplet(Applet applet)
      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

      public String getTitle()
      Description copied from class: ApplicationInstance
      Returns the application title.
      Overrides:
      getTitle in class ApplicationInstance
      Returns:
      the application title.
    • getAppletEnvironment

      public AppletEnvironment getAppletEnvironment()
      Returns:
      the applet environment.
    • getApplet

      public Applet getApplet()
      Returns:
      the applet.
    • destroy

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