Class symantec.itools.lang.Context
All Packages Class Hierarchy This Package Previous Next Index
Class symantec.itools.lang.Context
Object
|
+----symantec.itools.lang.Context
- public class Context
- extends Object
This class tracks information relating to the Browser/Applet Viewer that
the program is currently running under.
it is used in conjunction with class symantec.itools.net.RelativeURL to
provide URLs that are relative to an applet’s or application’s document base.
For applets the document base is the URL of the document that the applet is
embedded in. For applications the document base is the same as the “user.dir
system property.
-
symantec.itools.lang.Context()
- Don’t use, this is an all-static class.
-
getApplet()
- Returns the current applet, or null if being used with an application.
-
getDocumentBase()
- Returns the current document base.
-
isApplet()
- Returns true if this is being used with an applet,
otherwise this is being used with an application.
-
isApplication()
- Returns true if this is being used with an application,
otherwise this is being used with an applet.
-
setApplet(Applet)
- Notes the applet this class is being used with.
-
setDocumentBase(URL)
- Manually sets the current document base.
Context
public Context()
- Don’t use, this is an all-static class.
getApplet
public static java.applet.Applet getApplet()
- Returns the current applet, or null if being used with an application.
- See Also:
- setApplet
getDocumentBase
public static java.net.URL getDocumentBase()
- Returns the current document base.
For applets the document base is the URL of the document that the
applet is embedded in. For applications the document base is the same as
the “user.dir” system property.
- See Also:
- setDocumentBase
isApplet
public static boolean isApplet()
- Returns true if this is being used with an applet,
otherwise this is being used with an application.
- See Also:
- isApplication, getApplet
isApplication
public static boolean isApplication()
- Returns true if this is being used with an application,
otherwise this is being used with an applet.
- See Also:
- isApplet
setApplet
public static void setApplet(Applet a)
- Notes the applet this class is being used with.
- Parameters:
- a - the applet to use this class with.
- See Also:
- getApplet
setDocumentBase
public static void setDocumentBase(URL db)
- Manually sets the current document base.
If the document base is not manually specified it will be automatically
determined.
- Parameters:
- db - the new document base
- See Also:
- getDocumentBase
All Packages Class Hierarchy This Package Previous Next Index