Class KscReportEditor

  • All Implemented Interfaces:
    java.io.Serializable

    public class KscReportEditor
    extends java.lang.Object
    implements java.io.Serializable

    KscReportEditor class.

    Version:
    $Id: $
    Author:
    ranger
    See Also:
    Serialized Form
    • Constructor Detail

      • KscReportEditor

        public KscReportEditor()
    • Method Detail

      • getWorkingReport

        public Report getWorkingReport()
        Returns the working report object
        Returns:
        a Report object.
      • getWorkingGraph

        public Graph getWorkingGraph()
        Returns the working graph object
        Returns:
        a Graph object.
      • getWorkingGraphIndex

        public int getWorkingGraphIndex()
        Returns the working graph index
        Returns:
        a int.
      • loadWorkingGraph

        public void loadWorkingGraph​(int index)
        Loads the indexed graph from the working report into the working graph object or creates a new one if the object does not exist
        Parameters:
        index - a int.
      • unloadWorkingGraph

        public void unloadWorkingGraph​(int requested_graphnum)
        Unloads the working graph into the working report list at the requested graph number. If the graph was modified from an existing graph, then the old one is replaced. A new blank working graph is then created
        Parameters:
        requested_graphnum - a int.
      • loadWorkingReport

        public void loadWorkingReport​(Report report)
        Loads the source report into the working report object as a new report.
        Parameters:
        report - a Report object.
      • loadWorkingReportDuplicate

        public void loadWorkingReportDuplicate​(KSC_PerformanceReportFactory factory,
                                               int index)
        Loads the indexed report into the working report object as a duplicate report. The ID in the loaded report will be removed so a new ID will be created when the duplicated report is saved.
        Parameters:
        factory - a KSC_PerformanceReportFactory object.
        index - a int.
      • loadNewWorkingReport

        public void loadNewWorkingReport()
        Loads a newly created report into the working report object.
      • unloadWorkingReport

        public void unloadWorkingReport​(KSC_PerformanceReportFactory factory)
        Unloads the working report into the indexed report list at the point identified by working_index (this should have been set when the working report was loaded), then create a new blank working report
        Parameters:
        factory - a KSC_PerformanceReportFactory object.
      • getFromSession

        public static KscReportEditor getFromSession​(javax.servlet.http.HttpSession session,
                                                     boolean required)

        getFromSession

        Parameters:
        session - a HttpSession object.
        required - a boolean.
        Returns:
        a KscReportEditor object.
      • unloadFromSession

        public static void unloadFromSession​(javax.servlet.http.HttpSession session)