de.enough.polish.predictive.array
Class ArrayTextBuilder

java.lang.Object
  extended by de.enough.polish.predictive.TextBuilder
      extended by de.enough.polish.predictive.array.ArrayTextBuilder

public class ArrayTextBuilder
extends TextBuilder


Field Summary
 
Fields inherited from class de.enough.polish.predictive.TextBuilder
align, ALIGN_FOCUS, ALIGN_LEFT, ALIGN_RIGHT, caret, element, JUMP_NEXT, JUMP_PREV, mode, text, textElements
 
Constructor Summary
ArrayTextBuilder(int textSize)
           
 
Method Summary
 void addReader(PredictiveReader reader)
          Creates a new TextElement carrying reader
 void addString(java.lang.String string)
          Creates a new TextElement carrying string
 void addWord(java.lang.String string)
           
 boolean deleteCurrent()
          Deletes the current element
 boolean keyClear()
           
 
Methods inherited from class de.enough.polish.predictive.TextBuilder
addElement, decreaseCaret, decreaseString, getAlign, getCaret, getCaretPosition, getElementLine, getJumpPosition, getMode, getReader, getString, getText, getTextChar, getTextElement, hasText, increaseCaret, isString, keyNum, keySpace, setAlign, setCurrentElementNear, setMode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayTextBuilder

public ArrayTextBuilder(int textSize)
Method Detail

keyClear

public boolean keyClear()
                 throws javax.microedition.rms.RecordStoreException
Specified by:
keyClear in class TextBuilder
Throws:
javax.microedition.rms.RecordStoreException

addWord

public void addWord(java.lang.String string)
Overrides:
addWord in class TextBuilder

addString

public void addString(java.lang.String string)
Description copied from class: TextBuilder
Creates a new TextElement carrying string

Specified by:
addString in class TextBuilder
Parameters:
string - the string the TextElement should carry

addReader

public void addReader(PredictiveReader reader)
Description copied from class: TextBuilder
Creates a new TextElement carrying reader

Specified by:
addReader in class TextBuilder
Parameters:
reader - the instance of TrieReader the TextElement should carry

deleteCurrent

public boolean deleteCurrent()
Description copied from class: TextBuilder
Deletes the current element

Specified by:
deleteCurrent in class TextBuilder
Returns:
true, if an element was deleted, otherwise false