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"));
Block
Modifier and Type | Field and Description |
---|---|
java.lang.String |
codeBase |
Constructor and Description |
---|
Applet(java.lang.String className)
Create an Applet Element.
|
Modifier and Type | Method and Description |
---|---|
Applet |
codeBase(java.lang.String cb)
Set the codebase
|
Applet |
setAlternate(Element alt)
Deprecated.
use add
|
Applet |
setAlternate(java.lang.String alt)
Deprecated.
use add
|
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(java.lang.String name,
java.lang.String value) |
void |
write(java.io.Writer out)
Write out the HTML
|
add, contents, nest, replace, reset, setNest, size, unnest
public Applet(java.lang.String className)
className
- The name of the class to give for the appletpublic Applet setDimensions(int height, int width)
public Applet setDebug(boolean debug)
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
public Applet setAlternate(Element alt)
alt
- The alternate element to displaypublic Applet setAlternate(java.lang.String alt)
alt
- The alternate element to displaypublic Applet codeBase(java.lang.String cb)
public Applet setParam(java.lang.String name, java.lang.String value)
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.