com.isti.util.gui.textvalidator
Interface TextValidator

All Superinterfaces:
AllowedCharactersConstants, StringConstants
All Known Implementing Classes:
TextBasicValidator, TextMinMaxValidator, TextNumberValidator, TextSQLDateValidator, TextSQLTimestampValidator, TextSQLTimeValidator

public interface TextValidator
extends AllowedCharactersConstants

Interface TextValidator defines methods to validate text.


Field Summary
 
Fields inherited from interface com.isti.util.StringConstants
ALPHA_CAP_CHARS, ALPHA_CHARS, ALPHA_LOW_CHARS, ALPHANUM_CHARS_STRING, ALPHANUMERIC_CHARS, BOOLEAN_FALSE_TEXT, BOOLEAN_TRUE_TEXT, DATE_FORMAT_AMPM_STR, DATE_FORMAT_RFC_822_STR, DATE_FORMAT24_STR, DEFAULT_JAVA_VERSION_STRING, DEFAULT_NULL_STR, DEFAULT_SEP_STR, EFLOAT_CHARS, EMPTY_STRING, FLOAT_CHARS, HEX_ALPHA_CAP_CHARS, HEX_ALPHA_LOW_CHARS, HEX_CHARS, INTEGER_CHARS, INVALID_FILENAME_CHARS, QUOTE_STRING, SIGNED_EFLOAT_CHARS, SIGNED_FLOAT_CHARS, SIGNED_INT_CHARS, SPACE_STRING, TOD_CHARS, WHITE_SPACE_CHARS, WILDCARD_ALL_CHAR, WILDCARD_CHARS, WILDCARD_SINGLE_CHAR
 
Method Summary
 boolean getAllowedFlag()
          Gets the allowed flag.
 int getColumns()
          Gets the number of columns.
 int getMaxNumChars()
          Gets the maximum number of characters.
 java.lang.String getSpecialChars()
          Gets the allowed (or not allowed) special characters.
 java.lang.String getToolTipText()
          Gets the tool tip text.
 boolean isNumeric()
          Determines if the characters represent a numeric value.
 boolean isValid(java.lang.String s)
          Determines if the text is valid.
 boolean isValidEntry(java.lang.String s)
          Determines if the text entry is valid.
 

Method Detail

getAllowedFlag

boolean getAllowedFlag()
Gets the allowed flag.

Returns:
true to allow only the special characters, false to not allow the special characters.
See Also:
getSpecialChars()

getColumns

int getColumns()
Gets the number of columns.

Returns:
the number of columns or -1 for the default.

getMaxNumChars

int getMaxNumChars()
Gets the maximum number of characters.

Returns:
the maximum number of characters or 0 if none.

getSpecialChars

java.lang.String getSpecialChars()
Gets the allowed (or not allowed) special characters. If there are no special characters then all characters are allowed.

Returns:
the allowed characters or null for none.
See Also:
getAllowedFlag()

getToolTipText

java.lang.String getToolTipText()
Gets the tool tip text.

Returns:
the tool tip text or null if none.

isNumeric

boolean isNumeric()
Determines if the characters represent a numeric value.

Returns:
true if numeric value, false otherwise

isValid

boolean isValid(java.lang.String s)
Determines if the text is valid. The text may be only part of the entire text entry.

Parameters:
s - the text.
Returns:
true if the text is valid, false otherwise.

isValidEntry

boolean isValidEntry(java.lang.String s)
Determines if the text entry is valid. The text should be the entire text entry.

Parameters:
s - the text.
Returns:
true if the text is valid, false otherwise.