Examples of KongaTable


Examples of org.jitterbit.ui.widget.table.KongaTable

            String message = "There were some warnings reported when loading the project. The project may not work as intended.";
            return new JLabel(message, AlertIcons.WARNING, SwingConstants.LEADING);
        }

        private KongaTable createTable(Collection<ProjectLoadingIssue> issues) {
            KongaTable table = ComponentFactories.tableFactory().newSortedTable(new IssuesTableModel(issues), 8);
            table.setSortingStatus(IssuesTableModel.MESSAGE, SortOrder.ASCENDING);
            TableColumnModel columns = table.getColumnModel();
            TableColumn col = columns.getColumn(table.indexOfColumn(IssuesTableModel.LEVEL));
            col.setCellRenderer(new LevelRenderer());
            col.setMaxWidth(50);
            col.setMinWidth(30);
            TableStyles.wide().makeOver(table);
            return table;
View Full Code Here

Examples of org.jitterbit.ui.widget.table.KongaTable

        this.table = createTable(loggers);
    }

    private KongaTable createTable(Collection<Logger> loggers) {
        Model model = new Model(loggers);
        KongaTable table = new KongaTable(model);
        int visibleRows = Math.max(model.getRowCount(), 15);
        table.setVisibleRowCount(visibleRows);
        table.setAutoCreateRowSorter(true);
        table.setSortingStatus(Model.NAME, SortOrder.ASCENDING);
        table.setCellEditorFor(Model.LEVEL, new LogLevelSelector().asTableEditor());
        installTableStyle(table);
        return table;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.table.KongaTable

        return newTable(model, -1);
    }

    @Override
    public KongaTable newTable(KongaRowTableModel model, int visibleRows) {
        KongaTable table = new KongaTable(model);
        customizeTable(table, visibleRows);
        return table;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.table.KongaTable

        return table;
    }

    @Override
    public KongaTable newSortedTable(KongaRowTableModel model) {
        KongaTable table = newTable(model);
        table.setAutoCreateRowSorter(true);
        return table;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.table.KongaTable

        return table;
    }
   
    @Override
    public KongaTable newSortedTable(KongaRowTableModel model, int visibleRows) {
        KongaTable table = newTable(model, visibleRows);
        table.setAutoCreateRowSorter(true);
        return table;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.table.KongaTable

        List<ErrorLogEntry> entries = ErrorLog.getLoggedErrors();
        return new ErrorLogTableModel(entries);
    }

    private KongaRowTable createTable() {
        KongaTable raw = createRawTable();
        return new KongaRowTable(raw);
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.table.KongaTable

        KongaTable raw = createRawTable();
        return new KongaRowTable(raw);
    }

    private KongaTable createRawTable() {
        KongaTable table = new KongaTable(model);
        table.setAutoCreateRowSorter(true);
        TableStyles.normal().makeOver(table);
        installRenderer(table);
        table.setTransferHandler(new TableTransferHandler());
        return table;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.table.KongaTable

    private static class TableTransferHandler extends TransferHandler {

        @Override
        protected Transferable createTransferable(JComponent c) {
            KongaTable table = (KongaTable) c;
            String selection = getSelectionAsString(table);
            return new StringSelection(selection);
        }
View Full Code Here

Examples of org.jitterbit.ui.widget.table.KongaTable

    }

    private KongaRowTable createTable() {
        KongaRowTableModel model = KnownServersTableModel.minimalModel(serverManager);
        int visibleRows = 6;
        KongaTable raw = ComponentFactories.tableFactory().newSortedTable(model, visibleRows);
        raw.setSortingStatus(KnownServersTableModel.LATEST_LOGIN, SortOrder.DESCENDING);
        setTableRenderers(raw);
        setTableStyle(raw);
        return new KongaRowTable(raw);
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.table.KongaTable

    }
   
    private KongaTable createTable() {
        int numberOfVisibleRows = Math.max(8, Math.min(11, tableModel.getRowCount()));
        TableFactory factory = ComponentFactories.tableFactory();
        KongaTable table = factory.newSortedTable(tableModel, numberOfVisibleRows);
        table.setSortingStatus(JitterPackTableModel.LOCATION, SortOrder.DESCENDING);
        table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        table.getSelectionModel().addListSelectionListener(new SelectionNotifier());
        setRenderers(table);
        TableStyles.normal().makeOver(table);
        registerTableController(table);
        return table;
    }
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.