resultComponent.bind();
fieldGroup.bind();
protected FieldGroup createRuntimeFieldGroup(Datasource ds) { Component runtime = getComponent("runtime"); if (runtime != null) { remove(runtime); } FieldGroup newRuntimeFieldGroup = uiComponents.create(FieldGroup.class); newRuntimeFieldGroup.setBorderVisible(Boolean.TRUE.equals(borderVisible)); newRuntimeFieldGroup.setWidth("100%"); newRuntimeFieldGroup.setId("runtime"); newRuntimeFieldGroup.setFrame(getFrame()); add(newRuntimeFieldGroup); for (FieldGroup.FieldConfig field : newRuntimeFieldGroup.getFields()) { newRuntimeFieldGroup.removeField(field); } List<FieldGroup.FieldConfig> fields = createFieldsForAttributes(newRuntimeFieldGroup); addFieldsToFieldGroup(newRuntimeFieldGroup, fields); if (!newRuntimeFieldGroup.getFields().isEmpty()) { newRuntimeFieldGroup.setDatasource(ds); newRuntimeFieldGroup.bind(); } for (FieldGroup.FieldConfig fieldConfig : newRuntimeFieldGroup.getFields()) { loadValidators(newRuntimeFieldGroup, fieldConfig); loadRequired(newRuntimeFieldGroup, fieldConfig); loadEditable(newRuntimeFieldGroup, fieldConfig); } initFieldCaptionWidth(newRuntimeFieldGroup); return newRuntimeFieldGroup; }
fieldGroup.bind();