Package com.inet.jortho
This package implements the spell checker JOrtho. With JOrtho is it possible very simple to check the orthography from any text in a JTextComponent. The SpellChecker class is the major class of the Spell Checker JOrtho (Java Orthography Checker). In the most cases this is the only class that you need to add spelling feature to your application. If you want support for a user dictionary that a user can add its own words then you must implements a UserDictionaryProvider. This UserDictionaryProvider must be register at first:
SpellChecker.setUserDictionaryProvider( new MyUserDictionaryProvider() );
After it you need to register your dictionaries one times. In standalone application
if your dictionaries are in the working directory then this can look like:
SpellChecker.registerDictionaries( new URL("file", null, ""), "en,de", "de" );
and in a applet like:
SpellChecker.registerDictionaries( getCodeBase(), "en,de", "en" );
After this you can register your text component that should have all spell checker feature (Highlighter. context menu, spelling dialog). This look like:
JTextPane text = new JTextPane();
SpellChecker.register( text );
-
Interface Summary Interface Description CustomDictionaryProvider Interface to be implemented by an additional dictionary.CustomUIProvider Interface used by other application to provide custom UI components with added functionality if needed.LanguageChangeListener A language change event gets fired whenever the language is changed.MessageHandler Interface to be implemented by a user of the spellchecker that provides the ability to show/log errors and information messages as required by applications using the dictionaryUserDictionaryProvider Interface to be implemented by a user dictionary. -
Class Summary Class Description AboutDialog A small about dialogAddWordAction AutoSpellChecker This class check aJTextComponent
automatically (in the background) for orthography.CheckerListener Is used from CheckerMenu and CheckerPopup to handle the user events.CheckerMenu CheckerPopup DefaultMessageHandler Default implementation of the message handler provider that shows the messages in Swing dialogs and printing stacktraces to the consoleDictionary A container for a word list.DictionaryBase DictionaryEditDialog Implements edit dialog for the user dictionary.DictionaryFactory With the DictionaryFactory you can create / load a Dictionary.DictionaryFactory.Node A node in the search tree.FileUserDictionary This is a reference implementation of the interfaceUserDictionaryProvider
.LanguageBundle This class implements some language specific methods.LanguageBundle_fr Implementation for FrenchLanguageChangeEvent This Event is used byLanguageChangeListener
.LowMemoryArrayList<E> An ArrayList that need only a minimum of memory size.PopupListener Implement a MouseListener for Popup Event.RedZigZagPainter SpellChecker This class is the major class of the spell checker JOrtho (Java Orthography Checker).SpellChecker.AbtsractLanguageAction Base class for languages change actions.SpellChecker.ActionToggleButtonModel SpellChecker.DisableLanguageAction Action for disable all dictionary language.SpellChecker.LanguageAction Action for change the current dictionary language.SpellCheckerDialog The Dialog for continues checking the orthography.SpellCheckerOptions This class contains some options for spell checking.Suggestion This class hold one Suggestion for another spelling.Suggestions A hash list of Suggestions.Tokenizer Break the text and words and search for misspelling.Utils WordIterator A implementation of an Iterator which split a large text into lines.