OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 140 Rev 181
Line 18... Line 18...
18
import javax.swing.JSpinner;
18
import javax.swing.JSpinner;
19
import javax.swing.SpinnerNumberModel;
19
import javax.swing.SpinnerNumberModel;
20
import javax.swing.event.ChangeEvent;
20
import javax.swing.event.ChangeEvent;
21
import javax.swing.event.ChangeListener;
21
import javax.swing.event.ChangeListener;
22
 
22
 
23
import org.openconcerto.sql.model.SQLRowAccessor;
-
 
24
import org.openconcerto.ui.DefaultGridBagConstraints;
23
import org.openconcerto.ui.DefaultGridBagConstraints;
25
import org.openconcerto.utils.ExceptionHandler;
24
import org.openconcerto.utils.ExceptionHandler;
26
 
25
 
27
public class LabelFrame extends JFrame {
26
public class LabelFrame extends JFrame {
28
    private static final boolean IGNORE_MARGINS = true;
27
    private static final boolean IGNORE_MARGINS = true;
29
    private static final int DEFAULT_LINES = 10;
28
    private static final int DEFAULT_LINES = 10;
30
    private static final int DEFAULT_COLS = 4;
29
    private static final int DEFAULT_COLS = 4;
31
    final LabelPanel labelPanel;
30
    final LabelPanel labelPanel;
32
 
31
 
33
    public LabelFrame(List<? extends SQLRowAccessor> list, LabelRenderer labelRenderer) {
32
    public LabelFrame(List<? extends Label> list, LabelRenderer labelRenderer) {
34
        final JPanel p = new JPanel();
33
        final JPanel p = new JPanel();
35
        p.setLayout(new GridBagLayout());
34
        p.setLayout(new GridBagLayout());
36
        final GridBagConstraints c = new DefaultGridBagConstraints();
35
        final GridBagConstraints c = new DefaultGridBagConstraints();
37
        p.add(createToolBar(), c);
36
        p.add(createToolBar(), c);
38
        c.gridy++;
37
        c.gridy++;