Uses of Interface
net.sf.jguiraffe.gui.forms.FormValidatorResults
-
Packages that use FormValidatorResults Package Description net.sf.jguiraffe.gui.builder.components.tags.table A package with tag handler classes for creating table components.net.sf.jguiraffe.gui.builder.window.ctrl This package contains classes and interfaces for the implementation of form controllers.net.sf.jguiraffe.gui.forms A package for dealing with forms. -
-
Uses of FormValidatorResults in net.sf.jguiraffe.gui.builder.components.tags.table
Methods in net.sf.jguiraffe.gui.builder.components.tags.table with parameters of type FormValidatorResults Modifier and Type Method Description boolean
DefaultTableEditorValidationHandler. validationPerformed(Object table, Form editForm, TableTag tableTag, FormValidatorResults results, int row, int col)
Reacts on a validation.boolean
TableEditorValidationHandler. validationPerformed(Object table, Form editForm, TableTag tableTag, FormValidatorResults results, int row, int col)
Validation has been performed for a column editor of a table. -
Uses of FormValidatorResults in net.sf.jguiraffe.gui.builder.window.ctrl
Methods in net.sf.jguiraffe.gui.builder.window.ctrl that return FormValidatorResults Modifier and Type Method Description FormValidatorResults
FormController. getLastValidationResults()
Returns the results of the last validation operation.FormValidatorResults
FormControllerValidationEvent. getValidationResults()
Returns theFormValidatorResults
object with the results of the validation operation.FormValidatorResults
FormController. validate()
Performs a validation of the associated form.FormValidatorResults
FormController. validateAndDisplayMessages()
Performs a validation of the associated form and displays validation messages if this is not successful.Methods in net.sf.jguiraffe.gui.builder.window.ctrl with parameters of type FormValidatorResults Modifier and Type Method Description protected void
FormController. fireValidationEvent(FormValidatorResults results)
Notifies all registered validation listeners about a validation operation.protected void
ColorFieldMarker. updateField(FormController controller, String field, FormValidatorResults validationResults, boolean visited)
Updates the colors for the given field.Constructors in net.sf.jguiraffe.gui.builder.window.ctrl with parameters of type FormValidatorResults Constructor Description FormControllerValidationEvent(FormController source, FormValidatorResults results)
Creates a new instance ofFormControllerValidationEvent
and initializes it with theFormController
that is the source of this event and the results of the validation operation. -
Uses of FormValidatorResults in net.sf.jguiraffe.gui.forms
Classes in net.sf.jguiraffe.gui.forms that implement FormValidatorResults Modifier and Type Class Description class
DefaultFormValidatorResults
Default implementation of theFormValidatorResults
interface.Methods in net.sf.jguiraffe.gui.forms that return FormValidatorResults Modifier and Type Method Description FormValidatorResults
FormValidator. isValid(Form form)
Validates the specified form.static FormValidatorResults
DefaultFormValidatorResults. merge(FormValidatorResults res1, FormValidatorResults res2)
Returns aFormValidatorResults
object with the combined information of the specifiedFormValidatorResults
objects.FormValidatorResults
Form. validate(Object model)
Validates this form and writes its content into the specified model object if validation is successful.FormValidatorResults
Form. validateFields()
Validates the fields of this form.FormValidatorResults
Form. validateFields(Set<String> names)
Validates a sub set of the fields of this form.FormValidatorResults
Form. validateForm(Object model)
Validates the whole form using theFormValidator
.Methods in net.sf.jguiraffe.gui.forms with parameters of type FormValidatorResults Modifier and Type Method Description String
FormValidationMessageFormat. format(FormValidatorResults res, Form form)
The main formatting method.String
FormValidationMessageFormat. formatField(FormValidatorResults res, Form form, String field)
Transforms all validation messages found in the passedFormValidatorResults
object for the given field name into a text according to the values of the current templates.static FormValidatorResults
DefaultFormValidatorResults. merge(FormValidatorResults res1, FormValidatorResults res2)
Returns aFormValidatorResults
object with the combined information of the specifiedFormValidatorResults
objects.protected void
FormValidationMessageFormat. processMessages(StringBuilder buf, org.apache.commons.lang.text.StrSubstitutor subst, FormValidatorResults res, Form form, String field, Map<String,String> variables)
Applies the template for the error messages to all messages available for the current field.protected void
FormValidationMessageFormat. setUpVariablesForField(Map<String,String> vars, FormValidatorResults res, Form form, String field)
Initializes the variables for the specified field of the validation results object.protected void
FormValidationMessageFormat. setUpVariablesForMessage(Map<String,String> vars, FormValidatorResults res, Form form, String field, String msg, int index)
Initializes the variables for an error message.
-