@Test public void fieldsToRenderDuplicates() { ModelFormField fA0 = from(b -> b.setName("A")); ModelFormField fB = from(b -> b.setName("B")); ModelFormField fA1 = from(b -> b.setName("A")); assertThat(getUsedField(fA0, fB, fA1), containsInAnyOrder(fA0, fA1, fB)); }
public static ModelFormField from(Consumer<ModelFormFieldBuilder> spec) { ModelFormFieldBuilder builder = new ModelFormFieldBuilder(); spec.accept(builder); return new ModelFormField(builder); }
ModelFormField { public static ModelFormField from(Consumer<ModelFormFieldBuilder> spec) { ModelFormFieldBuilder builder = new ModelFormFieldBuilder(); spec.accept(builder); return new ModelFormField(builder); } }
ModelFormField { public static ModelFormField from(Consumer<ModelFormFieldBuilder> spec) { ModelFormFieldBuilder builder = new ModelFormFieldBuilder(); spec.accept(builder); return new ModelFormField(builder); } private  ModelFormField(ModelFormFieldBuilder builder); }
ModelFormField { public static ModelFormField from(Consumer<ModelFormFieldBuilder> spec) { ModelFormFieldBuilder builder = new ModelFormFieldBuilder(); spec.accept(builder); return new ModelFormField(builder); } private  ModelFormField(ModelFormFieldBuilder builder); static ModelFormField from(Consumer<ModelFormFieldBuilder> spec); static ModelFormField from(ModelFormFieldBuilder builder); FlexibleStringExpander getAction(); String getAction(Map<String, ? extends Object> context); String getAttributeName(); String getCurrentContainerId(Map<String, Object> context); boolean getEncodeOutput(); String getEntityName(); String getEntry(Map<String, ? extends Object> context); String getEntry(Map<String, ? extends Object> context, String defaultValue); FlexibleMapAccessor<Object> getEntryAcsr(); String getEntryName(); String getEvent(); FieldInfo getFieldInfo(); String getFieldName(); String getHeaderLink(); String getHeaderLinkStyle(); String getIdName(); String getTabindex(); String getConditionGroup(); boolean getDisabled(); Map<String, ? extends Object> getMap(Map<String, ? extends Object> context); FlexibleMapAccessor<Map<String, ? extends Object>> getMapAcsr(); String getMapName(); ModelForm getModelForm(); String getName(); List<UpdateArea> getOnChangeUpdateAreas(); List<UpdateArea> getOnClickUpdateAreas(); FlexibleStringExpander getParameterName(); String getParameterName(Map<String, ? extends Object> context); int getPosition(); String getRedWhen(); boolean getRequiredField(); String getRequiredFieldStyle(); boolean getSeparateColumn(); String getServiceName(); Boolean getSortField(); String getSortFieldAscStyle(); String getSortFieldDescStyle(); String getSortFieldHelpText(); String getSortFieldHelpText(Map<String, Object> context); String getSortFieldStyle(); String getSortFieldStyleAsc(); String getSortFieldStyleDesc(); FlexibleStringExpander getTitle(); String getTitle(Map<String, Object> context); String getTitleAreaStyle(); String getTitleStyle(); FlexibleStringExpander getTooltip(); String getTooltip(Map<String, Object> context); String getTooltipStyle(); FlexibleStringExpander getUseWhen(); String getUseWhen(Map<String, Object> context); String getIgnoreWhen(Map<String, Object> context); String getWidgetAreaStyle(); String getWidgetStyle(); String getParentFormName(); boolean isRowSubmit(); boolean isSortField(); boolean isUseWhenEmpty(); void renderFieldString(Appendable writer, Map<String, Object> context, FormStringRenderer formStringRenderer); boolean shouldBeRed(Map<String, Object> context); boolean shouldUse(Map<String, Object> context); static Predicate<ModelFormField> usedFields(Map<String, Object> context); boolean shouldIgnore(Map<String, Object> context); }
ModelFormField { public static ModelFormField from(Consumer<ModelFormFieldBuilder> spec) { ModelFormFieldBuilder builder = new ModelFormFieldBuilder(); spec.accept(builder); return new ModelFormField(builder); } private  ModelFormField(ModelFormFieldBuilder builder); static ModelFormField from(Consumer<ModelFormFieldBuilder> spec); static ModelFormField from(ModelFormFieldBuilder builder); FlexibleStringExpander getAction(); String getAction(Map<String, ? extends Object> context); String getAttributeName(); String getCurrentContainerId(Map<String, Object> context); boolean getEncodeOutput(); String getEntityName(); String getEntry(Map<String, ? extends Object> context); String getEntry(Map<String, ? extends Object> context, String defaultValue); FlexibleMapAccessor<Object> getEntryAcsr(); String getEntryName(); String getEvent(); FieldInfo getFieldInfo(); String getFieldName(); String getHeaderLink(); String getHeaderLinkStyle(); String getIdName(); String getTabindex(); String getConditionGroup(); boolean getDisabled(); Map<String, ? extends Object> getMap(Map<String, ? extends Object> context); FlexibleMapAccessor<Map<String, ? extends Object>> getMapAcsr(); String getMapName(); ModelForm getModelForm(); String getName(); List<UpdateArea> getOnChangeUpdateAreas(); List<UpdateArea> getOnClickUpdateAreas(); FlexibleStringExpander getParameterName(); String getParameterName(Map<String, ? extends Object> context); int getPosition(); String getRedWhen(); boolean getRequiredField(); String getRequiredFieldStyle(); boolean getSeparateColumn(); String getServiceName(); Boolean getSortField(); String getSortFieldAscStyle(); String getSortFieldDescStyle(); String getSortFieldHelpText(); String getSortFieldHelpText(Map<String, Object> context); String getSortFieldStyle(); String getSortFieldStyleAsc(); String getSortFieldStyleDesc(); FlexibleStringExpander getTitle(); String getTitle(Map<String, Object> context); String getTitleAreaStyle(); String getTitleStyle(); FlexibleStringExpander getTooltip(); String getTooltip(Map<String, Object> context); String getTooltipStyle(); FlexibleStringExpander getUseWhen(); String getUseWhen(Map<String, Object> context); String getIgnoreWhen(Map<String, Object> context); String getWidgetAreaStyle(); String getWidgetStyle(); String getParentFormName(); boolean isRowSubmit(); boolean isSortField(); boolean isUseWhenEmpty(); void renderFieldString(Appendable writer, Map<String, Object> context, FormStringRenderer formStringRenderer); boolean shouldBeRed(Map<String, Object> context); boolean shouldUse(Map<String, Object> context); static Predicate<ModelFormField> usedFields(Map<String, Object> context); boolean shouldIgnore(Map<String, Object> context);  }