org.apache.uima.tools.cvd.control
Class TextChangedListener

java.lang.Object
  extended by org.apache.uima.tools.cvd.control.TextChangedListener
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.DocumentListener

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

Listener for changes in text frame. When the text is changed, the CAS is removed as the text from the CAS does no longer correspond to the text that is displayed in the frame, hence annotation offsets are no longer correct.


Constructor Summary
TextChangedListener(MainFrame frame)
           
 
Method Summary
 void changedUpdate(javax.swing.event.DocumentEvent arg0)
           
 void insertUpdate(javax.swing.event.DocumentEvent arg0)
           
 void removeUpdate(javax.swing.event.DocumentEvent arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextChangedListener

public TextChangedListener(MainFrame frame)
Method Detail

changedUpdate

public void changedUpdate(javax.swing.event.DocumentEvent arg0)
Specified by:
changedUpdate in interface javax.swing.event.DocumentListener

insertUpdate

public void insertUpdate(javax.swing.event.DocumentEvent arg0)
Specified by:
insertUpdate in interface javax.swing.event.DocumentListener

removeUpdate

public void removeUpdate(javax.swing.event.DocumentEvent arg0)
Specified by:
removeUpdate in interface javax.swing.event.DocumentListener


Copyright © 2010 The Apache Software Foundation. All Rights Reserved.