@Test public void testFromDmn_CellType() { mapper.fromDMNModel(0, 0); assertTrue(uiModel.getCell(0, 0) instanceof LiteralExpressionCell); }
@Override public void fromDMNModel(final int rowIndex, final int columnIndex) { dmnModel.get().ifPresent(literalExpression -> { uiModel.get().setCell(rowIndex, columnIndex, () -> new LiteralExpressionCell<>(new BaseGridCellValue<>(literalExpression.getText().getValue()), listSelector, lineHeight)); }); }
LiteralExpressionUIModelMapper extends BaseUIModelMapper<LiteralExpression> { @Override public void fromDMNModel(final int rowIndex, final int columnIndex) { dmnModel.get().ifPresent(literalExpression -> { uiModel.get().setCell(rowIndex, columnIndex, () -> new LiteralExpressionCell<>(new BaseGridCellValue<>(literalExpression.getText().getValue()), listSelector, lineHeight)); }); } }
LiteralExpressionUIModelMapper extends BaseUIModelMapper<LiteralExpression> { @Override public void fromDMNModel(final int rowIndex, final int columnIndex) { dmnModel.get().ifPresent(literalExpression -> { uiModel.get().setCell(rowIndex, columnIndex, () -> new LiteralExpressionCell<>(new BaseGridCellValue<>(literalExpression.getText().getValue()), listSelector, lineHeight)); }); } LiteralExpressionUIModelMapper(final Supplier<GridData> uiModel,
                                          final Supplier<Optional<LiteralExpression>> dmnModel,
                                          final ListSelectorView.Presenter listSelector,
                                          final double lineHeight); }
LiteralExpressionUIModelMapper extends BaseUIModelMapper<LiteralExpression> { @Override public void fromDMNModel(final int rowIndex, final int columnIndex) { dmnModel.get().ifPresent(literalExpression -> { uiModel.get().setCell(rowIndex, columnIndex, () -> new LiteralExpressionCell<>(new BaseGridCellValue<>(literalExpression.getText().getValue()), listSelector, lineHeight)); }); } LiteralExpressionUIModelMapper(final Supplier<GridData> uiModel,
                                          final Supplier<Optional<LiteralExpression>> dmnModel,
                                          final ListSelectorView.Presenter listSelector,
                                          final double lineHeight); @Override void fromDMNModel(final int rowIndex,
                             final int columnIndex); @Override void toDMNModel(final int rowIndex,
                           final int columnIndex,
                           final Supplier<Optional<GridCellValue<?>>> cell); }
LiteralExpressionUIModelMapper extends BaseUIModelMapper<LiteralExpression> { @Override public void fromDMNModel(final int rowIndex, final int columnIndex) { dmnModel.get().ifPresent(literalExpression -> { uiModel.get().setCell(rowIndex, columnIndex, () -> new LiteralExpressionCell<>(new BaseGridCellValue<>(literalExpression.getText().getValue()), listSelector, lineHeight)); }); } LiteralExpressionUIModelMapper(final Supplier<GridData> uiModel,
                                          final Supplier<Optional<LiteralExpression>> dmnModel,
                                          final ListSelectorView.Presenter listSelector,
                                          final double lineHeight); @Override void fromDMNModel(final int rowIndex,
                             final int columnIndex); @Override void toDMNModel(final int rowIndex,
                           final int columnIndex,
                           final Supplier<Optional<GridCellValue<?>>> cell);  }