|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchrriis.dj.swingsuite.TextEntryValidator
public abstract class TextEntryValidator
Constructor Summary | |
---|---|
TextEntryValidator()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextEntryValidator()
Method Detail |
---|
public boolean isTextAllowed(JTextEntryField textEntryField, String text)
textEntryField
- The text entry field for which to test the value.
public boolean isTextValid(JTextEntryField textEntryField, String text)
textEntryField
- The text entry field for which to test the value.
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.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |