|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface KSpellSignals
Method Summary | |
---|---|
void |
addword(java.lang.String originalword)
Emitted when the user pressed "Add" in the dialog. |
void |
corrected(java.lang.String originalword,
java.lang.String newword,
int pos)
Emitted after the "Replace" or "Replace All" buttons of the dialog was pressed, or if the word was corrected without calling the dialog (i.e., the user previously chose "Replace All" for this word). |
void |
death()
Emitted on terminal errors and after clean up. |
void |
dialog3()
|
void |
done(boolean arg1)
Emitted when checkList() is done. |
void |
done(java.lang.String buffer)
Emitted when check() is done. |
void |
ignoreall(java.lang.String originalword)
Emitted when the user pressed "Ignore All" in the dialog. |
void |
ignoreword(java.lang.String originalword)
Emitted when the user pressed "Ignore" in the dialog. |
void |
misspelling(java.lang.String originalword,
java.lang.String[] suggestions,
int pos)
Emitted whenever a misspelled word is found by check() or by checkWord(). |
void |
progress(int i)
Emitted during a check(). |
void |
ready(KSpell arg1)
Emitted after KSpell has verified that ISpell/ASpell is running and working properly. |
void |
replaceall(java.lang.String origword,
java.lang.String replacement)
Emitted when the user pressed "ReplaceAll" in the dialog. |
Method Detail |
---|
void misspelling(java.lang.String originalword, java.lang.String[] suggestions, int pos)
pos
=0.
If it is emitted by check(), then pos
indicates the position of
the misspelled word in the (original) _buffer.
(The first position is zero.)
If it is emitted by checkList(), pos
is the index to
the misspelled
word in the ArrayList passed to checkList().
Note, that originalword
can be only a word part, if it's
word with hyphens.
These are called _before_ the dialog is opened, so that the
calling program's GUI may be updated. (e.g. the misspelled word may
be highlighted).
void corrected(java.lang.String originalword, java.lang.String newword, int pos)
originalword
is the last replacement.
#check
void ignoreall(java.lang.String originalword)
void ignoreword(java.lang.String originalword)
void addword(java.lang.String originalword)
void replaceall(java.lang.String origword, java.lang.String replacement)
void ready(KSpell arg1)
void progress(int i)
i
is between 1 and 100.
void done(java.lang.String buffer)
buffer
if you need them.
You can only rely
on the contents of buffer for the life of the slot which was signaled
by done().
void done(boolean arg1)
true
, then you should update your text from the
wordlist, otherwise not.
void death()
Error
- KSpell could not start.
Crashed
- KSpell encountered an unexpected error during execution.
Finished
- Clean up finished.
void dialog3()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |