TextPicker allowed characters

Is there a way to set specific characters to display on the TextPicker view? Like for example I only need spefic letters/numbers to be displayed because I don't expect anything else to be put in?