public class NoteData extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private long |
newNoteId |
private java.util.List<Note> |
noteList |
private Note |
selectedNote |
Constructor and Description |
---|
NoteData()
Construct a new note container with an empty note list
|
NoteData(java.util.List<Note> notes)
Construct a new note container with a given list of notes
|
Modifier and Type | Method and Description |
---|---|
void |
addCommentToNote(Note note,
java.lang.String text)
Add a new comment to an existing note
|
void |
addNotes(java.util.List<Note> newNotes)
Add notes to the data set.
|
void |
closeNote(Note note,
java.lang.String text)
Close note with comment
|
void |
createNote(LatLon location,
java.lang.String text)
Create a new note
|
private void |
dataUpdated() |
private User |
getCurrentUser() |
java.util.List<Note> |
getNotes()
Returns the notes stored in this layer
|
Note |
getSelectedNote()
Returns the currently selected note
|
void |
reOpenNote(Note note,
java.lang.String text)
Reopen a closed note.
|
void |
setSelectedNote(Note note)
Set a selected note.
|
private long newNoteId
private Note selectedNote
public NoteData()
public java.util.List<Note> getNotes()
public Note getSelectedNote()
public void setSelectedNote(Note note)
note
- Selected note. Null indicates no selectionpublic void addNotes(java.util.List<Note> newNotes)
newNotes
- A list of notes to addpublic void createNote(LatLon location, java.lang.String text)
location
- Location of notetext
- Required comment with which to open the notepublic void addCommentToNote(Note note, java.lang.String text)
note
- Note to add comment to. Must already exist in the layertext
- Comment to addpublic void closeNote(Note note, java.lang.String text)
note
- Note to close. Must already exist in the layertext
- Comment to attach to close action, if desiredpublic void reOpenNote(Note note, java.lang.String text)
note
- Note to reopen. Must already exist in the layertext
- Comment to attach to the reopen action, if desiredprivate void dataUpdated()
private User getCurrentUser()