public void setInvalidValues ( final Set < String > invalidValues , final boolean isCaseSensitive , final String invalidValueErrorMessage ) { if ( isCaseSensitive ) { this . invalidValues = invalidValues ; } else { this . invalidValues = new HashSet < String > ( ) ; for ( String value : invalidValues ) { this . invalidValues . add ( value . toLowerCase ( ) ) ; } } this . isCaseSensitive = isCaseSensitive ; this . invalidValueErrorMessage = invalidValueErrorMessage ; }
Sets the invalid values for the TextBox