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.openqa.jetty.Page page = new org.openqa.jetty.html.Page(); page.add(new org.openqa.jetty.Applet("org.openqa.jetty.Foo.App"));
Block
Modifier and Type | Field and Description |
---|---|
String |
codeBase |
Constructor and Description |
---|
Applet(String className)
Create an Applet Element.
|
Modifier and Type | Method and Description |
---|---|
Applet |
codeBase(String cb)
Set the codebase
|
Applet |
setAlternate(Element alt)
Deprecated.
use add
|
Applet |
setAlternate(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(String name,
String value) |
void |
write(Writer out)
Write out the HTML
|
add, contents, nest, replace, reset, setNest, size, unnest
public String codeBase
public Applet(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.openqa.jetty.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(String alt)
alt
- The alternate element to displaypublic void write(Writer out) throws IOException
write
in class Block
out
- Writer to write the element to.IOException
Copyright © 2013. All Rights Reserved.