Class FileListWithButtons

    • Field Detail

      • m_ButtonAdd

        protected BaseButton m_ButtonAdd
        the button for adding a file.
      • m_ButtonRemove

        protected BaseButton m_ButtonRemove
        the button for removing file(s).
      • m_ButtonRemoveAll

        protected BaseButton m_ButtonRemoveAll
        the button for removing all files.
      • m_FileChooser

        protected BaseFileChooser m_FileChooser
        the file chooser for selecting files.
      • m_ButtonMoveUp

        protected BaseButton m_ButtonMoveUp
        the button for moving an entry up.
      • m_ButtonMoveDown

        protected BaseButton m_ButtonMoveDown
        the button for moving an entry down.
    • Constructor Detail

      • FileListWithButtons

        public FileListWithButtons()
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
        Overrides:
        initialize in class BasePanel
      • addChoosableFileFilter

        public void addChoosableFileFilter​(FileFilter filter)
        Adds the specified filter to the file dialog.
        Parameters:
        filter - the filter to add
      • removeChoosableFileFilter

        public void removeChoosableFileFilter​(FileFilter filter)
        Removes the specified filter from the file dialog.
        Parameters:
        filter - the filter to remove
      • setDialogTitle

        public void setDialogTitle​(String value)
        Sets the title for the file dialog.
        Parameters:
        value - the title
      • getDialogTitle

        public String getDialogTitle()
        Returns the current title of the file dialog.
        Returns:
        the title
      • setCurrentDirectory

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

        public File getCurrentDirectory()
        Returns the current directory of the file dialog.
        Returns:
        the current directory
      • finishInit

        protected void finishInit()
        finishes the initialization.
        Overrides:
        finishInit in class BasePanel
      • update

        public void update()
        Updates buttons etc.
      • updateButtons

        protected void updateButtons()
        Updates the state of the buttons.
      • addFile

        protected void addFile()
        Adds a file to the list.
      • removeFile

        protected void removeFile​(int[] indices)
        Removes the selected files.
        Parameters:
        indices - the indices to remove
      • removeAllFiles

        protected void removeAllFiles()
        Removes the all files.
      • setFiles

        public void setFiles​(File[] value)
        Sets the files to display.
        Parameters:
        value - the files to display
      • getFiles

        protected File[] getFiles​(int[] indices)
        Returns all the specified files.
        Parameters:
        indices - the indices to retrieve, all if null
        Returns:
        the files
      • getFiles

        public File[] getFiles()
        Returns all currently displayed files.
        Returns:
        all files
      • getSelectedFiles

        public File[] getSelectedFiles()
        Returns all currently selected files.
        Returns:
        the selected files