@API(type=NOT_EXTENDABLE,
src=PUBLIC)
public interface WebappSpellchecker
| Modifier and Type | Method and Description |
|---|---|
java.util.List<SpellCheckingProblemInfo> |
check(java.util.List<TextChunkDescriptor> textDescriptors)
Performs a spellcheck of the given text descriptors.
|
SpellSuggestionsInfo |
getSuggestionsForWordAtPosition(int position)
Gets the suggestions for the word at a certain position.
|
java.util.List<TextChunkDescriptor> |
getTextDescriptors(int startOffset,
int endOffset)
Returns the list of descriptors for chunks of text between the given offsets.
|
void |
replaceWithSuggestion(int startOffset,
int endOffset,
java.lang.String newWord)
Replaces word at a certain position.
|
SpellSuggestionsInfo getSuggestionsForWordAtPosition(int position) throws javax.swing.text.BadLocationException, java.io.IOException
position - Position in the document.javax.swing.text.BadLocationExceptionjava.io.IOExceptionvoid replaceWithSuggestion(int startOffset,
int endOffset,
java.lang.String newWord)
throws javax.swing.text.BadLocationException,
java.io.IOException
startOffset - Start offset for replacement.endOffset - End offset for replacement.newWord - Word to be inserted.javax.swing.text.BadLocationExceptionjava.io.IOExceptionjava.util.List<TextChunkDescriptor> getTextDescriptors(int startOffset, int endOffset)
startOffset - The start offset.endOffset - The end offset.java.util.List<SpellCheckingProblemInfo> check(java.util.List<TextChunkDescriptor> textDescriptors) throws java.io.IOException
textDescriptors - The text descriptors.java.io.IOException - If there is a problem reading the dictinaries.© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.