All Packages  Class Hierarchy  This Package  Previous  Next  Index


Class com.abc.templates.HtmlStatic

java.lang.Object
   |
   +----com.abc.templates.HtmlControl
           |
           +----com.abc.templates.HtmlStatic

public class HtmlStatic
extends HtmlControl
implements Serializable
 
Control represents static data on html page. You would use this object to show not editable date on html page. You can achieve the same result with local substitutor but it's more object oriented approach.
 
Example: <B><input type="static" name="Price"></B>
Program: template.getControl("Price").setValue("10.25")
Browser: <B>10.25</B>
All properties:

<input type="static" name="Static" value="10" visible="0" prefix="<B>" suffix="</B>" > 

prefix/suffix will appear before/after value. If control is not visible then tehy will not appear also.

Example: <input type="static" name="Static" value="10.25" visible="0" prefix="<B>" suffix="</B>" >

Browser: Nothing ( because control has visible state = 0 ).


 o getPrefix()
retrives "prefix"
 o getSuffix()
retrives "suffix"
 o getValue()
retrivse "value"
 o setPrefix(String)
sets "prefix"
 o setSuffix(String)
sets "suffix"
 o setValue(String)
sets "value"

 o getPrefix

 public final String getPrefix()

 o getSuffix

 public final String getSuffix()

 o getValue

 public final String getValue()
Overrides:
getValue in class HtmlControl
 

 o setPrefix

 public final void setPrefix(String sPrefix)
 

 o setSuffix

 public final void setSuffix(String sSuffix)

 o setValue

 public final void setValue(String s)
Overrides:
setValue in class HtmlControl

All Packages  Class Hierarchy  This Package  Previous  Next  Index