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.intGet 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.voidsetProject(Project project) Set project of editorvoidsetSession(Session session) Set the current sessionvoidsetTranscriber(Transcriber transcriber) Set the blind mode transcriber orTranscriber.VALIDATORif 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.VALIDATORif not in blind mode
-
setTranscriber
Set the blind mode transcriber orTranscriber.VALIDATORif returning to default validation mode- Parameters:
transcriber-
-