Interface ValidatedComponent
-
- All Known Implementing Classes:
BeanListComboBox
,FileSuggestField
,SuggestField
,ValidatedMultiSelectField
,ValidatedPasswordField
,ValidatedTextField
public interface ValidatedComponent
An interface for input components that provide validation feedback.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
VALIDATION_MESSAGES
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addValidationListener(java.beans.PropertyChangeListener listener)
Add a listener to receive notification when the validation changes.java.lang.String
getValidationMessages()
Get the validation result.boolean
isVisible()
void
removeValidationListener(java.beans.PropertyChangeListener listener)
Remove a listener that is receiving notification when the validation changes.void
validateValue()
Perform validation of the current value.
-
-
-
Field Detail
-
VALIDATION_MESSAGES
static final java.lang.String VALIDATION_MESSAGES
- See Also:
- Constant Field Values
-
-
Method Detail
-
validateValue
void validateValue()
Perform validation of the current value. Useful when validation depends on another component.
-
getValidationMessages
java.lang.String getValidationMessages()
Get the validation result.- Returns:
- a string describing the validation errors.
-
addValidationListener
void addValidationListener(java.beans.PropertyChangeListener listener)
Add a listener to receive notification when the validation changes.
-
removeValidationListener
void removeValidationListener(java.beans.PropertyChangeListener listener)
Remove a listener that is receiving notification when the validation changes.
-
isVisible
boolean isVisible()
-
-