@Named public class ContractInputToWidgetMapper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected DimensionFactory |
dimensionFactory |
protected ParametrizedWidgetFactory |
parametrizedWidgetFactory |
| Constructor and Description |
|---|
ContractInputToWidgetMapper(DimensionFactory dimensionFactory,
JacksonObjectMapper objectMapperWrapper) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCreateComponent(ContractInput contractInput) |
Component |
createAddButton(ContractInput contractInput) |
Component |
createRemoveButton() |
Component |
createSubmitButton(ButtonAction actionType) |
Component |
createSubmitErrorAlert() |
Container |
toContainer(NodeContractInput nodeContractInput,
List<List<Element>> rows) |
Element |
toDocument(LeafContractInput contractInput) |
Element |
toElement(ContractInput contractInput,
List<List<Element>> rows) |
protected ParametrizedWidgetFactory parametrizedWidgetFactory
protected DimensionFactory dimensionFactory
@Inject public ContractInputToWidgetMapper(DimensionFactory dimensionFactory, JacksonObjectMapper objectMapperWrapper)
public Element toElement(ContractInput contractInput, List<List<Element>> rows)
public Element toDocument(LeafContractInput contractInput)
public Container toContainer(NodeContractInput nodeContractInput, List<List<Element>> rows)
public Component createSubmitButton(ButtonAction actionType)
public Component createSubmitErrorAlert()
public boolean canCreateComponent(ContractInput contractInput)
public Component createRemoveButton()
public Component createAddButton(ContractInput contractInput)
Copyright © 2020. All rights reserved.