OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
74 ilm 1
package org.openconcerto.modules.extensionbuilder.translation.field;
2
 
3
import javax.swing.JComponent;
4
 
5
import org.openconcerto.modules.extensionbuilder.AbstractSplittedPanel;
6
import org.openconcerto.modules.extensionbuilder.Extension;
7
import org.openconcerto.modules.extensionbuilder.table.TableDescritor;
8
 
9
public class TableTranslationPanel extends AbstractSplittedPanel {
10
 
11
    public TableTranslationPanel(Extension extension) {
12
        super(extension);
13
        split.setDividerLocation(250);
14
    }
15
 
16
    public void setRightPanel(JComponent p) {
17
        super.setRightPanel(p);
18
        split.setDividerLocation(250);
19
    }
20
 
21
    @Override
22
    public JComponent createLeftComponent() {
23
        return new AllTableListPanel(extension, this);
24
    }
25
 
26
    public void select(TableDescritor tableDescriptor) {
27
        ((AllTableListPanel) leftComponent).selectItem(tableDescriptor);
28
    }
29
}