|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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:
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 |
public java.lang.String WriteToHtml(java.lang.Object obj)
obj
- the object to represent.obj
.public boolean isCustomizedViewOnly()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |