cdx.scorebot.util.swing
Class TextScrollupListener
java.lang.Object
cdx.scorebot.util.swing.TextScrollupListener
- All Implemented Interfaces:
- java.util.EventListener, javax.swing.event.DocumentListener
public class TextScrollupListener
- extends java.lang.Object
- implements javax.swing.event.DocumentListener
Listens for changes in a document backing a JTextComponent and if the typing isn't
the cause of the changes, then the JTextComponent is scrolled to the top.
- Author:
- David Underhill
Method Summary |
void |
changedUpdate(javax.swing.event.DocumentEvent e)
|
void |
insertUpdate(javax.swing.event.DocumentEvent e)
|
static void |
listenTo(javax.swing.text.JTextComponent txtCompon)
adds a TextScrollupListener to the specified JTextComponent |
void |
removeUpdate(javax.swing.event.DocumentEvent e)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextScrollupListener
public TextScrollupListener(javax.swing.text.JTextComponent txtCompon)
listenTo
public static void listenTo(javax.swing.text.JTextComponent txtCompon)
- adds a TextScrollupListener to the specified JTextComponent
changedUpdate
public void changedUpdate(javax.swing.event.DocumentEvent e)
- Specified by:
changedUpdate
in interface javax.swing.event.DocumentListener
insertUpdate
public void insertUpdate(javax.swing.event.DocumentEvent e)
- Specified by:
insertUpdate
in interface javax.swing.event.DocumentListener
removeUpdate
public void removeUpdate(javax.swing.event.DocumentEvent e)
- Specified by:
removeUpdate
in interface javax.swing.event.DocumentListener