OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev Author Line No. Line
74 ilm 1
package org.openconcerto.modules.extensionbuilder.table;
2
 
3
import java.awt.GridLayout;
4
 
5
import javax.swing.JPanel;
6
import javax.swing.JTabbedPane;
7
 
8
import org.openconcerto.modules.extensionbuilder.Extension;
9
 
10
public class TableMainPanel extends JPanel {
11
 
12
    private TableCreateMainPanel component;
13
 
14
    public TableMainPanel(Extension extension) {
15
        this.setLayout(new GridLayout(1, 1));
16
        JTabbedPane tab = new JTabbedPane();
181 ilm 17
        this.component = new TableCreateMainPanel(extension);
18
        tab.addTab("Tables créées par l'extension", this.component);
74 ilm 19
        tab.addTab("Tables modifiées", new TableModifyMainPanel(extension));
20
        this.add(tab);
21
    }
22
 
23
    public void select(TableDescritor tableDescriptor) {
181 ilm 24
        this.component.select(tableDescriptor);
74 ilm 25
 
26
    }
27
 
28
}