|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use KeyboardInputValidator | |
|---|---|
| com.fedmest.cw.keyboard | This package defines the core of the Keyboard Library framework for accessing keyboard input. |
| com.fedmest.cw.keyboard.validators | This package provides basic implementations of KeyboardInputValidator. |
| Uses of KeyboardInputValidator in com.fedmest.cw.keyboard |
|---|
| Methods in com.fedmest.cw.keyboard with parameters of type KeyboardInputValidator | ||
|---|---|---|
|
KeyboardUtils.readFromKeyboard(KeyboardInputValidator<T> v)
Reads a new line of text from the keyboard without printing out any prompt to the user and uses the specified KeyboardInputValidator to verify the input and convert it to the type offered by the validator itself. |
|
|
KeyboardUtils.readFromKeyboard(java.lang.String msg,
KeyboardInputValidator<T> v)
Prints a prompt to the user on System.out, then reads a new line of text from the keyboard and uses the specified
KeyboardInputValidator to verify the input and convert it to the type offered by the validator itself. |
|
| Uses of KeyboardInputValidator in com.fedmest.cw.keyboard.validators |
|---|
| Classes in com.fedmest.cw.keyboard.validators that implement KeyboardInputValidator | |
|---|---|
class |
BooleanValidator
This class is used internally by the KeyboardUtils.readBoolFromKeyboard() methods. |
class |
CharChoiceValidator
This class checks for single-character input within a range of allowed characters. |
class |
CharValidator
This class is used internally by the KeyboardUtils.readCharFromKeyboard() methods. |
class |
DateValidator
This class parses a string from user input. |
class |
DoubleValidator
This class is used internally by the KeyboardUtils.readDoubleFromKeyboard() methods. |
class |
FloatValidator
This class is used internally by the KeyboardUtils.readFloatFromKeyboard() methods. |
class |
IntValidator
This class is used internally by the KeyboardUtils.readIntFromKeyboard(), KeyboardUtils.readHexFromKeyboard(),
KeyboardUtils.readOctalFromKeyboard() and KeyboardUtils.readBinaryFromKeyboard() methods. |
class |
LongValidator
This class is used internally by the KeyboardUtils.readLongFromKeyboard() methods. |
class |
ValueTypeValidator<T>
Abstract base class for primitive data type input through the keyboard. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||