Class FileCommanderPanel

    • Field Detail

      • m_PanelButtons

        protected JPanel m_PanelButtons
        the panel with the buttons.
      • m_ButtonReload

        protected BaseFlatButton m_ButtonReload
        the button for reloading the files.
      • m_ButtonRename

        protected BaseFlatButton m_ButtonRename
        the button for renaming.
      • m_ButtonView

        protected BaseFlatButton m_ButtonView
        the button for viewing the file.
      • m_ButtonCopy

        protected BaseFlatButton m_ButtonCopy
        the button for copying the file.
      • m_ButtonMove

        protected BaseFlatButton m_ButtonMove
        the button for moving.
      • m_ButtonMkDir

        protected BaseFlatButton m_ButtonMkDir
        the button for creating a directory.
      • m_ButtonDelete

        protected BaseFlatButton m_ButtonDelete
        the button for deleting.
      • m_ButtonAction

        protected BaseSplitButton m_ButtonAction
        the action button.
      • m_ButtonStop

        protected BaseFlatButton m_ButtonStop
        the button for stopping an operation.
      • m_ButtonQuit

        protected BaseFlatButton m_ButtonQuit
        the button for quitting.
      • m_StatusBar

        protected BaseStatusBar m_StatusBar
        the statusbar.
      • m_MenuBar

        protected JMenuBar m_MenuBar
        the menubar.
      • m_MenuItemLeftShowHidden

        protected JMenuItem m_MenuItemLeftShowHidden
        whether left panel shows hidden files.
      • m_MenuItemRightShowHidden

        protected JMenuItem m_MenuItemRightShowHidden
        whether right panel shows hidden files.
      • m_Worker

        protected SwingWorker m_Worker
        the worker thread.
      • m_FileOperations

        protected FileOperations m_FileOperations
        the current file operations.
      • m_Stopped

        protected boolean m_Stopped
        whether the operation was stopped by the user.
    • Constructor Detail

      • FileCommanderPanel

        public FileCommanderPanel()
    • Method Detail

      • initialize

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

        protected void initGUI()
        Initializes the widgets.
        Overrides:
        initGUI in class BasePanel
      • finishInit

        protected void finishInit()
        Finishes the initialization.
        Overrides:
        finishInit in class BasePanel
      • setActive

        public void setActive​(FileCommanderDirectoryPanel active)
        Updates the active state of the panel.
        Parameters:
        active - the new active panel
      • updateButtons

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

        public JMenuBar getMenuBar()
        Creates a menu bar (singleton per panel object). Can be used in frames.
        Specified by:
        getMenuBar in interface MenuBarProvider
        Returns:
        the menu bar
      • isBusy

        public boolean isBusy()
        Returns whether we're currently busy.
        Returns:
        true if busy
      • setDirectory

        public void setDirectory​(String dir,
                                 boolean left)
        Sets the current directory.
        Parameters:
        dir - the directory to use
        left - if true the left panel gets updated
      • getDirectory

        public String getDirectory​(boolean left)
        Returns the current directory.
        Parameters:
        left - if true the directory of the left panel is retrieved
        Returns:
        the current directory
      • reload

        protected void reload()
        Reloads the files.
      • view

        protected void view()
        Views the selected file.
      • copy

        public void copy()
        Copies the selected files to the other directory.
      • rename

        public void rename()
        Renames a file.
      • move

        public void move()
        Moves multiple selected files to the other directory.
      • mkdir

        public void mkdir()
        Creates a new directory.
      • delete

        public void delete()
        Deletes the selected files.
      • quit

        public void quit()
        Closes the commander.
      • setFilter

        protected void setFilter​(boolean left)
        Prompts the user to enter a regular expression as filter.
        Parameters:
        left - whether to apply it to the left or right panel
      • showStatus

        public void showStatus​(boolean left,
                               String msg)
        Displays a message.
        Specified by:
        showStatus in interface StatusMessageHandlerExt
        Parameters:
        left - whether to show the message on the left or right
        msg - the message to display
      • updateFileOperations

        protected void updateFileOperations()
        Updates the file operations object.
      • chooserChanged

        protected void chooserChanged​(FileCommanderDirectoryPanel source)
        Gets called when a panel's chooser changes.
        Parameters:
        source - the panel that triggered the event
      • stopExecution

        public void stopExecution()
        Stops the execution.
        Specified by:
        stopExecution in interface Stoppable
      • isStopped

        public boolean isStopped()
        Whether the execution has been stopped.
        Specified by:
        isStopped in interface StoppableWithFeedback
        Returns:
        true if stopped