app.util
Class OutermostAppletFinder
java.lang.Object
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.
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 |
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
OutermostAppletFinder
public OutermostAppletFinder()
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.