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.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);
181 ilm 13
        this.split.setDividerLocation(250);
74 ilm 14
    }
15
 
16
    public void setRightPanel(JComponent p) {
17
        super.setRightPanel(p);
181 ilm 18
        this.split.setDividerLocation(250);
74 ilm 19
    }
20
 
21
    @Override
22
    public JComponent createLeftComponent() {
181 ilm 23
        return new AllTableListPanel(this.extension, this);
74 ilm 24
    }
25
 
26
    public void select(TableDescritor tableDescriptor) {
181 ilm 27
        ((AllTableListPanel) this.leftComponent).selectItem(tableDescriptor);
74 ilm 28
    }
29
}