|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InputValidator
Interface for defining Validators that can be used by MaskedField for displaying output masks.
This is basically an extention to the InputVerifier class. Which provides ways to retrieve the information from a field without the display mask.
It also provides a way to get the error message if the verify message returns false.
InputVerifier
Method Summary | |
---|---|
java.lang.String |
getErrorMessage()
retrieves the errormessage if verify returns false. |
java.lang.String |
getLocalizedMessage()
retrieve the error message, localized to the default locale if verify returns false |
java.lang.String |
getString(java.lang.String txt)
gets a String as representation of the value from a InputValidator Implementations might differ on what you need the value for. |
java.lang.String |
getString(java.lang.String txt,
java.lang.Class c)
gets a String as representation of the value from a InputValidator Implemenations differ for the implementations of this interface and on which Class is supplied for output. |
boolean |
verify(javax.swing.JComponent input)
Just a reference to verify in javax.swing.InputVerifier |
Method Detail |
---|
java.lang.String getErrorMessage()
java.lang.String getLocalizedMessage()
java.lang.String getString(java.lang.String txt)
Implementations might differ on what you need the value for.
If you can do with the value with the Mask just use the getText() on which ever field this InputValidator is implemented on.
txt
- String, the Masked text of this Validator
java.lang.String getString(java.lang.String txt, java.lang.Class c)
Implemenations differ for the implementations of this interface and on which Class is supplied for output. Also not all requested output Classes are implemented for every implementation. on which ever field this InputValidator is implemented on.
txt
- String, the Masked text of this Validatorc
- Class, the type of output you want to return as a String representation
boolean verify(javax.swing.JComponent input)
InputVerifier
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |