org.jreform.internal
Class CheckboxImpl<T>

java.lang.Object
  extended by org.jreform.internal.AbstractInputControl<T>
      extended by org.jreform.internal.InputImpl<T>
          extended by org.jreform.internal.CheckboxImpl<T>
All Implemented Interfaces:
Checkbox<T>, Input<T>, InputControl<T>, MessageOnError

 class CheckboxImpl<T>
extends InputImpl<T>
implements Checkbox<T>


Constructor Summary
CheckboxImpl(InputDataType<T> type, String name, Criterion<T>... criteria)
           
 
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.InputImpl
getStringValue, getValue, getValueAttribute, setValue, setValueAttribute, toString
 
Methods inherited from class org.jreform.internal.AbstractInputControl
getCriteria, getInputName, getOnError, getType, isGroupInput, isRequired, isValid, setGroupInput, setOnError, setRequired, setValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jreform.Input
getValue, getValueAttribute, setValue, setValueAttribute
 
Methods inherited from interface org.jreform.InputControl
getInputName, getStringValue, getType, isRequired, isValid
 
Methods inherited from interface org.jreform.MessageOnError
getOnError, setOnError
 

Constructor Detail

CheckboxImpl

CheckboxImpl(InputDataType<T> type,
             String name,
             Criterion<T>... criteria)
Method Detail

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