Class DefaultEditorDataModel
java.lang.Object
ca.phon.app.session.editor.DefaultEditorDataModel
- All Implemented Interfaces:
EditorDataModel
Default data model for the
SessionEditor-
Constructor Summary
Constructors -
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
-
Constructor Details
-
DefaultEditorDataModel
-
-
Method Details
-
getProject
Description copied from interface:EditorDataModelGet project of editor (if any)- Specified by:
getProjectin interfaceEditorDataModel- Returns:
- project of null if session is headless
-
setProject
Description copied from interface:EditorDataModelSet project of editor- Specified by:
setProjectin interfaceEditorDataModel- Parameters:
project- null if session is headless
-
getSession
Description copied from interface:EditorDataModelGet the session (if any) associated with the editor.- Specified by:
getSessionin interfaceEditorDataModel- Returns:
- session
-
setSession
Description copied from interface:EditorDataModelSet the current session- Specified by:
setSessionin interfaceEditorDataModel
-
getRecordCount
public int getRecordCount()Description copied from interface:EditorDataModelGet the number of records.- Specified by:
getRecordCountin interfaceEditorDataModel- Returns:
- number of records
-
getRecord
Description copied from interface:EditorDataModelGet record at given index.- Specified by:
getRecordin interfaceEditorDataModel- Parameters:
idx-- Returns:
- record
-
getTranscriber
Description copied from interface:EditorDataModelIf the session is in 'blind' mode then this method will return the transcriber that is currently making edits.- Specified by:
getTranscriberin interfaceEditorDataModel- Returns:
- transcriber or
Transcriber.VALIDATORif not in blind mode
-
setTranscriber
Description copied from interface:EditorDataModelSet the blind mode transcriber orTranscriber.VALIDATORif returning to default validation mode- Specified by:
setTranscriberin interfaceEditorDataModel- Parameters:
transcriber-
-