All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.sun.jaw.impl.adaptor.html.HtmlStreamableIf

public interface HtmlStreamableIf
This interface defines method to get a customized Html representation of an object Current version only allows object display: Input value for Setter will not be documented.

For Example, an M-Bean that displays a gif image could be written as follow:


The M-Bean class:
 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;
     }
 }
 


Method Index

 o isCustomizedViewOnly()
Determines if the HTML adaptor displays only the customized view for the M-Bean.
 o WriteToHtml(Object)
Returns a customized Html representation of an M-Bean.

Methods

 o WriteToHtml
 public abstract String WriteToHtml(Object obj)
Returns a customized Html representation of an M-Bean.

Parameters:
obj - the object to represent.
Returns:
a customized Html representation of the given objectobj.
 o isCustomizedViewOnly
 public abstract boolean isCustomizedViewOnly()
Determines if the HTML adaptor displays only the customized view for the M-Bean.

Returns:
True if only the customized view is displayed, else the customized and the default views of the M-Bean are displayed.

All Packages  Class Hierarchy  This Package  Previous  Next  Index