|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fife.rtext.SpellingSupport
Handles spell checking options in RText.
| Field Summary | |
static java.lang.String[] |
DICTIONARIES
Dictionaries for the supported languages. |
| Constructor Summary | |
SpellingSupport(RText rtext)
Constructor. |
|
| Method Summary | |
void |
forceSpellCheck(RTextEditorPane textArea)
Forces a spell check to be done in the text area. |
int |
getMaxSpellingErrors()
Returns the maximum number of spelling errors to report for a file. |
java.awt.Color |
getSpellCheckingColor()
Sets the color to use when squiggle underlining spelling errors. |
java.lang.String |
getSpellingDictionary()
Returns the spelling dictionary to use. |
java.io.File |
getUserDictionary()
Returns the file used to store words the user chooses to "add to the dictionary." |
boolean |
isSpellCheckingEnabled()
Returns whether spell checking is enabled. |
void |
setMaxSpellingErrors(int max)
Changes the maximum number of spelling errors reported for a file. |
void |
setSpellCheckingColor(java.awt.Color color)
Toggles the color used for squiggle underlining spelling errors. |
void |
setSpellCheckingEnabled(boolean enabled)
Toggles whether spell checking is enabled. |
void |
setSpellingDictionary(java.lang.String dict)
Sets the spelling dictionary to use. |
void |
setUserDictionary(java.io.File dict)
Sets the dictionary that "added words" are added to. |
void |
spellingParserEvent(SpellingParserEvent e)
Called when the user adds a word to their user dictionary, or chooses to ignore a word. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String[] DICTIONARIES
| Constructor Detail |
public SpellingSupport(RText rtext)
rtext - The parent application.| Method Detail |
public void forceSpellCheck(RTextEditorPane textArea)
textArea - The text area.public int getMaxSpellingErrors()
setMaxSpellingErrors(int)public java.awt.Color getSpellCheckingColor()
setSpellCheckingColor(Color)public java.lang.String getSpellingDictionary()
setSpellingDictionary(String)public java.io.File getUserDictionary()
null if there is none.setUserDictionary(File)public boolean isSpellCheckingEnabled()
setSpellCheckingEnabled(boolean)public void setMaxSpellingErrors(int max)
max - The maximum number of spelling errors.getMaxSpellingErrors()public void setSpellCheckingColor(java.awt.Color color)
color - The new color to use.getSpellCheckingColor()public void setSpellCheckingEnabled(boolean enabled)
enabled - Whether spell checking is enabled.isSpellCheckingEnabled()public void setSpellingDictionary(java.lang.String dict)
dict - The dictionary. If this is unknown, American English is
used.getSpellingDictionary()public void setUserDictionary(java.io.File dict)
dict - The new user dictionary. If this is null, then
there will be no user dictionary.getUserDictionary()public void spellingParserEvent(SpellingParserEvent e)
spellingParserEvent in interface SpellingParserListenere - The event.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||