net.sf.jolene.dom
Class CheckBox

java.lang.Object
  extended by net.sf.jolene.dom.HTMLElement
      extended by net.sf.jolene.dom.CheckBox
All Implemented Interfaces:
java.lang.Cloneable, IAttributes, ICollection, IStyles

public final class CheckBox
extends HTMLElement

A checkbox in a html document.

Since:
Oct 14, 2005 6:18:36 AM
Author:
Dan Howard

Constructor Summary
CheckBox()
          Default constructor.
CheckBox(java.lang.String name)
          Construct a checkbox with the specified name.
 
Method Summary
 CheckBox clone()
          Returns a clone of the checkbox object.
 void setName(java.lang.String name)
          Sets the name of the checkbox.
 void setValue(java.lang.String value)
          Sets the value of the checbox.
 
Methods inherited from class net.sf.jolene.dom.HTMLElement
clear, getAfterText, getAttribute, getBeforeText, getContent, getName, getStyle, getTag, getValue, hasAttribute, hasStyle, isChecked, isDisabled, isReadonly, isRenderable, keySet, removeAttribute, removeStyle, resetStyles, resetStyles, setAfterText, setAttribute, setBeforeText, setChecked, setContent, setDisabled, setReadonly, setRenderable, setStyle, setStyles, setStyles, swapWith, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CheckBox

public CheckBox()
Default constructor.


CheckBox

public CheckBox(java.lang.String name)
Construct a checkbox with the specified name.

Parameters:
name - name of the checkbox.
Method Detail

clone

public CheckBox clone()
Returns a clone of the checkbox object.

Overrides:
clone in class HTMLElement
Returns:
CheckBox object.
See Also:
DocumentFactory

setName

public void setName(java.lang.String name)
Sets the name of the checkbox.

Overrides:
setName in class HTMLElement
Parameters:
name - name of the checkbox.

setValue

public void setValue(java.lang.String value)
Sets the value of the checbox. See setChecked to indicate it has been checked.

Overrides:
setValue in class HTMLElement
Parameters:
value - value of the checkbox.
See Also:
HTMLElement.setChecked(boolean)