Interface ICasDocumentListener
- All Known Implementing Classes:
AbstractAnnotationDocumentListener, AbstractDocumentListener, TypeGroupedContentProvider
public interface ICasDocumentListener
This interface is used to notifies clients about
FeatureStructure changes.-
Method Summary
Modifier and TypeMethodDescriptionvoidadded(Collection<FeatureStructure> newFeatureStructure) This method is called if multipleFeatureStructures are added.voidadded(FeatureStructure newFeatureStructure) This method is called if anFeatureStructureis added.voidchanged()This method is called ifFeatureStructures in the document are changed.voidremoved(Collection<FeatureStructure> deletedFeatureStructure) This method is called if multipleFeatureStructures are removed.voidremoved(FeatureStructure deletedFeatureStructure) This method is called if anFeatureStructureis removed.voidupdated(Collection<FeatureStructure> featureStructure) This method is called if theFeatureStructures changed.voidupdated(FeatureStructure featureStructure) This method is called if theFeatureStructurechanged.voidviewChanged(String oldViewName, String newViewName) This method is called when the currently active view is changed in the document.
-
Method Details
-
added
This method is called if anFeatureStructureis added.- Parameters:
newFeatureStructure- - the addedFeatureStructure.
-
added
This method is called if multipleFeatureStructures are added.- Parameters:
newFeatureStructure- - the addedFeatureStructures.
-
removed
This method is called if anFeatureStructureis removed.- Parameters:
deletedFeatureStructure- - the removedFeatureStructure.
-
removed
This method is called if multipleFeatureStructures are removed.- Parameters:
deletedFeatureStructure- - the removedAnnotations.
-
updated
This method is called if theFeatureStructurechanged.- Parameters:
featureStructure- the feature structure
-
updated
This method is called if theFeatureStructures changed.- Parameters:
featureStructure- the feature structure
-
changed
void changed()This method is called ifFeatureStructures in the document are changed. Note: The text can not be changed -
viewChanged
This method is called when the currently active view is changed in the document. A view changed does not indicate a structural change, but usually feature structures must be completely synchronized afterward.- Parameters:
oldViewName- the old view namenewViewName- the new view name
-