org.jreform.internal
Class SelectImpl<T>

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

 class SelectImpl<T>
extends InputImpl<T>
implements Select<T>

Author:
armandino (at) gmail.com

Field Summary
private static int MAP_CAPACITY
           
private  Map<String,SelectableState> stateMap
           
 
Constructor Summary
SelectImpl(InputDataType<T> type, String name, Criterion<T>... criteria)
           
 
Method Summary
 Map<String,SelectableState> getState()
           
(package private)  boolean validate(javax.servlet.http.HttpServletRequest req)
          Validates this input's value attribute(s).
 
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
 

Field Detail

MAP_CAPACITY

private static final int MAP_CAPACITY
See Also:
Constant Field Values

stateMap

private Map<String,SelectableState> stateMap
Constructor Detail

SelectImpl

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

validate

boolean validate(javax.servlet.http.HttpServletRequest req)
Description copied from class: AbstractInputControl
Validates this input's value attribute(s).

Overrides:
validate in class InputImpl<T>

getState

public Map<String,SelectableState> getState()
Specified by:
getState in interface Select<T>


Copyright © 2007-2008 jReform