app.util
Class OutermostAppletFinder

java.lang.Object
  extended by app.util.OutermostAppletFinder

public class OutermostAppletFinder
extends java.lang.Object

This class embodies a crude hack, which attempts to identify the parent JNLPAppletLauncher instance for a given applet. This parent applet is needed when calling JSObject.getWindow() under Firefox on Mac OS X; for some reason, other browser/platform combinations seem to cope with the child applet, although strictly speaking it is not one of the HTML page's applets.


Field Summary
static java.lang.String GET_SA_METHOD_NAME
           
static java.lang.String LAUNCHER_NAME
           
static java.lang.String LAUNCHER_SUFFIX
           
static java.lang.String OAF_PREFIX
           
 
Constructor Summary
OutermostAppletFinder()
           
 
Method Summary
static java.applet.Applet getOutermost(java.applet.Applet applet)
          Searches the HTML applets of the given applet, i.e.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OAF_PREFIX

public static final java.lang.String OAF_PREFIX
See Also:
Constant Field Values

LAUNCHER_NAME

public static final java.lang.String LAUNCHER_NAME
See Also:
Constant Field Values

LAUNCHER_SUFFIX

public static final java.lang.String LAUNCHER_SUFFIX
See Also:
Constant Field Values

GET_SA_METHOD_NAME

public static final java.lang.String GET_SA_METHOD_NAME
See Also:
Constant Field Values
Constructor Detail

OutermostAppletFinder

public OutermostAppletFinder()
Method Detail

getOutermost

public static java.applet.Applet getOutermost(java.applet.Applet applet)
Searches the HTML applets of the given applet, i.e. those in its applet context, and tries to find the one which either is the given applet or is a JNLPAppletLauncher instance that has the given one as its subapplet: returns this "outermost" applet if found, or null otherwise.