OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 144 Rev 174
Line 91... Line 91...
91
 
91
 
92
    private JButton genererButton;
92
    private JButton genererButton;
93
    private JComboBox<FileAction> fileActionCombo;
93
    private JComboBox<FileAction> fileActionCombo;
94
 
94
 
95
    private JList<GenerationTask> tasksView;
95
    private JList<GenerationTask> tasksView;
96
    private JLabel status;
96
    private final JLabel status;
97
 
97
 
98
    // le groupe dans lequel doivent être toutes les thread de la génération
98
    // le groupe dans lequel doivent être toutes les thread de la génération
99
    private final ThreadGroup thg;
99
    private final ThreadGroup thg;
100
 
100
 
101
    public BaseGenerationRapport() throws JDOMException, IOException {
101
    public BaseGenerationRapport() throws JDOMException, IOException {
102
        this.thg = new ThreadGroup(this + " thread group");
102
        this.thg = new ThreadGroup(this + " thread group");
103
        this.uiInit();
103
        this.status = new JLabel();
104
        this.setStatus("Inactif");
104
        this.setStatus("Inactif");
105
    }
105
    }
106
 
106
 
107
    protected Map<String, JComponent> getEntries() {
107
    protected Map<String, JComponent> getEntries() {
108
        return new LinkedHashMap<String, JComponent>();
108
        return new LinkedHashMap<String, JComponent>();
Line 110... Line 110...
110
 
110
 
111
    protected File getReportDir() {
111
    protected File getReportDir() {
112
        return null;
112
        return null;
113
    }
113
    }
114
 
114
 
115
    private void uiInit() throws JDOMException, IOException {
115
    protected final void uiInit() throws JDOMException, IOException {
116
        setLayout(new GridBagLayout());
116
        setLayout(new GridBagLayout());
117
        final GridBagConstraints c = new GridBagConstraints();
117
        final GridBagConstraints c = new GridBagConstraints();
118
        c.ipadx = 40;
118
        c.ipadx = 40;
119
        c.insets = new Insets(2, 5, 0, 0);
119
        c.insets = new Insets(2, 5, 0, 0);
120
        c.gridx = 0;
120
        c.gridx = 0;
Line 169... Line 169...
169
        this.fileActionCombo.setEnabled(false);
169
        this.fileActionCombo.setEnabled(false);
170
 
170
 
171
        c.gridx = 0;
171
        c.gridx = 0;
172
        c.gridy++;
172
        c.gridy++;
173
        c.gridwidth = GridBagConstraints.REMAINDER;
173
        c.gridwidth = GridBagConstraints.REMAINDER;
174
        this.status = new JLabel();
-
 
175
        this.add(this.status, c);
174
        this.add(this.status, c);
176
 
175
 
177
        c.gridy++;
176
        c.gridy++;
178
        this.tasksView = new JList<>(new TasksModel());
177
        this.tasksView = new JList<>(new TasksModel());
179
        this.tasksView.setCellRenderer(new GenerationTaskView());
178
        this.tasksView.setCellRenderer(new GenerationTaskView());