edu.cs.ai.kreator.ui.cli.wordcompletion
Class Completor

java.lang.Object
  extended by edu.cs.ai.kreator.ui.cli.wordcompletion.Completor
Direct Known Subclasses:
ChoiceCompletor, CompletorPlus, MultiElementCompletor, NumberCompletor, OptionalCompletor, StringCompletor

public abstract class Completor
extends java.lang.Object


Field Summary
static org.apache.log4j.Logger LOG
           
protected  Completor parentCompletor
           
 
Constructor Summary
Completor()
           
Completor(javax.swing.JEditorPane parentEditor)
           
 
Method Summary
 void complete(int start, int position, boolean userInvoked)
           
abstract  java.util.List<Completion> complete(java.lang.String word, int offset)
           
 void setParent(Completor parent)
           
abstract  java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.log4j.Logger LOG

parentCompletor

protected Completor parentCompletor
Constructor Detail

Completor

public Completor(javax.swing.JEditorPane parentEditor)

Completor

public Completor()
Method Detail

setParent

public void setParent(Completor parent)

complete

public void complete(int start,
                     int position,
                     boolean userInvoked)
              throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException

complete

public abstract java.util.List<Completion> complete(java.lang.String word,
                                                    int offset)

toString

public abstract java.lang.String toString()
Overrides:
toString in class java.lang.Object