3.11.1.2.1. AnnotationJSAPI

public interface AnnotationJSAPI extends Exportable

3.11.1.2.1.1. Methods

void add(String documentId, Annotation annotation)

Add an annotation to the current document. Note that this annotation is not saved

Parameters:
  • documentId – the documentId
  • annotation – the annotation to add
List<String> getActionTypes()
List<String> getDestinationTypes()
String getPropertyFromAction(String action, String property)
String getPropertyFromDestination(String destination, String property)
boolean hasDirtyAnnotations()

Returns true if modified annotations remain

Returns:true if modified annotations remain
void refresh()

Refresh existing annotations (dirty ones still remain unsaved)

void registerFollowLinkHandler(FollowLinkHandler linkHandler)
void save()

Save current dirty annotations