Field.Type
Constructor and Description |
---|
Checkbox(String name)
Constructs a new unselected checkbox with no separate
value attribute
|
Checkbox(String name,
boolean selected)
Constructs a new checkbox which is selected/unselected as specified.
|
Checkbox(String name,
String value)
Constructs a new unselected checkbox with the specified value
and HTML text.
|
Checkbox(String name,
String value,
boolean selected)
Creates a new checkbox object.
|
Modifier and Type | Method and Description |
---|---|
Field.Type |
getType()
Subclasses should return an appropriate
Field.Type . |
getBooleanValue, getIntValue, getShortValue, getValue, isFilled, renderImpl, setSelected, setValue, setValue, setValue, setValueFromSubmit, toString
add, addError, addLabel, addString, disable, disable, enable, enable, getLabel, getName, getValidateErrors, isEnabled, render, render, render, renderError, renderError, renderStyleTag, setStyleTag, validate
public Checkbox(String name, String value, boolean selected)
name
- the field namevalue
- the value of this choice itemselected
- true is this choice is
originally selectedpublic Checkbox(String name, String value)
name
- the name of this choicevalue
- the value of this choice itempublic Checkbox(String name, boolean selected)
name
- the name of this choiceselected
- true to select this checkbox.public Field.Type getType()
Field
Field.Type
. This type
is rendered as part of <input type= ...