Class TextChangedListener
java.lang.Object
org.apache.uima.tools.cvd.control.TextChangedListener
- All Implemented Interfaces:
EventListener,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.
// * @see TextChangedEvent
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTextChangedListener(MainFrame frame) Instantiates a new text changed listener. -
Method Summary
Modifier and TypeMethodDescriptionvoidchangedUpdate(DocumentEvent arg0) voidinsertUpdate(DocumentEvent arg0) voidremoveUpdate(DocumentEvent arg0)
-
Field Details
-
main
The main.
-
-
Constructor Details
-
TextChangedListener
Instantiates a new text changed listener.- Parameters:
frame- the frame
-
-
Method Details
-
changedUpdate
- Specified by:
changedUpdatein interfaceDocumentListener
-
insertUpdate
- Specified by:
insertUpdatein interfaceDocumentListener
-
removeUpdate
- Specified by:
removeUpdatein interfaceDocumentListener
-