Class XTCEViewerFileCompressProgressDialog

    • Constructor Detail

      • XTCEViewerFileCompressProgressDialog

        public XTCEViewerFileCompressProgressDialog​(File xmlFile,
                                                    Properties options,
                                                    Frame parent,
                                                    boolean modal)
        Constructor Initializes the dialog containing a JProgressBar to capture the progress while compressing an XTCE database XML file.
        Parameters:
        xmlFile - File containing the XTCE XML document to be compressed.
        options - Properties containing a key=value pair list of options selected for the compression operation.
        parent - Frame object containing the parent window Frame.
        modal - boolean indicating if the parent window should be blocked while this dialog is shown.
    • Method Detail

      • compress

        public void compress()
        Method to start the database compression task.
      • getMessages

        public List<String> getMessages()
        Retrieve the messages that were generated by the database XML file compression task.
        Returns:
        List of Strings containing the messages.
      • getSavedFile

        public File getSavedFile()
        Retrieve the File that was saved after the compression.
        Returns:
        File containing the saved file or null in the event that the file has not yet been saved.
      • propertyChange

        public void propertyChange​(PropertyChangeEvent evt)
        Method invoked by the SwingWorker Task object when the status of the progress property changes.
        Specified by:
        propertyChange in interface PropertyChangeListener
        Parameters:
        evt - PropertyChangeEvent that contains the updated progress to use to update the JProgressBar object.