OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 180 Rev 182
Line 1... Line 1...
1
/*
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 * 
3
 * 
4
 * Copyright 2011 OpenConcerto, by ILM Informatique. All rights reserved.
4
 * Copyright 2011-2019 OpenConcerto, by ILM Informatique. All rights reserved.
5
 * 
5
 * 
6
 * The contents of this file are subject to the terms of the GNU General Public License Version 3
6
 * The contents of this file are subject to the terms of the GNU General Public License Version 3
7
 * only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
7
 * only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
8
 * copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
8
 * copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
9
 * language governing permissions and limitations under the License.
9
 * language governing permissions and limitations under the License.
Line 142... Line 142...
142
 
142
 
143
    public void addRequiredField(SQLField f) {
143
    public void addRequiredField(SQLField f) {
144
        this.requiredFields.add(f);
144
        this.requiredFields.add(f);
145
    }
145
    }
146
 
146
 
-
 
147
    public SQLField getValidationField() {
-
 
148
        return this.validationField;
-
 
149
    }
-
 
150
 
147
    public SQLRowValues getDefaultRowValues() {
151
    public SQLRowValues getDefaultRowValues() {
148
        return this.defautRow;
152
        return this.defautRow;
149
    }
153
    }
150
 
154
 
151
    public synchronized void addColumn(SQLTableElement e) {
155
    public synchronized void addColumn(SQLTableElement e) {
Line 231... Line 235...
231
                return;
235
                return;
232
            }
236
            }
233
        }
237
        }
234
        rowVal.put(fieldName, value);
238
        rowVal.put(fieldName, value);
235
        for (SQLTableElement sqlTableElem : this.list) {
239
        for (SQLTableElement sqlTableElem : this.list) {
-
 
240
            if (sqlTableElem.getField().getName().equals(fieldName)) {
236
            sqlTableElem.fireModification(rowVal);
241
                sqlTableElem.fireModification(rowVal);
237
        }
242
            }
-
 
243
        }
238
        fireTableModelModified(rowIndex);
244
        fireTableModelModified(rowIndex);
239
    }
245
    }
240
 
246
 
241
    public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
247
    public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
242
        checkEDT();
248
        checkEDT();
Line 705... Line 711...
705
 
711
 
706
    public void addRow(final SQLRowValues row, final boolean fireModified) {
712
    public void addRow(final SQLRowValues row, final boolean fireModified) {
707
        checkEDT();
713
        checkEDT();
708
        final List<SQLRowValues> rows = new ArrayList<SQLRowValues>(1);
714
        final List<SQLRowValues> rows = new ArrayList<SQLRowValues>(1);
709
        rows.add(row);
715
        rows.add(row);
710
        addRows(rows, true);
716
        addRows(rows, fireModified);
711
    }
717
    }
712
 
718
 
713
    public void submit(Runnable r) {
719
    public void submit(Runnable r) {
714
        checkEDT();
720
        checkEDT();
715
        r.run();
721
        r.run();