xbneditor
Class TextDocumentListener
java.lang.Object
|
+--xbneditor.TextDocumentListener
- All Implemented Interfaces:
- javax.swing.event.DocumentListener, java.util.EventListener
- public class TextDocumentListener
- extends java.lang.Object
- implements javax.swing.event.DocumentListener
This class is an extension of a DocumentListener. It is specifically
used to recongize when a text area has been changed and the updates
with the corresponding changes that have been made.
|
Constructor Summary |
TextDocumentListener(Block block)
Constructs a new TextDocumentListener that is listening for
changes to a specific Block name. |
|
Method Summary |
void |
changedUpdate(javax.swing.event.DocumentEvent e)
Another method that is overridden, this function is
never called in the course of this program. |
void |
insertUpdate(javax.swing.event.DocumentEvent e)
This is an overriden method that is inherited from the
DocumentListener interface. |
void |
removeUpdate(javax.swing.event.DocumentEvent e)
This is an overriden method that is inherited from the
DocumentListener interface. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextDocumentListener
public TextDocumentListener(Block block)
- Constructs a new TextDocumentListener that is listening for
changes to a specific Block name.
- Parameters:
block - the block that might have its name changed
insertUpdate
public void insertUpdate(javax.swing.event.DocumentEvent e)
- This is an overriden method that is inherited from the
DocumentListener interface. It reconcgizes when something
has been inserted into the string.
- Specified by:
insertUpdate in interface javax.swing.event.DocumentListener
- Parameters:
e - the DocumentEvent that has occured
removeUpdate
public void removeUpdate(javax.swing.event.DocumentEvent e)
- This is an overriden method that is inherited from the
DocumentListener interface. It reconcgizes when something
has been deleted from the string.
- Specified by:
removeUpdate in interface javax.swing.event.DocumentListener
- Parameters:
e - the DocumentEvent that has occured
changedUpdate
public void changedUpdate(javax.swing.event.DocumentEvent e)
- Another method that is overridden, this function is
never called in the course of this program.
- Specified by:
changedUpdate in interface javax.swing.event.DocumentListener
- Parameters:
e - the DocumentEvent that has occured