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 booleanDefaultTableEditorValidationHandler. validationPerformed(Object table, Form editForm, TableTag tableTag, FormValidatorResults results, int row, int col)Reacts on a validation.booleanTableEditorValidationHandler. 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 FormValidatorResultsFormController. getLastValidationResults()Returns the results of the last validation operation.FormValidatorResultsFormControllerValidationEvent. getValidationResults()Returns theFormValidatorResultsobject with the results of the validation operation.FormValidatorResultsFormController. validate()Performs a validation of the associated form.FormValidatorResultsFormController. 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 voidFormController. fireValidationEvent(FormValidatorResults results)Notifies all registered validation listeners about a validation operation.protected voidColorFieldMarker. 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 ofFormControllerValidationEventand initializes it with theFormControllerthat 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 classDefaultFormValidatorResultsDefault implementation of theFormValidatorResultsinterface.Methods in net.sf.jguiraffe.gui.forms that return FormValidatorResults Modifier and Type Method Description FormValidatorResultsFormValidator. isValid(Form form)Validates the specified form.static FormValidatorResultsDefaultFormValidatorResults. merge(FormValidatorResults res1, FormValidatorResults res2)Returns aFormValidatorResultsobject with the combined information of the specifiedFormValidatorResultsobjects.FormValidatorResultsForm. validate(Object model)Validates this form and writes its content into the specified model object if validation is successful.FormValidatorResultsForm. validateFields()Validates the fields of this form.FormValidatorResultsForm. validateFields(Set<String> names)Validates a sub set of the fields of this form.FormValidatorResultsForm. 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 StringFormValidationMessageFormat. format(FormValidatorResults res, Form form)The main formatting method.StringFormValidationMessageFormat. formatField(FormValidatorResults res, Form form, String field)Transforms all validation messages found in the passedFormValidatorResultsobject for the given field name into a text according to the values of the current templates.static FormValidatorResultsDefaultFormValidatorResults. merge(FormValidatorResults res1, FormValidatorResults res2)Returns aFormValidatorResultsobject with the combined information of the specifiedFormValidatorResultsobjects.protected voidFormValidationMessageFormat. 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 voidFormValidationMessageFormat. setUpVariablesForField(Map<String,String> vars, FormValidatorResults res, Form form, String field)Initializes the variables for the specified field of the validation results object.protected voidFormValidationMessageFormat. setUpVariablesForMessage(Map<String,String> vars, FormValidatorResults res, Form form, String field, String msg, int index)Initializes the variables for an error message.
-