Interface EditorDataModel
- All Known Implementing Classes:
DefaultEditorDataModel
public interface EditorDataModel
Data model for the session editor.
-
Method Summary
Modifier and TypeMethodDescriptionGet project of editor (if any)getRecord
(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
setProject
(Project project) Set project of editorvoid
setSession
(Session session) Set the current sessionvoid
setTranscriber
(Transcriber transcriber) Set the blind mode transcriber orTranscriber.VALIDATOR
if returning to default validation mode
-
Method Details
-
getProject
-
setProject
Set project of editor- Parameters:
project
- null if session is headless
-
getSession
-
setSession
Set the current session -
getRecordCount
int getRecordCount()Get the number of records.- Returns:
- number of records
-
getRecord
-
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
Transcriber.VALIDATOR
if not in blind mode
-
setTranscriber
Set the blind mode transcriber orTranscriber.VALIDATOR
if returning to default validation mode- Parameters:
transcriber
-
-