|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.plugin.spellcheck.DocUnderliner
abstract class DocUnderliner
Notifies subclasses when words are changed and lets them decide if text should be underlined with a red squiggle. Text appended to the end isn't formatted until the word's completed.
| Constructor Summary | |
|---|---|
DocUnderliner(Highlighter docHighlighter)
|
|
| Method Summary | |
|---|---|
void |
changedUpdate(DocumentEvent e)
|
void |
format(Word word)
Formats the word with the appropriate underlining (or lack thereof). |
(package private) abstract int |
getCaretPosition()
Provides the index of the character the cursor is in front of. |
CaretListener |
getEndChecker()
Provides a listener that prompts the last word to be checked when the cursor moves away from it. |
(package private) abstract boolean |
getFormatting(String word)
Queries to see if a word should be underlined. |
void |
insertUpdate(DocumentEvent event)
|
static void |
main(String[] args)
|
(package private) abstract void |
promptRepaint()
Prompts the text field to repaint. |
void |
removeUpdate(DocumentEvent event)
|
void |
reset(String message)
Clears underlining and re-evaluates message's contents |
void |
setEnabled(boolean enable,
String message)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
DocUnderliner(Highlighter docHighlighter)
| Method Detail |
|---|
abstract boolean getFormatting(String word)
word - word to be checked
abstract int getCaretPosition()
abstract void promptRepaint()
public static void main(String[] args)
public void insertUpdate(DocumentEvent event)
insertUpdate in interface DocumentListenerpublic void removeUpdate(DocumentEvent event)
removeUpdate in interface DocumentListenerpublic void changedUpdate(DocumentEvent e)
changedUpdate in interface DocumentListenerpublic CaretListener getEndChecker()
public void format(Word word)
word - word to be formatted
public void setEnabled(boolean enable,
String message)
public void reset(String message)
message - textual contents of document
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||