org.jreform.internal
Class CheckboxImpl<T>
java.lang.Object
org.jreform.internal.AbstractInputControl<T>
org.jreform.internal.InputImpl<T>
org.jreform.internal.CheckboxImpl<T>
- All Implemented Interfaces:
- Checkbox<T>, Input<T>, InputControl<T>, MessageOnError
class CheckboxImpl<T>
- extends InputImpl<T>
- implements Checkbox<T>
Method Summary |
CheckableState |
getState()
|
(package private) boolean |
validate(javax.servlet.http.HttpServletRequest req)
A checkbox is always valid (and optional) since its value is
null when it's submitted unchecked. |
Methods inherited from class org.jreform.internal.AbstractInputControl |
getCriteria, getInputName, getOnError, getType, isGroupInput, isRequired, isValid, setGroupInput, setOnError, setRequired, setValid |
CheckboxImpl
CheckboxImpl(InputDataType<T> type,
String name,
Criterion<T>... criteria)
validate
boolean validate(javax.servlet.http.HttpServletRequest req)
- A checkbox is always valid (and optional) since its value is
null
when it's submitted unchecked.
- Overrides:
validate
in class InputImpl<T>
getState
public CheckableState getState()
- Specified by:
getState
in interface Checkbox<T>
Copyright © 2007-2008
jReform