All Packages Class Hierarchy This Package Previous Next Index
For Example, an M-Bean that displays a gif image could be written as follow:
public class Imm {
private String image="iamges/red-ball.gif";
// Getter for "image" property.
public String getImage() {
return image;
}
// Setter for the "image" property.
public void setImage(String value) {
image = value;
}
}
The corresponding HtmlBeanInfo class:
public class ImmHtmlBeanInfo implements com.sun.jaw.impl.adaptor.html.HtmlStreamableIf {
public String WriteToHtml(Object o){
return ( "<HR><IMG src=\""+((Imm)o).getImage()+"\"><HR>\n");
}
public boolean isCustomizedViewOnly () {
return false;
}
}
public abstract String WriteToHtml(Object obj)
obj.
public abstract boolean isCustomizedViewOnly()
All Packages Class Hierarchy This Package Previous Next Index