Package snap.text

Class SpellCheck

java.lang.Object
snap.text.SpellCheck

public class SpellCheck extends Object
This class provides generic spell check API to allow support for any spell check technology.
  • Constructor Details

    • SpellCheck

      public SpellCheck()
      Constructor.
  • Method Details

    • getNextMisspelledWord

      public SpellCheck.Word getNextMisspelledWord(String aString, int anIndex)
      Returns the next misspelled word in given string.
    • getSuggestionsForWord

      protected List<String> getSuggestionsForWord(SpellCheck.Word aWord)
      Returns the suggestions for given word.
    • getMisspelledWord

      public static SpellCheck.Word getMisspelledWord(String aString, int anIndex)
      Returns the first misspelled word in a given string starting at the given index (or null or no misspelled words).
    • getShared

      public static SpellCheck getShared()
      Returns the shared spell checker.
    • setSharedClass

      public static void setSharedClass(Class<? extends SpellCheck> aClass)
      Returns the shared spell checker.