at.tuwien.ifs.commons.gui.util
Class DocumentAdapter

java.lang.Object
  extended by at.tuwien.ifs.commons.gui.util.DocumentAdapter
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.DocumentListener

public abstract class DocumentAdapter
extends java.lang.Object
implements javax.swing.event.DocumentListener

An abstract adapter class for receiving document events; this class exists as convenience for creating listener objects that react in the same way to insert and remove updates.
Therefore, both insertUpdate(DocumentEvent) and removeUpdate(DocumentEvent) call performAction(DocumentEvent), changedUpdate(DocumentEvent) is empty.

Version:
$Id: $
Author:
Rudolf Mayer

Constructor Summary
DocumentAdapter()
           
 
Method Summary
 void changedUpdate(javax.swing.event.DocumentEvent e)
           
 void insertUpdate(javax.swing.event.DocumentEvent e)
           
protected abstract  void performAction(javax.swing.event.DocumentEvent e)
           
 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
 

Constructor Detail

DocumentAdapter

public DocumentAdapter()
Method Detail

performAction

protected abstract void performAction(javax.swing.event.DocumentEvent e)

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