Examples of FileTable


Examples of com.mucommander.ui.main.table.FileTable

    /**
     * Marks all files whose extension matches the current selection.
     */
    @Override
    public void performAction() {
        FileTable      fileTable;
        FileTableModel tableModel;
        FilenameFilter filter;
        int            rowCount;
        boolean        mark;

        // Initialization. Aborts if there is no selected file.
        fileTable  = mainFrame.getActiveTable();
        if((filter = getFilter(fileTable.getSelectedFile(false, true))) == null)
            return;
        tableModel = fileTable.getFileTableModel();
        rowCount   = tableModel.getRowCount();
        mark       = !tableModel.isRowMarked(fileTable.getSelectedRow());

        // Goes through all files in the active table, marking all that match 'filter'.
        for(int i = tableModel.getFirstMarkableRow(); i < rowCount; i++)
            if(filter.accept(tableModel.getCachedFileAtRow(i)))
                tableModel.setRowMarked(i, mark);
        fileTable.repaint();

        // Notify registered listeners that currently marked files have changed on the FileTable
        fileTable.fireMarkedFilesChangedEvent();
    }
View Full Code Here

Examples of com.mucommander.ui.main.table.FileTable

        super(mainFrame, properties);
    }

    @Override
    public void performAction() {
        FileTable activeTable = mainFrame.getActiveTable();
        boolean showFoldersFirst = !activeTable.getSortInfo().getFoldersFirst();
        activeTable.setFoldersFirst(showFoldersFirst);
        MuConfigurations.getPreferences().setVariable(MuPreference.SHOW_FOLDERS_FIRST, showFoldersFirst);
    }
View Full Code Here

Examples of com.mucommander.ui.main.table.FileTable

        super(mainFrame, properties);
    }

    @Override
    public void performAction() {
        FileTable fileTable = mainFrame.getActiveTable();
        fileTable.selectRow(fileTable.getFileTableModel().getRowCount()-1);
    }
View Full Code Here

Examples of com.mucommander.ui.main.table.FileTable

    // MuAction implementation //
    /////////////////////////////

    @Override
    public void performAction() {
        FileTable fileTable = mainFrame.getActiveTable();

        int currentRow = fileTable.getSelectedRow();
        int endRow = Math.max(0, currentRow-getRowDecrement()+1);

        fileTable.setRangeMarked(currentRow, endRow, !fileTable.getFileTableModel().isRowMarked(currentRow));
        fileTable.selectRow(Math.max(0, endRow-1));
    }
View Full Code Here

Examples of com.mucommander.ui.main.table.FileTable

    // MuAction implementation //
    /////////////////////////////

    @Override
    public void performAction() {
        FileTable fileTable = mainFrame.getActiveTable();

        int currentRow = fileTable.getSelectedRow();
        int lastRow = fileTable.getRowCount()-1;
        int endRow = Math.min(lastRow, currentRow+getRowIncrement()-1);

        fileTable.setRangeMarked(currentRow, endRow, !fileTable.getFileTableModel().isRowMarked(currentRow));
        fileTable.selectRow(Math.min(lastRow, endRow+1));
    }
View Full Code Here

Examples of pdfdb.data.filetable.FileTable

    /** Initializes the GUI components.
     * @throws java.sql.SQLException If an error occurs. */
    private void initComponents() throws SQLException
    {
        summaryTable = new FileTable("Summary", isConnected());
        JComponent summaryContainer = getContainerForTable(summaryTable);
        JButton searchBtn = new DarkButton("Search");
        JPanel topPanel = new DarkPanel();
        JPanel searchPanel = new JPanel();
        String cmd = String.valueOf(EventController.OP_SEARCH);
View Full Code Here

Examples of pdfdb.data.filetable.FileTable

            JComponent comp = (JComponent) tabbedPane.getComponentAt(model.
                    getSelectedIndex());

            if (!(oldTable == summaryTable && model.getSelectedIndex() == 0))
            {
                FileTable newTable = getTableForTab(comp);

                if (oldTable != null)
                {
                    oldTable.getSelectionModel().removeListSelectionListener(
                            this);
                }
                newTable.getSelectionModel().addListSelectionListener(this);
                oldTable = newTable;
            }
        }
    }
View Full Code Here

Examples of pdfdb.data.filetable.FileTable

     * @throws java.sql.SQLException If an error occurs. */
    private JComponent createSearchComponent(String keywords) throws
            SQLException
    {
        Search searcher = SearchProvider.getSearch(SearchType.BASIC);
        FileTable table = new FileTable("Search", searcher, keywords,
                isConnected());
        return getContainerForTable(table);
    }
View Full Code Here

Examples of pdfdb.data.filetable.FileTable

        if (index >= tabbedPane.getComponentCount() || index < 0)
        {
            throw new IllegalArgumentException();
        }
        Component component = tabbedPane.getComponentAt(index);
        FileTable table = getTableForTab(component);
        if (table != null)
        {
            table.shutdown();
        }
        tabbedPane.remove(index);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.