public abstract class TextEntryValidator extends Object
| Constructor and Description |
|---|
TextEntryValidator() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultValidText(JTextEntryField textEntryField)
Get a default text that is valid within the current set of validation constraints.
|
String |
getInvalidTextErrorMessage(JTextEntryField textEntryField,
String invalidText)
Get the message to show when the current text is invalid, or null for the default.
|
boolean |
isTextAllowed(JTextEntryField textEntryField,
String text)
Indicate whether the text is allowed.
|
boolean |
isTextValid(JTextEntryField textEntryField,
String text)
Indicate whether the text is valid.
|
public boolean isTextAllowed(JTextEntryField textEntryField, String text)
textEntryField - The text entry field for which to test the value.text - The text.public boolean isTextValid(JTextEntryField textEntryField, String text)
textEntryField - The text entry field for which to test the value.text - The text.public String getInvalidTextErrorMessage(JTextEntryField textEntryField, String invalidText)
textEntryField - The text entry field for which to test the value.invalidText - the text which is invalid.public String getDefaultValidText(JTextEntryField textEntryField)
textEntryField - The text entry field for which to test the value.Copyright © 2019. All rights reserved.