| java.lang.Object com.sun.midp.chameleon.input.PTIteratorImpl
PTIteratorImpl | public class PTIteratorImpl implements PTIterator(Code) | | Implements PTIterator using machine-dependent KNI interface.
|
Method Summary | |
public boolean | hasNext() Returns true if the iteration has more elements. | public boolean | isValid() | public String | next() Returns the next element in the iteration. | public void | nextLevel(int keyCode) | public void | prevLevel() Backspace on key in current completion string. | public void | reset() | public void | resetNext() Reverts to first possible completion. |
MAX_STRING | final static int MAX_STRING(Code) | | Internal array size to hold KNI word completion
|
PTIteratorImpl | public PTIteratorImpl(int dictionary)(Code) | | create a new iterator
Parameters: dictionary - dictionary id |
hasNext | public boolean hasNext()(Code) | | Returns true if the iteration has more elements. (In other words,
returns true if next would return an
element rather than throwing an exception.)
true if the iterator has more elements. |
isValid | public boolean isValid()(Code) | | check if current handle is valid
true is valid, false otherwise |
next | public String next()(Code) | | Returns the next element in the iteration.
next element in the iteration. exception: NoSuchElementException - iteration has no more elements. |
nextLevel | public void nextLevel(int keyCode)(Code) | | Adds a key to current completion string
Parameters: keyCode - char in the range '0'-'9', '#', or '*' |
prevLevel | public void prevLevel()(Code) | | Backspace on key in current completion string.
|
reset | public void reset()(Code) | | create a new handle and clear completion state by
calling ptNewIterator0()
|
resetNext | public void resetNext()(Code) | | Reverts to first possible completion.
If next() has been called uptil hasNext() returns false, then after
calling reviewCompletionOptions(), calling next() will return
the 1st completion
|
|
|