Examples of KongaTable


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

            }
        });
    }

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

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

        return new KongaRowTable(raw);
    }

    private KongaTable createRawTable(EntityTestHistoryTableModel model) {
        TableFactory factory = ComponentFactories.tableFactory();
        KongaTable raw = factory.newSortedTable(model, 10);
        raw.setComparator(model.getEntityColumnIndex(), new EntityTypeAndNameSorter());
        raw.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        EntityTestHistoryTableRenderers.install(raw);
        TableStyles.normal().makeOver(raw);
        installTableController(raw);
        return raw;
    }
View Full Code Here

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

        table.setDefaultAction(a);
    }

    private KongaRowTable createTable() {
        TableFactory factory = ComponentFactories.tableFactory();
        KongaTable table = factory.newSortedTable(new Model(), 15);
        table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        table.setCellRendererFor(Model.NAME, new IntegrationEntityTableCellRenderer());
        DateRenderer dateRenderer = new DateRenderer();
        table.setCellRendererFor(Model.CREATED, dateRenderer);
        table.setCellRendererFor(Model.MODIFIED, dateRenderer);
        KongaRowTable rowTable = new KongaRowTable(table);
        rowTable.addSelectionListener(new SelectionListener() {

            @Override
            public void selectionChanged(SelectionChangedEvent evt) {
View Full Code Here

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

        table.setDefaultAction(viewDetailsAction);
        deletedMappings = Lists.newArrayList();
    }

    private KongaRowTable createTable(KongaRowTableModel model) {
        KongaTable raw = ComponentFactories.tableFactory().newSortedTable(model, 8);
        installController(raw);
        setTableStyle(raw);
        return new KongaRowTable(raw);
    }
View Full Code Here

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

        model = new Model();
        table = createTable();
    }

    private KongaRowTable createTable() {
        KongaTable table = ComponentFactories.tableFactory().newTable(model, 10);
        table.setTerminateEditOnFocusLost(true);
        installEditors(table);
        TableStyles.wide().makeOver(table);
        return new KongaRowTable(table);
    }
View Full Code Here

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

        opaque = true;
    }

    private KongaRowTable createTable(DatabaseObject object) {
        Model model = new Model(object, selectable);
        KongaTable table = new KongaTable(model);
        TableStyles.normal().makeOver(table);
        int visibleRows = Intervals.valueWithin(model.getRowCount(), 8, 20);
        table.setVisibleRowCount(visibleRows);
        table.setRendererPreparer(new TableRendererPreparer() {

            @Override
            public Component prepare(JTable table, TableCellRenderer renderer, Component fromDefaultPreparation, int row,
                            int column) {
                TableColumnMetaData md = ((Model) table.getModel()).getColumnDescriptor(column);
                boolean enabled = (md != Model.NULLABLE) && (md != Model.PRIMARY_KEY);
                fromDefaultPreparation.setEnabled(enabled);
                return fromDefaultPreparation;
            }
View Full Code Here

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

    }

    private KongaTable createTable() {
        TableFactory factory = ComponentFactories.tableFactory();
        Model model = new Model();
        KongaTable table = factory.newSortedTable(model);
        table.setCellRendererAt(0, new IntegrationEntityTableCellRenderer());
        table.setCellRendererAt(1, new ListDecorTableRenderer());
        installSorter(table);
        return table;
    }
View Full Code Here

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

    public void requestFocus() {
        table.requestFocus();
    }
   
    private KongaRowTable createTable(ListenerReport report) {
        KongaTable table = new KongaTable(new Model(report));
        table.setAutoCreateRowSorter(true);
        TableStyles.normal().makeOver(table);
        return new KongaRowTable(table);
    }
View Full Code Here

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

    }

    private KongaRowTable createTable(JndiContextTableModel model) {
        TableFactory factory = ComponentFactories.tableFactory();
        int visibleRows = model.getRowCount();
        KongaTable raw = factory.newTable(model, visibleRows);
        customizeTable(raw);
        return new KongaRowTable(raw);
    }
View Full Code Here

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

    /**
     * Sets the number of rows to show in the table.
     */
    public void setVisibleRows(int rows) {
        KongaTable table = this.table.getAdaptee();
        Dimension dim = table.getPreferredScrollableViewportSize();
        dim.height = table.getRowHeight() * rows;
        table.setPreferredScrollableViewportSize(dim);
    }
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.