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 TypeMethodDescriptionvoid
changedUpdate
(DocumentEvent arg0) void
insertUpdate
(DocumentEvent arg0) void
removeUpdate
(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:
changedUpdate
in interfaceDocumentListener
-
insertUpdate
- Specified by:
insertUpdate
in interfaceDocumentListener
-
removeUpdate
- Specified by:
removeUpdate
in interfaceDocumentListener
-