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


public abstract 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 Summary
 boolean isCustomizedViewOnly()
          Determines if the HTML adaptor displays only the customized view for the M-Bean.
 java.lang.String WriteToHtml(java.lang.Object obj)
          Returns a customized Html representation of an M-Bean.
 

Method Detail

WriteToHtml

public java.lang.String WriteToHtml(java.lang.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.

isCustomizedViewOnly

public 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.