private JSWrapperInstance<SInstance>[] getFieldsWrappers() { if (fieldsWrappers == null) { fieldsWrappers = new JSWrapperInstance[getInstance().getType().size()]; } return fieldsWrappers; }
private JSWrapperInstance<SInstance>[] getFieldsWrappers() { if (fieldsWrappers == null) { fieldsWrappers = new JSWrapperInstance[getInstance().getType().size()]; } return fieldsWrappers; }
private SInstance createField(int fieldIndex) { SType<?> fieldType = getType().getField(fieldIndex); SInstance instance = fieldType.newInstance(getDocument()); if (fields == null) { fields = new FieldMapOfRecordInstance(getType().size()); } fields.set(fieldIndex, instance); instance.setParent(this); return instance; }
private SInstance createField(int fieldIndex) { SType<?> fieldType = getType().getField(fieldIndex); SInstance instance = fieldType.newInstance(getDocument()); if (fields == null) { fields = new FieldMapOfRecordInstance(getType().size()); } fields.set(fieldIndex, instance); instance.setParent(this); return instance; }