|
JAC project AOPSYS CEDRIC & LIP6 labs |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.aspects.gui.swing.CompletionEngine
This class must be subclassed to implement specific completion engines for code editors.
Field Summary | |
static int |
BACKWARD
|
protected List |
baseWords
|
static int |
FORWARD
|
Constructor Summary | |
CompletionEngine()
|
Method Summary | |
void |
addBaseWord(String baseWord)
|
void |
addBaseWords(Collection baseWords)
|
void |
clearBaseWords()
|
List |
getBaseWords()
|
abstract List |
getContextualChoices(String text,
int position,
String writtenText)
Returns the list of the words that are potential completions for a given context. |
String |
getProposal(String text,
int position,
String writtenText,
String currentProposal,
int direction)
Returns a proposal from a current text's state. |
abstract boolean |
isAutomaticCompletionChar(char c)
|
abstract void |
runAutomaticCompletion(SHEditor editor,
String text,
int position,
char c)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int BACKWARD
public static final int FORWARD
protected List baseWords
Constructor Detail |
public CompletionEngine()
Method Detail |
public abstract List getContextualChoices(String text, int position, String writtenText)
text
- the editor's full textposition
- the cursor positionwrittenText
- the already written text
public String getProposal(String text, int position, String writtenText, String currentProposal, int direction)
text
- the editor's full textposition
- the cursor positionwrittenText
- the already written text of the
completionable word if anycurrentProposal
- the proposal that is currently made to
the user ("" if none)direction
- BACKWARD || FORWARD
public abstract void runAutomaticCompletion(SHEditor editor, String text, int position, char c)
public abstract boolean isAutomaticCompletionChar(char c)
public List getBaseWords()
public void addBaseWord(String baseWord)
public void addBaseWords(Collection baseWords)
public void clearBaseWords()
|
Contact JAC development team: Renaud Pawlak Lionel Seinturier Laurent Martelli |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |