OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 182 Rev 185
Line 175... Line 175...
175
        final int size = this.getTableSpec().getContent().getRowsCount();
175
        final int size = this.getTableSpec().getContent().getRowsCount();
176
        for (int i = 0; i < size; i++) {
176
        for (int i = 0; i < size; i++) {
177
            final Row row = this.getRow(i);
177
            final Row row = this.getRow(i);
178
            if (NumberUtils.areNumericallyEqual(row.getId(), rowId)) {
178
            if (NumberUtils.areNumericallyEqual(row.getId(), rowId)) {
179
                return row;
179
                return row;
180
            } else {
-
 
181
                System.err.println("LightUITable.getSelectedRows() - Null selectedRow");
-
 
182
            }
180
            }
183
        }
181
        }
184
        return null;
182
        return null;
185
    }
183
    }
186
 
184
 
Line 396... Line 394...
396
 
394
 
397
        return result;
395
        return result;
398
    }
396
    }
399
 
397
 
400
    public final void addSelectionListener(final ActionListener selectionListener) {
398
    public final void addSelectionListener(final ActionListener selectionListener) {
-
 
399
        this.setAllowSelection(true);
401
        this.selectionListeners.add(selectionListener);
400
        this.selectionListeners.add(selectionListener);
402
    }
401
    }
403
 
402
 
404
    public final void removeSelectionListeners() {
403
    public final void removeSelectionListeners() {
405
        this.selectionListeners.clear();
404
        this.selectionListeners.clear();