Package ca.phon.app.session.editor
Class DefaultEditorDataModel
java.lang.Object
ca.phon.app.session.editor.DefaultEditorDataModel
- All Implemented Interfaces:
EditorDataModel
Default data model for the
SessionEditor
-
Constructor Summary
-
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
-
Constructor Details
-
DefaultEditorDataModel
Constructor
-
-
Method Details
-
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
- 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
null
if not in blind mode
-
setTranscriber
Description copied from interface:EditorDataModel
Set the blind mode transcriber- Specified by:
setTranscriber
in interfaceEditorDataModel
-