OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 30 | Rev 140 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30 Rev 87
Line 26... Line 26...
26
        s.add("ID_ADRESSE");
26
        s.add("ID_ADRESSE");
27
        return s;
27
        return s;
28
    }
28
    }
29
 
29
 
30
    @Override
30
    @Override
31
    public JComponent getEditor(String id) {
31
    public JComponent createEditor(String id) {
32
        if (id.equals("INFORMATION")) {
32
        if (id.equals("INFORMATION")) {
33
            final JTextArea jTextArea = new JTextArea();
33
            final JTextArea jTextArea = new JTextArea();
34
            jTextArea.setFont(new JLabel().getFont());
34
            jTextArea.setFont(new JLabel().getFont());
35
            return new JScrollPane(jTextArea);
35
            return new JScrollPane(jTextArea);
36
        } else if (id.equals("INDUSTRY") || id.equals("STATUS") || id.equals("RATING") || id.equals("SOURCE")) {
36
        } else if (id.equals("INDUSTRY") || id.equals("STATUS") || id.equals("RATING") || id.equals("SOURCE")) {
37
            return new SQLSearchableTextCombo(ComboLockedMode.UNLOCKED, 1, 20, false);
37
            return new SQLSearchableTextCombo(ComboLockedMode.UNLOCKED, 1, 20, false);
38
        } else if (id.equals("DATE")) {
38
        } else if (id.equals("DATE")) {
39
            return new JDate(true);
39
            return new JDate(true);
40
        }
40
        }
41
        return super.getEditor(id);
41
        return super.createEditor(id);
42
    }
42
    }
43
}
43
}