Class spt.applets.StdApplet
All Packages Class Hierarchy This Package Previous Next Index
Class spt.applets.StdApplet
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----spt.applets.StdApplet
- public class StdApplet
- extends Applet
Some useful applet-related behavior not provided by the Applet class.
This class should be subclassed instead of Applet.
Parameters
BGColor Color Background color (optional)
FGColor Color Foreground color (optional)
HelpText String A status message to display when the mouse is over the applet (optional)
- See Also:
- Applet
-
fDebug
-
-
helpText
-
-
paramParser
-
-
StdApplet()
-
-
getApplet(String)
- Gets an applet by name.
-
getAppletInfo()
- Returns a default authorship string.
-
getHelpText()
-
-
getParameterInfo()
- Parameters
-
init()
- General initialization.
-
mergeParameters(String[][], String[][])
- Combine two lists of parameters.
-
mouseEnter(Event, int, int)
-
-
mouseExit(Event, int, int)
-
-
setHelpText(String)
- Sets the help message.
-
stdAppletInit()
- General initialization.
fDebug
protected boolean fDebug
helpText
protected String helpText
paramParser
public AppletParamParser paramParser
StdApplet
public StdApplet()
init
public void init()
- General initialization. Most applets will override this
method so they should be sure to call super.init() as the
first action in their own init().
- Overrides:
- init in class Applet
stdAppletInit
public void stdAppletInit()
- General initialization. This exists mainly for classes
that for whatever reason can't call super.init().
getApplet
public Applet getApplet(String s)
- Gets an applet by name. Same as AppletContext.getApplet() but
works better under Netscape.
- See Also:
- getApplet
setHelpText
public void setHelpText(String t)
- Sets the help message. Help messages are displayed when the
mouse is moved over an applet.
getHelpText
public String getHelpText()
mouseEnter
public boolean mouseEnter(Event e,
int x,
int y)
- Overrides:
- mouseEnter in class Component
mouseExit
public boolean mouseExit(Event e,
int x,
int y)
- Overrides:
- mouseExit in class Component
getAppletInfo
public String getAppletInfo()
- Returns a default authorship string. Applets can override
this to get special messages.
- Overrides:
- getAppletInfo in class Applet
getParameterInfo
public String[][] getParameterInfo()
- Parameters
- Overrides:
- getParameterInfo in class Applet
mergeParameters
public static String[][] mergeParameters(String s1[][],
String s2[][])
- Combine two lists of parameters. Subclasses can use this
method to combine their parameters with those of their
parent.
All Packages Class Hierarchy This Package Previous Next Index