Package org.jitterbit.application.ui.widget

Examples of org.jitterbit.application.ui.widget.TableFactory


        showDisclaimer = true;
    }

    private KongaRowTable createTable(DatabaseObject dbObject) {
        TableModel model = new TableModel(updateKeys, dbObject);
        TableFactory factory = ComponentFactories.tableFactory();
        KongaTable table = factory.newTable(model, 4);
        TableStyles.wide().makeOver(table);
        TableCellRenderer valueRenderer = new ValueRenderer(updateKeys);
        table.setCellRendererAt(2, valueRenderer);
        TableStringEditor valueEditor = new TableStringEditor();
        valueEditor.setClickCountToStart(1);
View Full Code Here


        KongaTable raw = createRawTable(model);
        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());
        EntityTestHistoryTableRenderers.install(raw);
        return raw;
    }
View Full Code Here

        table = createTable(dbObject);
    }

    private KongaRowTable createTable(DatabaseObject dbObject) {
        TableModel model = new TableModel(dbObject);
        TableFactory factory = ComponentFactories.tableFactory();
        KongaTable table = factory.newTable(model, 4);
        TableStyles.normal().makeOver(table);
        return new KongaRowTable(table);
    }
View Full Code Here

    public int getNumberOfDisplayedProperties() {
        return tableModel.getRowCount();
    }

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

        }
        return model;
    }

    private KongaRowTable createTable() {
        TableFactory factory = ComponentFactories.tableFactory();
        KongaTable table = factory.newTable(tableModel);
        TableStyles.normal().makeOver(table);
        table.setVisibleRowCount(Math.min(4, tableModel.getRowCount()));
        table.setShowVerticalLines(true);
        table.setTerminateEditOnFocusLost(true);
        installEditors(table);
View Full Code Here

        selectionListeners.remove(listener);
    }
   
    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);
View Full Code Here

        KongaTable raw = createRawTable(model);
        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);
View Full Code Here

    public ModifiedAtTable() {
        this.table = createTable();
    }

    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

    public void setDefaultAction(SelectionAction a) {
        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);
View Full Code Here

        newModel.addTableModelListener(changeManager);
        return newModel;
    }

    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

TOP

Related Classes of org.jitterbit.application.ui.widget.TableFactory

Copyright © 2018 www.massapicom. 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.