Class SpreadSheetFileChooserPanel

    • Constructor Detail

      • SpreadSheetFileChooserPanel

        public SpreadSheetFileChooserPanel()
        Initializes the panel with no file.
      • SpreadSheetFileChooserPanel

        public SpreadSheetFileChooserPanel​(String path)
        Initializes the panel with the given filename/directory.
        Parameters:
        path - the filename/directory to use
      • SpreadSheetFileChooserPanel

        public SpreadSheetFileChooserPanel​(File path)
        Initializes the panel with the given filename/directory.
        Parameters:
        path - the filename/directory to use
    • Method Detail

      • initializeConverters

        protected void initializeConverters​(File path)
        Initializes the converters.
        Parameters:
        path - the path/filename to use
      • doChoose

        protected File doChoose()
        Performs the actual choosing of an object.
        Overrides:
        doChoose in class FileChooserPanel
        Returns:
        the chosen object or null if none chosen
      • getReader

        public SpreadSheetReader getReader()
        Returns the current reader. Only initialized after the user selected a file with the filechooser.
        Returns:
        the reader
      • setReader

        public void setReader​(SpreadSheetReader reader)
        Sets the reader to use.
        Parameters:
        reader - the reader
      • getWriter

        public SpreadSheetWriter getWriter()
        Returns the current writer. Only initialized after the user selected a file with the filechooser.
        Returns:
        the writer
      • setWriter

        public void setWriter​(SpreadSheetWriter writer)
        Sets the writer to use.
        Parameters:
        writer - the writer
      • setCurrentDirectory

        public void setCurrentDirectory​(File value)
        Sets the current directory to use for the file chooser.
        Overrides:
        setCurrentDirectory in class FileChooserPanel
        Parameters:
        value - the current directory
      • getCurrentDirectory

        public File getCurrentDirectory()
        Returns the current directory in use by the file chooser.
        Overrides:
        getCurrentDirectory in class FileChooserPanel
        Returns:
        the current directory
      • setCurrent

        public boolean setCurrent​(File value)
        Sets the current value.
        Overrides:
        setCurrent in class FileChooserPanel
        Parameters:
        value - the value to use, can be null
        Returns:
        true if successfully set