|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.raj.htmlForms.HtmlFormElement
|
+--com.raj.htmlForms.HtmlInput
|
+--com.raj.htmlForms.HtmlGroups
|
+--com.raj.htmlForms.HtmlCheckBoxGroup
This class generates a group of HTML checkboxes. Each checkbox will have the same name, but different values and text as generated by an appropriate data structure. This class implements all of the HTML 4.01 Transitional attributes of a checkbox as defined in the W3C spec.
This class (HtmlCheckBoxGroup.java) is part of the com.raj.htmlForms package that
automatically generates HTML forms programmatically.
CREATED 22-FEB-2002, Copyright (c) Rajnish Bhaskar 2002
| Field Summary |
| Fields inherited from class com.raj.htmlForms.HtmlFormElement |
isXHTML, out |
| Constructor Summary | |
HtmlCheckBoxGroup(java.io.Writer w)
Minimal constructor for any form element. |
|
HtmlCheckBoxGroup(java.io.Writer w,
boolean x,
java.lang.String n)
Constructor that sets the writer and name and a boolean which determines whether or not XHTML will be written |
|
HtmlCheckBoxGroup(java.io.Writer w,
java.lang.String n)
Constructor that just sets the name of the element |
|
HtmlCheckBoxGroup(java.io.Writer w,
java.lang.String n,
java.util.Map e)
Constructor that sets the name of the element and the entries |
|
HtmlCheckBoxGroup(java.io.Writer w,
java.lang.String n,
java.util.Map e,
java.lang.String c)
Constructor that sets the name of the element and the entries |
|
| Method Summary | |
java.lang.String[] |
getValuesToBeChecked()
gets the value of the element(s) in the group which should be checked by default |
void |
reset()
resets all attributes of the element back to a blank state |
void |
setValuesToBeChecked(java.lang.String[] x)
specifies which element(s) in this group should be checked by default. |
void |
write()
writes a group of checkboxes to the given writer in the form <input type="checkbox" {attributes here}>>Text |
| Methods inherited from class com.raj.htmlForms.HtmlGroups |
getDisplayAsColumn, getEntries, getValueToBeChecked, setDisplayAsColumn, setEntries, setValueToBeChecked |
| Methods inherited from class com.raj.htmlForms.HtmlInput |
getAccessKey, getDisabled, getReadOnly, getSize, getValue, isDisabled, setAccessKey, setReadOnly, setSize, setValue, toString |
| Methods inherited from class com.raj.htmlForms.HtmlFormElement |
getDir, getId, getLang, getName, getOnBlur, getOnClick, getOnDblClick, getOnFocus, getOnKeyDown, getOnKeyPress, getOnKeyUp, getOnMouseDown, getOnMouseMove, getOnMouseOut, getOnMouseOver, getOnMouseUp, getOnSelect, getStyle, getTabIndex, getTheClass, getTitle, getXhtml, setDir, setId, setLang, setName, setOnBlur, setOnClick, setOnDblClick, setOnFocus, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setOnSelect, setStyle, setStyle, setTabIndex, setTheClass, setTitle, setXhtml |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public HtmlCheckBoxGroup(java.io.Writer w)
foo becomes setFoo(). The attribute names can be
found at the W3C HTML reference or many other places on the web.
w - the Writer to which all the data will be written out
public HtmlCheckBoxGroup(java.io.Writer w,
boolean x,
java.lang.String n)
w - the Writer to which all the data will be written outx - if true, XHTML will be written, else falsen - the name of this element
public HtmlCheckBoxGroup(java.io.Writer w,
java.lang.String n)
w - the Writer to which all the data will be written outn - the name of this element
public HtmlCheckBoxGroup(java.io.Writer w,
java.lang.String n,
java.util.Map e)
w - the Writer to which all the data will be written outn - the name of this elemente - the entries that will be written to the page
public HtmlCheckBoxGroup(java.io.Writer w,
java.lang.String n,
java.util.Map e,
java.lang.String c)
w - the Writer to which all the data will be written outn - the name of this elemente - the entries that will be written to the pagec - the key that should be checked by default| Method Detail |
public void setValuesToBeChecked(java.lang.String[] x)
public java.lang.String[] getValuesToBeChecked()
public void reset()
HtmlFormElement
reset in class HtmlGroupspublic void write()
<input type="checkbox" {attributes here}>>Text
write in class HtmlFormElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||