Package | Description |
---|---|
com.jgoodies.validation |
Consists of the required validation framework core types.
|
com.jgoodies.validation.message |
Contains default implementations for validation messages.
|
com.jgoodies.validation.util |
Contains optional validation helper classes and
default implementations.
|
com.jgoodies.validation.view |
Contains optional validation helper classes that assist in
presenting validation results.
|
Modifier and Type | Method and Description |
---|---|
Severity |
ValidationResult.getSeverity()
Returns the highest severity of this result's messages,
Severity.OK if there are no messages. |
Severity |
ValidationResultModel.getSeverity()
Looks up and returns the Severity of this model's validation result,
one of
Severity.ERROR , Severity.WARNING ,
or Severity.OK . |
static Severity |
Severity.max(Severity severity1,
Severity severity2)
Returns the higher of the given severities by comparing their ordinals.
|
Severity |
ValidationMessage.severity()
Returns this message's severity: error or warning.
|
static Severity |
Severity.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Severity[] |
Severity.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static Severity |
Severity.max(Severity severity1,
Severity severity2)
Returns the higher of the given severities by comparing their ordinals.
|
Modifier and Type | Method and Description |
---|---|
Severity |
AbstractValidationMessage.severity()
Returns this message's severity, either error or warning.
|
Constructor and Description |
---|
AbstractValidationMessage(String text,
Severity severity)
Constructs an AbstractValidationMessage for the given text and Severity.
|
AbstractValidationMessage(String text,
Severity severity,
Object key)
Constructs an AbstractValidationMessage for the given text,
Severity, and association key.
|
PropertyValidationMessage(Severity severity,
String text,
Object target,
String role,
String property)
Constructs a PropertyValidationMessage for the given text,
subject, role description and property description.
|
SimpleValidationMessage(String text,
Severity severity)
Constructs a simple validation message for the given text
and message severity.
|
SimpleValidationMessage(String text,
Severity severity,
Object key)
Constructs a simple validation message for the given text,
message severity, and message key.
|
Modifier and Type | Method and Description |
---|---|
Severity |
AbstractValidationResultModel.getSeverity()
Looks up and returns the severity of the validation result,
one of error, warning, or
null . |
Modifier and Type | Method and Description |
---|---|
void |
PropertyValidationSupport.add(Severity severity,
String property,
String text)
Adds a
PropertyValidationMessage to this object's
default ValidationResult . |
void |
PropertyValidationSupport.add(ValidationResult result,
Severity severity,
String property,
String text)
Adds a
PropertyValidationMessage to the specified
ValidationResult . |
PropertyValidationMessage |
PropertyValidationSupport.create(Severity severity,
String property,
String text)
Creates and returns an error
PropertyValidationMessage
for the given property and message text using the specified severity. |
Constructor and Description |
---|
PropertyValidationSupport(Severity defaultSeverity,
Object target,
String role)
Constructs a
PropertyValidationSupport instance for the
given validation target and its validation role. |
PropertyValidationSupport(ValidationResult defaultResult,
Severity defaultSeverity,
Object target,
String role)
Constructs a
PropertyValidationSupport instance for the
given default result, default severity, validation target and the given
validation role. |
Modifier and Type | Method and Description |
---|---|
static Severity |
ValidationComponentUtils.getSeverity(JComponent comp)
Returns the component's
Severity if it has been set before. |
Modifier and Type | Method and Description |
---|---|
static Icon |
ValidationResultViewFactory.getIcon(Severity severity)
Returns the warning icon for warnings, the error icon for errors
and
null otherwise. |
static Icon |
ValidationResultViewFactory.getSmallIcon(Severity severity)
Returns the small warning icon for warnings, the small error icon for
errors and
null otherwise. |
static void |
ValidationComponentUtils.setSeverity(JComponent comp,
Severity severity)
Marks the given component with the specified severity.
|
Copyright © 2003-2011 JGoodies Karsten Lentzsch. All Rights Reserved.