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 432... Line 432...
432
    protected final void inited() {
432
    protected final void inited() {
433
        super.inited();
433
        super.inited();
434
        if (!(this instanceof GroupSQLComponent)) {
434
        if (!(this instanceof GroupSQLComponent)) {
435
 
435
 
436
            for (final Entry<String, JComponent> e : this.getElement().getAdditionalFields().entrySet()) {
436
            for (final Entry<String, JComponent> e : this.getElement().getAdditionalFields().entrySet()) {
-
 
437
                final SpecParser spec;
-
 
438
                // FIXME Required à spécifier directement depuis le module
-
 
439
                if (this.requiredNames != null && this.requiredNames.contains(e.getKey())) {
-
 
440
                    spec = new SpecParser(REQ, true);
-
 
441
                } else {
437
                final SpecParser spec = new SpecParser(null, true);
442
                    spec = new SpecParser(null, true);
-
 
443
                }
438
                final JComponent comp = e.getValue();
444
                final JComponent comp = e.getValue();
439
                if (comp == null)
445
                if (comp == null)
440
                    // infer component
446
                    // infer component
441
                    this.addViewJComponent(e.getKey(), spec);
447
                    this.addViewJComponent(e.getKey(), spec);
442
                else
448
                else
Line 724... Line 730...
724
        if (current == null)
730
        if (current == null)
725
            throw new IllegalStateException("No values to update");
731
            throw new IllegalStateException("No values to update");
726
        return this.getRequest().setLastKnownDBVals(current, this.getRequest().fetchRow(current.getID(), ls));
732
        return this.getRequest().setLastKnownDBVals(current, this.getRequest().fetchRow(current.getID(), ls));
727
    }
733
    }
728
 
734
 
729
 
-
 
730
    @Override
735
    @Override
731
    public final void select(int id) {
736
    public final void select(int id) {
732
        // TODO in an executor outside of the EDT
737
        // TODO in an executor outside of the EDT
733
        this.select(this.getRequest().fetchRow(id, LockStrength.NONE));
738
        this.select(this.getRequest().fetchRow(id, LockStrength.NONE));
734
    }
739
    }