FileDocCategorySizeDatePackage
PTDictionaryImpl.javaAPI DocphoneME MR2 API (J2ME)2221Wed May 02 18:00:22 BST 2007com.sun.midp.chameleon.input

PTDictionaryImpl

public class PTDictionaryImpl extends Object implements PTDictionary
Machine dependent API to predictive text library This implementation assumes that predictive text library loaded and handled by platfrom. As a result this class serves just as a Iteraror factory

Fields Summary
private String
language
library language
private PTIterator
iterator
library iterator
Constructors Summary
public PTDictionaryImpl(String lang)
Constructor for PTDictionaryImpl

param
lang current language

        language = lang;
    
Methods Summary
public booleanaddWord(java.lang.String word)
Adding words to the predictive text dictionary is not supported on the platform. Returns false always

param
word new word to add
return
false (not supported on the platform)

        return false;
    
public PTIteratoriterator()
get a machine dependent predictive text Iterattor

return
an iterator of the class IteratorImpl

        if (iterator == null)
            iterator = new PTIteratorImpl();
        return iterator;