Interface AnnotatedPluginDocument.DocumentNotes
- Enclosing class:
AnnotatedPluginDocument
public static interface AnnotatedPluginDocument.DocumentNotes
Provides access to all the
DocumentNotes on an AnnotatedPluginDocument-
Method Summary
Modifier and TypeMethodDescriptionvoidremoveNote(String code) Remove a note from thisAnnotatedPluginDocumentvoidSaves these notes to the AnnotatedPluginDocument and in turn to the database.voidsaveNotes(boolean updateModifiedDate) Saves these notes to the AnnotatedPluginDocument and in turn to the database.voidsaveNotes(boolean updateModifiedDate, boolean saveToDatabase) Saves these notes to the AnnotatedPluginDocument and optionally in turn to the database.voidsetNote(DocumentNote note) Add a note to this document (if no note with the same code exists) or update a note (if a note with the same code does exist).
-
Method Details
-
getNote
- Parameters:
code- ofDocumentNoteto get- Returns:
DocumentNotewith codecodeor null if doesn't exist
-
setNote
Add a note to this document (if no note with the same code exists) or update a note (if a note with the same code does exist).
To add a new note useDocumentNoteType.createDocumentNote()to get an instance of the desired note type. UseDocumentNoteUtilitiesto get access to the available note types.- Parameters:
note- to add or modify
-
removeNote
Remove a note from thisAnnotatedPluginDocument- Parameters:
code- of the note to remove
-
getAllNotes
List<DocumentNote> getAllNotes()- Returns:
- a list of all notes on this
AnnotatedPluginDocument
-
saveNotes
void saveNotes()Saves these notes to the AnnotatedPluginDocument and in turn to the database. It is not necessary to callAnnotatedPluginDocument.save()if only notes have been modified, as this method will call it internally. The document's modified date will be updated. -
saveNotes
void saveNotes(boolean updateModifiedDate) Saves these notes to the AnnotatedPluginDocument and in turn to the database. It is not necessary to callAnnotatedPluginDocument.save()if only notes have been modified as this method will call it internally.- Parameters:
updateModifiedDate- true if, when saving the document these notes belong to, the modified date of the document should be updated. False if not.- Since:
- API 4.1000 (Geneious 10.0.0)
-
saveNotes
void saveNotes(boolean updateModifiedDate, boolean saveToDatabase) Saves these notes to the AnnotatedPluginDocument and optionally in turn to the database.- Parameters:
updateModifiedDate- true if, when saving the document these notes belong to, the modified date of the document should be updated. False if not.saveToDatabase- true if, when updating these notes, also save to the database. If this is false, then eitherAnnotatedPluginDocument.saveDocument()orAnnotatedPluginDocument.save()must be called soon.- Since:
- API 4.1010 (Geneious 10.1.0)
-