OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 21 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21 Rev 83
Line 29... Line 29...
29
import javax.swing.JPanel;
29
import javax.swing.JPanel;
30
import javax.swing.JScrollPane;
30
import javax.swing.JScrollPane;
31
import javax.swing.JSeparator;
31
import javax.swing.JSeparator;
32
 
32
 
33
public class FamilleArticlePanel extends JPanel {
33
public class FamilleArticlePanel extends JPanel {
34
    private final SQLElement elt = Configuration.getInstance().getDirectory().getElement("FAMILLE_ARTICLE");
34
    private final SQLElement elt;
35
    private final JCheckBox box = new JCheckBox("Masquer les articles obsoletes");
35
    private final JCheckBox box = new JCheckBox("Masquer les articles obsoletes");
36
    private final ITreeSelection treeSel = new ITreeSelection(elt);
36
    private final ITreeSelection treeSel;
37
 
37
 
38
    public FamilleArticlePanel() {
38
    public FamilleArticlePanel(SQLElement elt) {
39
        super(new GridBagLayout());
39
        super(new GridBagLayout());
-
 
40
 
-
 
41
        this.elt = elt;
-
 
42
        this.treeSel = new ITreeSelection(elt);
40
        final GridBagConstraints c = new DefaultGridBagConstraints();
43
        final GridBagConstraints c = new DefaultGridBagConstraints();
41
        c.fill = GridBagConstraints.BOTH;
44
        c.fill = GridBagConstraints.BOTH;
42
        c.weightx = 1;
45
        c.weightx = 1;
43
        c.weighty = 1;
46
        c.weighty = 1;
44
        c.gridwidth = GridBagConstraints.REMAINDER;
47
        c.gridwidth = GridBagConstraints.REMAINDER;