OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 74 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 74 Rev 181
Line 13... Line 13...
13
 
13
 
14
    public AbstractSplittedPanel(Extension extension) {
14
    public AbstractSplittedPanel(Extension extension) {
15
        this.extension = extension;
15
        this.extension = extension;
16
        this.setLayout(new GridLayout(1, 1));
16
        this.setLayout(new GridLayout(1, 1));
17
        this.setOpaque(false);
17
        this.setOpaque(false);
18
        leftComponent = createLeftComponent();
18
        this.leftComponent = createLeftComponent();
19
        split = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, leftComponent, new JPanel());
19
        this.split = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, this.leftComponent, new JPanel());
20
        this.add(split);
20
        this.add(this.split);
21
    }
21
    }
22
 
22
 
23
    public void setRightPanel(JComponent p) {
23
    public void setRightPanel(JComponent p) {
24
        this.invalidate();
24
        this.invalidate();
25
        split.setRightComponent(p);
25
        this.split.setRightComponent(p);
26
        this.revalidate();
26
        this.revalidate();
27
        this.repaint();
27
        this.repaint();
28
    }
28
    }
29
 
29
 
30
    public abstract JComponent createLeftComponent();
30
    public abstract JComponent createLeftComponent();