Class SelectFilePage

    • Constructor Detail

      • SelectFilePage

        public SelectFilePage()
        Default constructor.
      • SelectFilePage

        public SelectFilePage​(String pageName)
        Initializes the page with the given page name.
        Parameters:
        pageName - the page name to use
    • Method Detail

      • setAutoAppendExtension

        public void setAutoAppendExtension​(boolean value)
        Sets whether to automatically append the currently selected file extension or the default one (if All-Filter is used).
        Parameters:
        value - if true, then the file extension will be added automatically
      • getAutoAppendExtension

        public boolean getAutoAppendExtension()
        Returns whether to automatically append the currently selected file extension or the default one (if All-Filter is used).
        Returns:
        true if the file extension will be added automatically
      • setDefaultExtension

        public void setDefaultExtension​(String value)
        Sets the default extension. Is used if m_AutoAppendExtension is true and the All-Filter is selected.
        Parameters:
        value - the extension (without dot), use null to unset
      • getDefaultExtension

        public String getDefaultExtension()
        Returns the default extension. Is used if m_AutoAppendExtension is true and the All-Filter is selected.
        Returns:
        the extension, can be null
      • setCurrentDirectory

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

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

        public boolean setCurrent​(File value)
        Sets the current file.
        Parameters:
        value - the value to use, can be null
        Returns:
        true if successfully set
      • getCurrent

        public File getCurrent()
        Returns the current value.
        Returns:
        the current value
      • addChoosableFileFilter

        public void addChoosableFileFilter​(FileFilter value)
        Adds the given file filter to the filechooser.
        Parameters:
        value - the file filter to add
      • setFileFilter

        public void setFileFilter​(FileFilter value)
        Sets the active file filter.
        Parameters:
        value - the file filter to select
      • getFileFilter

        public FileFilter getFileFilter()
        Returns the active file filter.
        Returns:
        the current file filter
      • setUseSaveDialog

        public void setUseSaveDialog​(boolean value)
        Sets whether to use the save or open dialog.
        Parameters:
        value - if true the save dialog is used
      • getUseSaveDialog

        public boolean getUseSaveDialog()
        Returns whether the save or open dialog is used.
        Returns:
        true if the save dialog is used
      • setProperties

        public void setProperties​(Properties value)
        Sets the content of the page (ie parameters) as properties.
        Specified by:
        setProperties in class AbstractWizardPage
        Parameters:
        value - the parameters as properties
      • getProperties

        public Properties getProperties()
        Returns the content of the page (ie parameters) as properties.
        Specified by:
        getProperties in class AbstractWizardPage
        Returns:
        the parameters as properties