|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwicket.markup.html.form.validation.AbstractValidator
wicket.markup.html.form.validation.StringValidator
wicket.markup.html.form.validation.TypeValidator
public class TypeValidator
This validator has been depreacted in favor of
FormComponent.setType(Class)
Validates input by trying it to convert to the given type using the
IConverterinstance of the component doing the
validation.
This component adds ${type}, ${exception}, ${locale} and ${format} to the model for error message interpolation. Format is only valid if the type conversion involves a date.
| Constructor Summary | |
|---|---|
TypeValidator(java.lang.Class type)
Deprecated. Constructor. |
|
TypeValidator(java.lang.Class type,
java.util.Locale locale)
Deprecated. Construct. |
|
| Method Summary | |
|---|---|
java.lang.Class |
getType()
Deprecated. Gets the type to use for checking. |
protected java.util.Map |
messageModel(FormComponent formComponent,
ConversionException e)
Deprecated. Gets the message context. |
void |
onValidate(FormComponent formComponent,
java.lang.String value)
Deprecated. Validates input by trying it to convert to the given type using the IConverterinstance of the component doing
the validation. |
java.lang.String |
toString()
Deprecated. |
| Methods inherited from class wicket.markup.html.form.validation.StringValidator |
|---|
exactLength, lengthBetween, maximumLength, minimumLength, validate |
| Methods inherited from class wicket.markup.html.form.validation.AbstractValidator |
|---|
error, error, error, error, messageModel, resourceKey |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TypeValidator(java.lang.Class type)
type - The type to use for checking
public TypeValidator(java.lang.Class type,
java.util.Locale locale)
type - The type to use for checkinglocale - The locale to use| Method Detail |
|---|
public final java.lang.Class getType()
public void onValidate(FormComponent formComponent,
java.lang.String value)
IConverterinstance of the component doing
the validation.
onValidate in class StringValidatorformComponent - form componentvalue - The string value to validateStringValidator.onValidate(wicket.markup.html.form.FormComponent,
java.lang.String)public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
protected java.util.Map messageModel(FormComponent formComponent,
ConversionException e)
formComponent - form componente - the conversion exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||