OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 21 Rev 25
Line 168... Line 168...
168
        } else {
168
        } else {
169
            return this.addView(getComp(field).get0(), field, spec);
169
            return this.addView(getComp(field).get0(), field, spec);
170
        }
170
        }
171
    }
171
    }
172
 
172
 
173
    private Tuple2<JComponent, SQLType> getComp(String field) {
173
    protected Tuple2<JComponent, SQLType> getComp(String field) {
174
        if (getElement().getPrivateElement(field) != null)
174
        if (getElement().getPrivateElement(field) != null)
175
            // we create a MutableRowItemView and need SpecParser
175
            // we create a MutableRowItemView and need SpecParser
176
            throw new IllegalArgumentException("Private fields not supported");
176
            throw new IllegalArgumentException("Private fields not supported");
177
 
177
 
178
        final JComponent comp;
178
        final JComponent comp;
Line 190... Line 190...
190
                comp = new SQLSearchableTextCombo(ComboLockedMode.UNLOCKED, true);
190
                comp = new SQLSearchableTextCombo(ComboLockedMode.UNLOCKED, true);
191
            else
191
            else
192
                // regular
192
                // regular
193
                comp = new SQLTextCombo();
193
                comp = new SQLTextCombo();
194
        }
194
        }
-
 
195
        comp.setOpaque(false);
195
        return new Tuple2<JComponent, SQLType>(comp, type);
196
        return new Tuple2<JComponent, SQLType>(comp, type);
196
    }
197
    }
197
 
198
 
198
    public final void addSQLObject(JComponent obj, String field) {
199
    public final void addSQLObject(JComponent obj, String field) {
199
        this.addSQLObject(obj, field, null);
200
        this.addSQLObject(obj, field, null);