Package ca.phon.app.session.editor
Interface EditorDataModel
- All Known Implementing Classes:
DefaultEditorDataModel
public interface EditorDataModel
Data model for the session editor.
-
Method Summary
Modifier and TypeMethodDescriptiongetRecord
(int idx) Get record at given index.int
Get the number of records.Get the session (if any) associated with the editor.If the session is in 'blind' mode then this method will return the transcriber that is currently making edits.void
setSession
(Session session) Set the current sessionvoid
setTranscriber
(Transcriber transcriber) Set the blind mode transcriber
-
Method Details
-
getSession
Session getSession()Get the session (if any) associated with the editor.- Returns:
- session
-
setSession
Set the current session -
getRecordCount
int getRecordCount()Get the number of records.- Returns:
- number of records
-
getRecord
Get record at given index.- Parameters:
idx
-- Returns:
- record
-
getTranscriber
Transcriber getTranscriber()If the session is in 'blind' mode then this method will return the transcriber that is currently making edits.- Returns:
- transcriber or
null
if not in blind mode
-
setTranscriber
Set the blind mode transcriber- Parameters:
transcriber
-
-