Class DefaultEditorDataModel
java.lang.Object
ca.phon.app.session.editor.DefaultEditorDataModel
-
Constructor Summary
Constructors -
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
-
Constructor Details
-
DefaultEditorDataModel
-
-
Method Details
-
getProject
Description copied from interface:EditorDataModel
Get project of editor (if any)- Specified by:
getProject
in interfaceEditorDataModel
- Returns:
- project of null if session is headless
-
setProject
Description copied from interface:EditorDataModel
Set project of editor- Specified by:
setProject
in interfaceEditorDataModel
- Parameters:
project
- null if session is headless
-
getSession
Description copied from interface:EditorDataModel
Get the session (if any) associated with the editor.- Specified by:
getSession
in interfaceEditorDataModel
- Returns:
- session
-
setSession
Description copied from interface:EditorDataModel
Set the current session- Specified by:
setSession
in interfaceEditorDataModel
-
getRecordCount
public int getRecordCount()Description copied from interface:EditorDataModel
Get the number of records.- Specified by:
getRecordCount
in interfaceEditorDataModel
- Returns:
- number of records
-
getRecord
Description copied from interface:EditorDataModel
Get record at given index.- Specified by:
getRecord
in interfaceEditorDataModel
- Parameters:
idx
-- Returns:
- record
-
getTranscriber
Description copied from interface:EditorDataModel
If the session is in 'blind' mode then this method will return the transcriber that is currently making edits.- Specified by:
getTranscriber
in interfaceEditorDataModel
- Returns:
- transcriber or
Transcriber.VALIDATOR
if not in blind mode
-
setTranscriber
Description copied from interface:EditorDataModel
Set the blind mode transcriber orTranscriber.VALIDATOR
if returning to default validation mode- Specified by:
setTranscriber
in interfaceEditorDataModel
- Parameters:
transcriber
-
-