Class JavaScriptBridge

java.lang.Object
ca.phon.app.html.JavaScriptBridge

public class JavaScriptBridge extends Object
JavaScript bridge for common Phon functions.
  • Constructor Details

    • JavaScriptBridge

      public JavaScriptBridge()
    • JavaScriptBridge

      public JavaScriptBridge(Project project)
  • Method Details

    • getCurrentProject

      public static Project getCurrentProject()
      Get current project (from focused window) or null if not found.
    • getProject

      public Project getProject()
    • openSessionAtRecord

      public void openSessionAtRecord(String corpus, String session, int recordIndex)
    • 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 -