|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfc.web.forms.Field
fc.web.forms.Choice
fc.web.forms.Checkbox
public final class Checkbox
Represents a HTML form's checkbox element.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class fc.web.forms.Field |
|---|
Field.Type |
| Constructor Summary | |
|---|---|
Checkbox(java.lang.String name)
Constructs a new unselected checkbox with no separate value attribute |
|
Checkbox(java.lang.String name,
boolean selected)
Constructs a new checkbox which is selected/unselected as specified. |
|
Checkbox(java.lang.String name,
java.lang.String value)
Constructs a new unselected checkbox with the specified value and HTML text. |
|
Checkbox(java.lang.String name,
java.lang.String value,
boolean selected)
Creates a new checkbox object. |
|
| Method Summary | |
|---|---|
Field.Type |
getType()
Subclasses should return an appropriate Field.Type. |
| Methods inherited from class fc.web.forms.Choice |
|---|
getBooleanValue, getIntValue, getShortValue, getValue, isFilled, renderImpl, setSelected, setValue, setValue, setValue, setValueFromSubmit, toString |
| Methods inherited from class fc.web.forms.Field |
|---|
add, addError, addLabel, addString, disable, disable, enable, enable, getLabel, getName, getValidateErrors, isEnabled, render, render, render, renderError, renderError, renderStyleTag, setStyleTag, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Checkbox(java.lang.String name,
java.lang.String value,
boolean selected)
name - the field namevalue - the value of this choice itemselected - true is this choice is
originally selected
public Checkbox(java.lang.String name,
java.lang.String value)
name - the name of this choicevalue - the value of this choice item
public Checkbox(java.lang.String name,
boolean selected)
name - the name of this choiceselected - true to select this checkbox.public Checkbox(java.lang.String name)
name - the name of this choice| Method Detail |
|---|
public Field.Type getType()
FieldField.Type. This type
is rendered as part of <input type= ...
getType in class Choice
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||