OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 74 | Blame | Compare with Previous | Last modification | View Log | RSS feed

package org.openconcerto.modules.extensionbuilder.table;

import java.awt.GridLayout;

import javax.swing.JPanel;
import javax.swing.JTabbedPane;

import org.openconcerto.modules.extensionbuilder.Extension;

public class TableMainPanel extends JPanel {

    private TableCreateMainPanel component;

    public TableMainPanel(Extension extension) {
        this.setLayout(new GridLayout(1, 1));
        JTabbedPane tab = new JTabbedPane();
        this.component = new TableCreateMainPanel(extension);
        tab.addTab("Tables créées par l'extension", this.component);
        tab.addTab("Tables modifiées", new TableModifyMainPanel(extension));
        this.add(tab);
    }

    public void select(TableDescritor tableDescriptor) {
        this.component.select(tableDescriptor);

    }

}