|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.behavior.Behavior
org.apache.wicket.markup.html.form.validation.AbstractFormValidator
public abstract class AbstractFormValidator
Base class for IFormValidators.
| Constructor Summary | |
|---|---|
AbstractFormValidator()
|
|
| Method Summary | |
|---|---|
void |
error(FormComponent<?> fc)
Reports an error against validatable using the map returned by variablesMap()for
variable interpolations and message key returned by resourceKey(). |
void |
error(FormComponent<?> fc,
Map<String,Object> vars)
Reports an error against the validatable using the given map for variable interpolations and message resource key provided by resourceKey() |
void |
error(FormComponent<?> fc,
String resourceKey)
Reports an error against the validatable using the given resource key |
void |
error(FormComponent<?> fc,
String resourceKey,
Map<String,Object> vars)
Reports an error against the validatable using the specified resource key and variable map |
protected String |
resourceKey()
Gets the resource key for validator's error message from the ApplicationSettings class. |
protected Map<String,Object> |
variablesMap()
Gets the default variables for interpolation. |
| Methods inherited from class org.apache.wicket.behavior.Behavior |
|---|
afterRender, beforeRender, bind, canCallListenerInterface, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onComponentTag, onConfigure, onEvent, onException, renderHead, unbind |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.wicket.markup.html.form.validation.IFormValidator |
|---|
getDependentFormComponents, validate |
| Constructor Detail |
|---|
public AbstractFormValidator()
| Method Detail |
|---|
public void error(FormComponent<?> fc)
variablesMap()for
variable interpolations and message key returned by resourceKey().
fc - form component against which the error is reported
public void error(FormComponent<?> fc,
String resourceKey)
fc - form component against which the error is reportedresourceKey - The message resource key to use
public void error(FormComponent<?> fc,
Map<String,Object> vars)
resourceKey()
fc - form component against which the error is reportedvars - variables for variable interpolation
public void error(FormComponent<?> fc,
String resourceKey,
Map<String,Object> vars)
fc - form component against which the error is reportedresourceKey - The message resource key to usevars - The model for variable interpolationprotected Map<String,Object> variablesMap()
protected String resourceKey()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||