public class JTextComponentSpellChecker extends Object
| Constructor and Description |
|---|
JTextComponentSpellChecker(org.dts.spell.SpellChecker checker) |
public JTextComponentSpellChecker(org.dts.spell.SpellChecker checker)
public void addListener(TextComponentSpellCheckerListener listener)
public void removeListener(TextComponentSpellCheckerListener listener)
public org.dts.spell.SpellChecker getSpellChecker()
public void markErrors(JTextComponent textComponent)
public void markErrors(JTextComponent textComponent, DocumentWordFinder wordFinder)
textComponent - wordFinder - public void unMarkErrors(JTextComponent textComponent)
textComponent - public boolean spellCheck(JTextComponent textComponent)
public boolean spellCheck(JTextComponent textComponent, DocumentWordFinder documentWordFinder)
public boolean isRealtimeMarkErrors(JTextComponent textComponent)
public ErrorMarker getErrorMarker(JTextComponent textComponent)
public void startRealtimeMarkErrors(JTextComponent textComponent)
public void startRealtimeMarkErrors(JTextComponent textComponent, DocumentWordFinder wordFinder)
textComponent - wordFinder - public void stopRealtimeMarkErrors(JTextComponent textComponent)
public void stopRealtimeMarkErrors()
protected void markInManagers(ErrorMarker errorMarker)
protected void unMarkInManagers(ErrorMarker errorMarker)
public ErrorToolTips getErrorToolTips()
public void setErrorToolTips(ErrorToolTips errorToolTips)
errorToolTips - It can be null, in that case no tooltip is show.public ErrorPopUpMenu getErrorPopUpMenu()
public void setErrorPopUpMenu(ErrorPopUpMenu errorPopUpMenu)
errorToolTips - It can be null, in that case no popupmenu is show.public ActionManager getActionManager()
public void setActionManager(ActionManager actionManager)
public void recheckAll(JTextComponent textComponent)
public void recheckErrors(JTextComponent textComponent)
public void addWordToDictionary(JTextComponent textComponent, String badWord, org.dts.spell.dictionary.SpellDictionary dictionary)
public void ignoreWord(JTextComponent textComponent, String badWord)
public void replaceAllBadWords(JTextComponent textComponent, String badWord, String newWord)
public void replaceBadWord(JTextComponent textComponent, org.dts.spell.finder.Word badWord, String suggestion)
public void deleteBadWord(JTextComponent textComponent, org.dts.spell.finder.Word badWord)
public AddWordAction getAddWordAction()
public IgnoreWordAction getIgnoreWordAction()
public DeleteWordAction getDeleteWordAction()
public SpellCheckAction getSpellCheckAction()
public RealTimeSpellCheckAction getRealTimeSpellCheckAction()
public ReplaceWordAction getReplaceWordAction()
public ReplaceAllWordsAction getReplaceAllWordsAction()
public ReplaceWordAction getReplaceWordAction(String sugestion)
Copyright © 2020. All rights reserved.