Class QueryAndReportWizard

All Implemented Interfaces:
IExtendable, ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class QueryAndReportWizard extends NodeWizard
Wizard for executing queries and producing HTML reports.
See Also:
  • Field Details

    • PREVIOUS_QUERY_PARAMETERS_FOLDER

      public static final String PREVIOUS_QUERY_PARAMETERS_FOLDER
    • DEFAULT_QUERY_PARAMETERS_FOLDER

      public static final String DEFAULT_QUERY_PARAMETERS_FOLDER
    • PREVIOUS_REPORT_FOLDER

      public static final String PREVIOUS_REPORT_FOLDER
    • DEFAULT_REPORT_FOLDER

      public static final String DEFAULT_REPORT_FOLDER
    • STOCK_REPORT_HASH_FILE

      public static final String STOCK_REPORT_HASH_FILE
    • DEFAULT_STOCK_REPORT_HASH_FILE

      public static final String DEFAULT_STOCK_REPORT_HASH_FILE
  • Constructor Details

  • Method Details

    • findOpenResultSets

      public static List<Tuple<QueryAndReportWizard,Tuple<String,ResultSet>>> findOpenResultSets(Session session)
      Find all open results sets for the given session.
      Parameters:
      session -
      Returns:
      all open result sets along with query names for given session
    • updateWindowName

      public void updateWindowName()
    • setJMenuBar

      public void setJMenuBar(JMenuBar menuBar)
      Overrides:
      setJMenuBar in class NodeWizard
    • loadNamedQuery

      public void loadNamedQuery(ParamSetType paramSet)
    • close

      public void close()
      Overrides:
      close in class NodeWizard
    • showResults

      public void showResults()
    • resetQueryParameters

      public void resetQueryParameters(PhonActionEvent<Void> pae)
    • newWindow

      public void newWindow(Project project)
    • newWindow

      public void newWindow()
    • onDuplicateQueryWizard

      public void onDuplicateQueryWizard()
    • getQueryHistoryPanel

      public QueryHistoryAndNameToolbar getQueryHistoryPanel()
    • getQueryScript

      public QueryScript getQueryScript()
    • getReportComposer

      public SimpleEditorPanel getReportComposer()
    • getQueryRunners

      public Map<String,QueryRunnerPanel> getQueryRunners()
      Return the map of executed queries.
      Returns:
    • onStopQuery

      public void onStopQuery()
    • executeQuery

      public void executeQuery()
    • executeGraph

      public void executeGraph() throws ca.phon.opgraph.exceptions.ProcessingException
      Description copied from class: NodeWizard
      Executes graph. During execution, data generated may be printed to buffers which are displayed during this stage. If there is a buffer named 'Report Template' at the end of execution, a HTML report is generated using the contents of 'Report Template' which should be a velocity template.
      Overrides:
      executeGraph in class NodeWizard
      Throws:
      ca.phon.opgraph.exceptions.ProcessingException
    • createReportGenerator

      protected NodeWizardReportGenerator createReportGenerator(ReportTree reportTree, String reportTemplate, OutputStream fout)
      Overrides:
      createReportGenerator in class NodeWizard
    • setupContext

      protected void setupContext(ca.phon.opgraph.OpContext ctx)
      Overrides:
      setupContext in class NodeWizard
    • selectResults

      public void selectResults(String queryName)
    • discardAllResults

      public void discardAllResults()
    • discardResults

      public void discardResults()
    • discardResults

      public void discardResults(QueryRunnerPanel panel)
    • isIncludeExcluded

      public boolean isIncludeExcluded()
    • getNoun

      public Tuple<String,String> getNoun()
      Description copied from class: NodeWizard
      Return the noun associated with the type of graph executed in the wizard. The first element of the Tuple is the singleton version, while the second element is the plural. String should be returned as all lower case.
      Overrides:
      getNoun in class NodeWizard
      Returns:
      Tupleinvalid input: '<'String, String>
    • next

      public void next()
      Overrides:
      next in class NodeWizard
    • gotoStep

      public void gotoStep(int stepIdx)
      Overrides:
      gotoStep in class NodeWizard