Class PerspectiveDialog

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.ListModel

    public class PerspectiveDialog
    extends Dialog
    See Also:
    Serialized Form
    • Field Detail

      • PROPERTY_HTML_TEMPLATE

        public static final java.lang.String PROPERTY_HTML_TEMPLATE
        See Also:
        Constant Field Values
      • writePath

        public final java.lang.String writePath
    • Constructor Detail

      • PerspectiveDialog

        public PerspectiveDialog​(java.util.Map<java.lang.String,​? extends java.lang.Object> attributes,
                                 org.gorpipe.gor.model.FileReader fileResolver,
                                 org.gorpipe.gor.model.QueryEvaluator queryEval,
                                 DialogDescription dialogDescription,
                                 PerspectiveDialogDisplayParams displayParams,
                                 DialogType type,
                                 java.lang.String query,
                                 java.lang.String chartScript,
                                 java.lang.String chartExec,
                                 java.lang.String chartColumns,
                                 ChartDataType chartDF,
                                 java.util.List<Argument> arguments,
                                 java.lang.String htmlTemplate,
                                 java.util.List<? extends java.lang.Object> initialColumns,
                                 java.util.List<Perspective> perspectives,
                                 java.util.List<ColumnGroup> columnGroups,
                                 java.util.List<org.gorpipe.gor.model.ReportCommand> reportCommands,
                                 java.lang.String errorMsgTemplate,
                                 java.lang.String writePath,
                                 java.lang.String longRunningQueryTemplate,
                                 java.lang.String version,
                                 java.lang.String packageVersion,
                                 java.lang.String gitSHA)
                          throws freemarker.template.TemplateException
        Throws:
        freemarker.template.TemplateException
      • PerspectiveDialog

        public PerspectiveDialog​(PerspectiveDialog dlg)
                          throws freemarker.template.TemplateException
        Throws:
        freemarker.template.TemplateException
    • Method Detail

      • getHtmlTemplate

        @Deprecated
        public java.lang.String getHtmlTemplate()
        Deprecated.
        Should define an html template for perspectives instead
      • setHtmlTemplate

        @Deprecated
        public void setHtmlTemplate​(java.lang.String htmlTemplate)
        Deprecated.
        Should define an html template for perspectives instead
      • getInitialColumns

        @Deprecated
        public java.util.Set<java.lang.Object> getInitialColumns()
        Deprecated.
        Should define initial columns for perspectives instead
      • getPerspectives

        public java.util.List<Perspective> getPerspectives()
      • getColumnGroups

        public java.util.List<ColumnGroup> getColumnGroups()
      • getPerspectivesCopies

        public java.util.List<Perspective> getPerspectivesCopies()
        Get copies of perspectives.
        Returns:
        list of perspectives
      • verify

        public boolean verify()
        Verify dialog by getting the error message. If the error message is empty the dialog is valid and the method returns true. If the error message is not empty the dialog is invalid, and the error message is displayed in an error dialog and the method returns false.
        Returns:
        true if dialog is valid, otherwise false
      • checkIfLongRunningQuery

        public boolean checkIfLongRunningQuery()
        Determine whether the query should be run as a long query which implies that the results of the query will not be streamed to the SM user but instead the results are saved to a directory of the user´s choice.
        Returns:
        true if the query is a long running query, otherwise false
      • setReportViewer

        public void setReportViewer​(ReportViewer container)
      • addNewReportToViewer

        public void addNewReportToViewer()
      • getReportCommands

        public java.util.List<org.gorpipe.gor.model.ReportCommand> getReportCommands()
        Get the report command list.
        Returns:
        the report command list
      • getDialogCategory

        public java.lang.String getDialogCategory()
        Get the dialog category the dialog belongs to.
        Returns:
        the dialog category
      • getImageColor

        public java.awt.Color getImageColor()
        Get the dialog image color.
        Returns:
        the dialog image color
      • getFadeInImageColor

        public java.awt.Color getFadeInImageColor()
        Get the dialog fade in image color.
        Returns:
        the dialog fade in image color
      • getArgumentMap

        public java.util.Map<java.lang.String,​Argument> getArgumentMap()
        Get argument map.
        Returns:
        the argument map
      • setArgumentValues

        public void setArgumentValues​(java.util.Map<java.lang.String,​ArgumentContent> argName2Content)
        Set values for arguments.
        Parameters:
        argName2Content - argument name to value map
      • setArgumentValues

        public void setArgumentValues​(java.nio.file.Path path)
                               throws java.io.IOException
        Read argument values from file and set.
        Parameters:
        path - thepath of the file to read argument values from
        Throws:
        java.io.IOException
      • saveArgumentValues

        public void saveArgumentValues​(java.nio.file.Path selFilePath)
      • storingAllowed

        public boolean storingAllowed()
      • getDialogsFilePath

        public java.nio.file.Path getDialogsFilePath()
      • setDialogsFilePath

        public void setDialogsFilePath​(java.nio.file.Path dialogsFilePath)