org.jreform
Interface InputControl<T>

Type Parameters:
T - data type of this input.
All Superinterfaces:
MessageOnError
All Known Subinterfaces:
Checkbox<T>, Input<T>, MultiCheckbox<T>, MultiInput<T>, MultiSelect<T>, Radio<T>, Select<T>
All Known Implementing Classes:
AbstractInputControl, CheckboxImpl, InputImpl, MultiCheckboxImpl, MultiInputImpl, MultiSelectImpl, RadioImpl, SelectImpl

public interface InputControl<T>
extends MessageOnError

Defines an input control in an html form.

Author:
armandino (at) gmail.com

Method Summary
 String getInputName()
          Returns this input's name attribute.
 String getStringValue()
          Returns a string representation of this input's value as returned by the #toString() method.
 InputDataType<T> getType()
          Returns this input's data type.
 boolean isRequired()
          Returns true if this input must have a value.
 boolean isValid()
          Returns true if this input's data is valid.
 
Methods inherited from interface org.jreform.MessageOnError
getOnError, setOnError
 

Method Detail

getType

InputDataType<T> getType()
Returns this input's data type.


getInputName

String getInputName()
Returns this input's name attribute.


isRequired

boolean isRequired()
Returns true if this input must have a value.


isValid

boolean isValid()
Returns true if this input's data is valid.


getStringValue

String getStringValue()
Returns a string representation of this input's value as returned by the #toString() method.



Copyright © 2007-2008 jReform