public class NonEmptyInputValidator extends java.lang.Object implements InputValidator
Constructor and Description |
---|
NonEmptyInputValidator() |
Modifier and Type | Method and Description |
---|---|
boolean |
canClose(java.lang.String inputString)
This method is invoked just before message dialog is closed with OK code.
|
boolean |
checkInput(java.lang.String inputString)
Checks whether the
inputString is valid. |
public boolean checkInput(java.lang.String inputString)
InputValidator
inputString
is valid. It is invoked each time
input changes.checkInput
in interface InputValidator
inputString
- the input to checkpublic boolean canClose(java.lang.String inputString)
InputValidator
false
is returned then then the message dialog will not be closed.canClose
in interface InputValidator
inputString
- the input to check