|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.markup.html.form.validation.AbstractFormValidator
public abstract class AbstractFormValidator
Base class for IFormValidator
s.
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,
java.util.Map 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,
java.lang.String resourceKey)
Reports an error against the validatable using the given resource key |
void |
error(FormComponent fc,
java.lang.String resourceKey,
java.util.Map vars)
Reports an error against the validatable using the specified resource key and variable map |
protected java.util.Map |
messageModel()
Deprecated. use variablesMap() instead |
protected java.lang.String |
resourceKey()
Gets the resource key for validator's error message from the ApplicationSettings class. |
protected java.util.Map |
variablesMap()
Gets the default variables for interpolation. |
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 |
---|
protected final java.util.Map messageModel()
variablesMap()
instead
java.lang.UnsupportedOperationException
- FIXME 2.0: remove asappublic void error(FormComponent fc)
variablesMap()
for
variable interpolations and message key returned by resourceKey()
.
fc
- form component against which the error is reportedpublic void error(FormComponent fc, java.lang.String resourceKey)
fc
- form component against which the error is reportedresourceKey
- The message resource key to usepublic void error(FormComponent fc, java.util.Map vars)
resourceKey()
fc
- form component against which the error is reportedvars
- variables for variable interpolationpublic void error(FormComponent fc, java.lang.String resourceKey, java.util.Map vars)
fc
- form component against which the error is reportedresourceKey
- The message resource key to usevars
- The model for variable interpolationprotected java.util.Map variablesMap()
protected java.lang.String resourceKey()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |