com.sun.midp.chameleon.input |
|
Java Source File Name | Type | Comment |
AlphaNumericInputMode.java | Class | An InputMode instance which processes the numeric 0-9 keys
as their literal numeric values. |
BasicInputMode.java | Class | An InputMode instance which processes the numeric 0-9 keys
as their literal numeric values. |
BasicTextInputSession.java | Class | The BasicTextInputSession represents the relationship between the
system's key input, the TextInputComponent, the available InputModes,
and the graphical display. |
InputMode.java | Interface | An interface to a text input mode, such as alphanumeric, numeric, etc. |
InputModeFactory.java | Class | |
InputModeMediator.java | Interface | |
KeyboardInputMode.java | Class | An InputMode instance which processes the numeric 0-9 keys
as their literal numeric values. |
NativeInputMode.java | Class | |
NumericInputMode.java | Class | An InputMode instance which processes the numeric 0-9 keys
as their literal numeric values. |
PredictiveTextInputMode.java | Class | An InputMode instance which processes the numeric 0-9 keys
as their literal numeric values. |
PTDictionary.java | Interface | Interface for predictive text processing
This class is responsible for initializing the Dictionary
Two APIs are required,
addWord : An interface to add a word to current dictionary (if supported)
iterator: Get a iterator object with the following methods
iterator.next() : get next possible completion string
iterator.hasNext() : check if another possible completion exists
iterator.nextLevel(int key) : add a char to the current completion
iterator.provLevel() : backspace last char from current completion
iterator.reset() : clear current completion
iteratr.resetNext() : revert to first possible completion string
Example of using the predictive text API:
PTDictionary dictionary;
PTIterator iter=dictionary.iterator();
iter.nextLevel('2');
iter.nextLevel('2');
iter.nextLevel('2');
while(iter.hasNext()) {
String completion=iter.next();
System.out.println(completion);
//will print "aca" (short of "academy") "cab" (short of "cabin"),
// "acc" (short of "accelerate") etc. |
PTDictionaryFactory.java | Class | |
PTDictionaryImpl.java | Class | Machine dependent API to predictive text library
This implementation assumes that predictive text library
loaded and handled by platfrom. |
PTIterator.java | Interface | Aniterator that provides predictive text browsing capabilities
Requires only single word predictive text librray support. |
PTIteratorImpl.java | Class | Implements PTIterator using machine-dependent KNI interface. |
SymbolInputMode.java | Class | An InputMode instance which allows to select the particular symbol
from the table of predefined symbols. |
TestNativeInputMode.java | Class | |
TextInputComponent.java | Interface | An interface which defines the protocol between LCDUI component
implementations (TextFieldLFImpl, TextBoxLFImpl) and the TextInputMediator
to enable text input from the system's input modes. |
TextInputSession.java | Interface | The TextInputSession interface represents the relationship between the
system's key input, the TextInputComponent, the available InputModes,
and the graphical display. |