com.highqsoft.fwk.dialog

Class FwkFileDialogPaneValue

    • Constructor Detail

      • FwkFileDialogPaneValue

        public FwkFileDialogPaneValue()
      • FwkFileDialogPaneValue

        public FwkFileDialogPaneValue(java.lang.String ident)
        Constructors.
        Parameters:
        ident - the ident string of this value.
      • FwkFileDialogPaneValue

        public FwkFileDialogPaneValue(java.io.File file)
        Constructors.
        Parameters:
        file - the initial value.
      • FwkFileDialogPaneValue

        public FwkFileDialogPaneValue(java.lang.String ident,
                              java.io.File file)
        Constructors.
        Parameters:
        ident - the ident string of this value.
        file - the initial value.
    • Method Detail

      • getCreateDirectory

        public boolean getCreateDirectory()
        Retrieve the flag that indicates the creation of a directory.
        Parameters:
        if - true a directory should be created.
      • setCreateDirectory

        public void setCreateDirectory(boolean flag)
        Set the flag that indicates the creation of a directory.
        Parameters:
        flag - if true a directory should be created.
      • getCreateFile

        public boolean getCreateFile()
        Retrieve the flag that indicates the creation of a file.
        Parameters:
        if - true a file should be created.
      • setCreateFile

        public void setCreateFile(boolean flag)
        Set the flag that indicates the creation of a file.
        Parameters:
        flag - if true a file should be created.
      • getReadDirectory

        public boolean getReadDirectory()
        Retrieve the flag that indicates the reading of a directory.
        Parameters:
        if - true a directory should be read.
      • setReadDirectory

        public void setReadDirectory(boolean flag)
        Set the flag that indicates the reading of a directory.
        Parameters:
        flag - if true a directory should be read.
      • getReadFile

        public boolean getReadFile()
        Retrieve the flag that indicates the read of a file.
        Parameters:
        if - true a file should be read.
      • setReadFile

        public void setReadFile(boolean flag)
        Set the flag that indicates the reading of a file.
        Parameters:
        flag - if true a file should be read.
      • getPath

        public java.lang.String getPath()
        Get the current chooser directory as String.
        Returns:
        The current user directory.
      • getPathFile

        public java.io.File getPathFile()
        Get the current chooser directory as String.
        Returns:
        The current user directory.
      • getFilenames

        public java.lang.String[] getFilenames()
        Get the name of the selected file.
        Returns:
        the selected name.
      • getFileFilter

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

        public void setPath(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(FwkFileFilter fileFilter)
        Set the file filter.
        Parameters:
        fileFilter - The file filter.
      • setFilename

        public void setFilename(java.lang.String selectedFile)
        Set the selected file.
        Parameters:
        selected - The selected file filter.
      • setFilenames

        public void setFilenames(java.lang.String[] selectedFile)
        Set the selected file.
        Parameters:
        selected - The selected file filter.
      • getFiles

        public java.io.File[] getFiles()
        Get the file object of this value.
        Returns:
        the file object of this value.
      • toString

        public java.lang.String toString()
        The string presentation of teh object.
        Overrides:
        toString in class FwkDialogPaneValue
        Returns:
        the presentation string.
      • clone

        public java.lang.Object clone()
        The clone method.
        Overrides:
        clone in class java.util.AbstractMap
        Returns:
        the clone object.
      • main

        public static void main(java.lang.String[] args)
        The Main body to test the class.