Class TethysReporter

java.lang.Object
tethys.reporter.TethysReporter

public class TethysReporter extends Object
Set of functions to provide mesage reports on Tethys output. This will work with the existing WarnOnce type pop-up, the primary purpose of the functions here being to collate information, possibly from several document writes, before issuing an overall report.
Author:
dg50
  • Method Details

    • getTethysReporter

      public static final TethysReporter getTethysReporter()
      Get the reporter.
      Returns:
    • clear

      public void clear()
      Clear all reports
    • addReport

      public void addReport(TethysReport report)
      Add a report after attempting to write a document
      Parameters:
      report -
    • getSize

      public int getSize()
      Get the current number of reports
      Returns:
      number of reports
    • getReportString

      public String getReportString()
      Get a summary string of all reported writes using html to separate each ont a separat eline
      Returns:
    • countFails

      public int countFails()
      Get a count of failed document writes
      Returns:
      failure count
    • showReport

      public void showReport(boolean clear)
      Show a report in a popup window
      Parameters:
      clear - clear the list of reports afterwards
    • showReport

      public void showReport(Window window, boolean clear)
      Show a report on a popup window
      Parameters:
      window - parent frame
      clear - clear the list of reports afterwards