Analysis
Warning! This content is now obsolete. Read GROUP_ANNOTATIONS_R0.
Overview
Annotations can be exported to and imported from a file. This includes stickies, highlights and audio annotations.
Task requirements
In the Stickies palette in the Annotations tab there should be two buttons: "Save Stickies As..." and "Import Stickies...". The Highlights and Audio palettes should have analogical buttons (when done).
When clicked such a button, a file dialog appears.
It's important that it should not be possible to import stickies and highlights, exported from another book.
I recommend to implement ANNOTATIONS_STICKIES_R0 first.
Task result
Source code.
Implementation idea
Use the same code that performs saving/loading annotations from/to a file.
Use JFileChooser control. If dealing with stickies, the file filter should be something like "*.stickies" and etc.
Related
How to demo
- Run Sophie2
- Create a new book
- Create a new sticky
- Export the stickies to a file, located on the desktop
- Show the desktop and look for the file
- Return to Sophie2 window
- Delete the sticky
- Import stickies from the file
Design
(Describe your design here.)
Implementation
(Describe and link the implementation results here (from the wiki or the repository).)
Testing
(Place the testing results here.)
Comments
(Write comments for this or later revisions here.)