Package com.fedmest.cw.keyboard

This package defines the core of the Keyboard Library framework for accessing keyboard input.

See:
          Description

Interface Summary
KeyboardInputValidator<T> This interface should be implemented to create new ways of getting input from the keyboard.
 

Class Summary
KeyboardUtils The KeyboardUtils class is an abstract class that defines the interface for easily accessing the keyboard.
 

Exception Summary
KeyboardInputException A keyboard validator (a class implementing KeyboardInputValidator) will throw this exception when the input string does not conform to the requirements of the expected data type.
 

Package com.fedmest.cw.keyboard Description

This package defines the core of the Keyboard Library framework for accessing keyboard input. The classes defined in this package are the abstract KeyboardUtils, the exception KeyboardInputException and the interface KeyboardInputValidator. Instances of KeyboardUtils use a validator in order to check input from the user and convert it to whatever format is required by the application. The implementations of KeyboardInputValidator will throw an instance of KeyboardInputException if the typed text does not correspond to an expected value and cannot be converted to the required data type.

A default implementation of KeyboardUtils is provided with the framework and available through the KeyboardUtils.newDefaultKeyboard() method. Further instances can be provided by users of the library to customize the input prompt and error tag used to get input from the user, as well as the cancel sequence that lets the user to cancel input, when allowed.

Version:
1.0
Author:
Federico Mestrone


Copyright © 2008 Federico Mestrone. All Rights Reserved.