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

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

public abstract class DocumentAdapter
extends Object
implements 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(DocumentEvent e)
           
 void insertUpdate(DocumentEvent e)
           
protected abstract  void performAction(DocumentEvent e)
           
 void removeUpdate(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(DocumentEvent e)

changedUpdate

public void changedUpdate(DocumentEvent e)
Specified by:
changedUpdate in interface DocumentListener

insertUpdate

public void insertUpdate(DocumentEvent e)
Specified by:
insertUpdate in interface DocumentListener

removeUpdate

public void removeUpdate(DocumentEvent e)
Specified by:
removeUpdate in interface DocumentListener