OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 174 Rev 177
Line 22... Line 22...
22
import java.awt.BorderLayout;
22
import java.awt.BorderLayout;
23
import java.awt.Component;
23
import java.awt.Component;
24
import java.awt.Container;
24
import java.awt.Container;
25
import java.awt.Dimension;
25
import java.awt.Dimension;
26
import java.awt.FlowLayout;
26
import java.awt.FlowLayout;
-
 
27
import java.awt.Font;
27
import java.awt.Frame;
28
import java.awt.Frame;
28
import java.awt.event.ActionEvent;
29
import java.awt.event.ActionEvent;
29
import java.awt.event.ActionListener;
30
import java.awt.event.ActionListener;
30
import java.util.ArrayList;
31
import java.util.ArrayList;
31
import java.util.Collections;
32
import java.util.Collections;
Line 40... Line 41...
40
import javax.swing.JList;
41
import javax.swing.JList;
41
import javax.swing.JPanel;
42
import javax.swing.JPanel;
42
import javax.swing.ListSelectionModel;
43
import javax.swing.ListSelectionModel;
43
import javax.swing.SwingUtilities;
44
import javax.swing.SwingUtilities;
44
 
45
 
45
import com.lowagie.text.Font;
-
 
46
 
-
 
47
public class EmailTemplate {
46
public class EmailTemplate {
48
    private String name;
47
    private String name;
49
    private String title;
48
    private String title;
50
    private String text;
49
    private String text;
51
    private boolean isDefault;
50
    private boolean isDefault;
Line 135... Line 134...
135
 
134
 
136
                final JLabel l = (JLabel) super.getListCellRendererComponent(list, t.getName(), index, isSelected, cellHasFocus);
135
                final JLabel l = (JLabel) super.getListCellRendererComponent(list, t.getName(), index, isSelected, cellHasFocus);
137
                if (t.isDefault) {
136
                if (t.isDefault) {
138
                    l.setFont(l.getFont().deriveFont(Font.BOLD));
137
                    l.setFont(l.getFont().deriveFont(Font.BOLD));
139
                } else {
138
                } else {
140
                    l.setFont(l.getFont().deriveFont(Font.NORMAL));
139
                    l.setFont(l.getFont().deriveFont(Font.PLAIN));
141
                }
140
                }
142
                return l;
141
                return l;
143
            }
142
            }
144
        });
143
        });
145
        list.setMinimumSize(new Dimension(300, 200));
144
        list.setMinimumSize(new Dimension(300, 200));