Package ca.phon.app.html
Class JavaScriptBridge
java.lang.Object
ca.phon.app.html.JavaScriptBridge
JavaScript bridge for common Phon functions.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Project
Get current project (from focused window) ornull
if not found.void
openSessionAtRecord
(String corpus, String session, int recordIndex) void
openSessionAtRecordWithResultValues
(String corpus, String session, int recordIndex, Object jsRvs) Open session with result values specified in the given javascript array.
-
Constructor Details
-
JavaScriptBridge
public JavaScriptBridge() -
JavaScriptBridge
-
-
Method Details
-
getCurrentProject
Get current project (from focused window) ornull
if not found. -
getProject
-
openSessionAtRecord
-
openSessionAtRecordWithResultValues
public void openSessionAtRecordWithResultValues(String corpus, String session, int recordIndex, Object jsRvs) Open session with result values specified in the given javascript array. The array should be an array of values with order: 'tier name', group index, 'range'e.g., [['IPA Target', 0, '(0..2)'],[...
- Parameters:
corpus
-session
-recordIndex
-jsRvs
-
-