org.jreform.internal
Class MultiCheckboxImpl<T>

java.lang.Object
  extended by org.jreform.internal.AbstractInputControl<T>
      extended by org.jreform.internal.MultiInputImpl<T>
          extended by org.jreform.internal.MultiCheckboxImpl<T>
All Implemented Interfaces:
InputControl<T>, MessageOnError, MultiCheckbox<T>, MultiInput<T>

 class MultiCheckboxImpl<T>
extends MultiInputImpl<T>
implements MultiCheckbox<T>


Field Summary
private  Map<String,CheckableState> stateMap
           
 
Constructor Summary
MultiCheckboxImpl(InputDataType<T> type, String name, Criterion<T>... criteria)
           
 
Method Summary
 Map<String,CheckableState> getState()
           
(package private)  boolean validate(javax.servlet.http.HttpServletRequest req)
          Unlike a single value checkbox, multi checkbox cab be required: i.e.
 
Methods inherited from class org.jreform.internal.MultiInputImpl
getStringValue, getValueAttributes, getValues, setValueAttributes, setValues, 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.MultiInput
getValueAttributes, getValues, setValueAttributes, setValues
 
Methods inherited from interface org.jreform.InputControl
getInputName, getStringValue, getType, isRequired, isValid
 
Methods inherited from interface org.jreform.MessageOnError
getOnError, setOnError
 

Field Detail

stateMap

private Map<String,CheckableState> stateMap
Constructor Detail

MultiCheckboxImpl

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

validate

boolean validate(javax.servlet.http.HttpServletRequest req)
Unlike a single value checkbox, multi checkbox cab be required: i.e. user must make one or more selections.

Overrides:
validate in class MultiInputImpl<T>

getState

public Map<String,CheckableState> getState()
Specified by:
getState in interface MultiCheckbox<T>


Copyright © 2007-2008 jReform