Package | Description |
---|---|
net.sf.jguiraffe.examples.tutorial.viewset | |
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.
|
Modifier and Type | Method and Description |
---|---|
FormValidatorResults |
ViewSettingsFormValidator.isValid(Form form)
Validates the specified
Form instance. |
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
DefaultTableEditorValidationHandler.validationPerformed(Object table,
Form editForm,
TableTag tableTag,
FormValidatorResults results,
int row,
int col)
Reacts on a validation.
|
Modifier and Type | Method and Description |
---|---|
FormValidatorResults |
FormController.getLastValidationResults()
Returns the results of the last validation operation.
|
FormValidatorResults |
FormControllerValidationEvent.getValidationResults()
Returns the
FormValidatorResults 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.
|
Modifier and Type | Method and 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.
|
Constructor and Description |
---|
FormControllerValidationEvent(FormController source,
FormValidatorResults results)
Creates a new instance of
FormControllerValidationEvent and
initializes it with the FormController that is the source of this
event and the results of the validation operation. |
Modifier and Type | Class and Description |
---|---|
class |
DefaultFormValidatorResults
Default implementation of the
FormValidatorResults interface. |
Modifier and Type | Method and Description |
---|---|
FormValidatorResults |
FormValidator.isValid(Form form)
Validates the specified form.
|
static FormValidatorResults |
DefaultFormValidatorResults.merge(FormValidatorResults res1,
FormValidatorResults res2)
Returns a
FormValidatorResults object with the combined
information of the specified FormValidatorResults 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 the
FormValidator . |
Modifier and Type | Method and 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 passed
FormValidatorResults 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 a
FormValidatorResults object with the combined
information of the specified FormValidatorResults 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.
|
Copyright © 2016 The JGUIraffe Team. All rights reserved.