All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.abc.templates.HtmlCheckbox

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

public class HtmlCheckbox
extends HtmlControl
implements Serializable

Object represent checkbox on html page.

All properties:

<input type="checkbox" name="Check" value="10" checked visible="0" .....(additional property)> 

Control has exactly the same signature as pure html( except visible property). All additional properties will be combined in one string.

Example: <input type="checkbox" name="Check" value="10" onMouseOver="mouseover()"> OnMouseOver is additonal property.


 o addAdditionalOptions(String)
Allows you to append additional property to chaeck box.
 o getCheckboxValue()
Return value of property "Value"
 o getValue()
Return value of "Value" if checkbox is checked and "" if not
 o isChecked()
Return true if checkbox is checked and false if not.
 o setCheckboxValue(String)
Set value of "Value"
 o setChecked(boolean)
Set property "checked" to true.
 o setValue(String sValue)
if sValue equal "Value" then set checked to true otherwise set it to false.
 

 o addAdditionalOptions

 public final void addAdditionalOptions(String s)
	Allows you to append additional property to chaeck box. 
	addAdditionalOptions(" onMouseExit=\"mouseexit()\");

 o getCheckboxValue

 public final String getCheckboxValue()
	Return value of property "Value"

 o getValue

 public final String getValue()
	Return value of "Value" if checkbox is checked and "" if not
Overrides:
getValue in class HtmlControl

 o isChecked

 public final boolean isChecked()
	Return true if checkbox is checked and false if not.

 o setCheckboxValue

 public final void setCheckboxValue(String sValue)
	Set value of "Value" 

 o setChecked

 public final void setChecked(boolean bChecked)
	 Set property "Checked" to true.

 o setValue

 public final void setValue(String sValue)
	if sValue equal "Value" then set checked to true otherwise set it to false.
Overrides:
setValue in class HtmlControl

All Packages  Class Hierarchy  This Package  Previous  Next  Index