com.highqsoft.fwk.dialog

Class FwkFileChooserDialogPaneValue

    • Field Detail

      • CURRENT_DIRECTORY

        public static final java.lang.String CURRENT_DIRECTORY
        See Also:
        Constant Field Values
      • NEW_BUTTON_VISIBILITY

        public static final java.lang.String NEW_BUTTON_VISIBILITY
        See Also:
        Constant Field Values
      • CHOOSABLE_FILEFILTERS

        public static final java.lang.String CHOOSABLE_FILEFILTERS
        See Also:
        Constant Field Values
      • currentDirectory

        protected java.lang.String currentDirectory
      • fileFilterIndex

        protected int fileFilterIndex
      • selectedFile

        protected java.lang.String selectedFile
      • newButtonVisibility

        protected java.lang.String newButtonVisibility
    • Constructor Detail

      • FwkFileChooserDialogPaneValue

        public FwkFileChooserDialogPaneValue()
    • Method Detail

      • getCurrentDirectory

        public java.lang.String getCurrentDirectory()
        Get the current chooser directory.
        Returns:
        The current user directory.
      • addChoosableFileFilter

        public void addChoosableFileFilter(FwkFileFilterInterface filter)
        Add a choosable file filter.
        Parameters:
        filter - the new filter.
      • getChoosableFileFilters

        public FwkFileFilterInterface[] getChoosableFileFilters()
        Get the choosable file filters.
        Returns:
        the choosable file filters.
      • setChoosableFileFilters

        public void setChoosableFileFilters(FwkFileFilterInterface[] newFilters)
        Get the choosable file filters.
      • getFileFilter

        public FwkFileFilterInterface getFileFilter()
        Get the file filter of this chooser.
        Returns:
        The file filter of this chooser.
      • getNewButtonVisibility

        public java.lang.String getNewButtonVisibility()
        Get the new-button visibility of this chooser.
        Returns:
        The new-button visibility of this chooser.
      • getSelectedPath

        public java.lang.String getSelectedPath()
        Get the selected file inclusive path of this chooser.
        Returns:
        The selected path.
      • getSelectedFile

        public java.lang.String getSelectedFile()
        Get the selected file of this chooser.
        Returns:
        The selected file of this chooser.
      • setNewButtonVisibility

        public void setNewButtonVisibility(java.lang.String visibility)
        Set the new-button visible/invisible. Use the constants VISIBLE and INVISIBLE of this class.
        Parameters:
        visibility - The visibility.
      • setCurrentDirectory

        public void setCurrentDirectory(java.lang.String dirName)
        Set the current chooser directory. If the name is null the current directory will be set to the users home directory. An empty string is interpreted as current working directory.
        Parameters:
        dirName - The directory name.
      • setFileFilter

        public void setFileFilter(FwkFileFilterInterface fileFilter)
        Set the file filter.
        Parameters:
        fileFilter - The file filter.
      • setSelectedFile

        public void setSelectedFile(java.lang.String selectedFile)
        Set the selected file.
        Parameters:
        selectedFile - The selected file.
      • setSelectedPath

        public void setSelectedPath(java.lang.String selected)
        Set the selected path.
        Parameters:
        selected - The selected path.