org.mortbay.html
public class Applet extends Block
Lets you set the class name from the program, and optionally, the size and the codebase.
This class uses any attributes set in Element.
org.mortbay.Page page = new org.mortbay.html.Page(); page.add(new org.mortbay.Applet("org.mortbay.Foo.App"));
Version: $Id: Applet.java,v 1.7 2004/07/19 13:12:58 hlavac Exp $
See Also: Block
Field Summary | |
---|---|
String | codeBase |
Constructor Summary | |
---|---|
Applet(String className) Create an Applet Element. |
Method Summary | |
---|---|
Applet | codeBase(String cb) Set the codebase |
Applet | setAlternate(Element alt)
Set an alternate display for non-java browsers. |
Applet | setAlternate(String alt) Set an alternate display for non-java browsers. |
Applet | setDebug(boolean debug) Set whether debugging is on in the Applet.
|
Applet | setDimensions(int height, int width) Set the dimensions of the Applet. |
Applet | setParam(String name, String value) |
void | write(Writer out) Write out the HTML |
Parameters: className The name of the class to give for the applet
Deprecated: use add
Set an alternate display for non-java browsers.Parameters: alt The alternate element to display
Deprecated: use add
Set an alternate display for non-java browsers.Parameters: alt The alternate element to display
This controls whether the org.mortbay.util.Code debug messages will be printed to the java console.
Defaults to whether debug is turned on in the generating app