@Test public void testEdit() { final GridCell<String> cell = mock(GridCell.class); final GridBodyCellEditContext context = mock(GridBodyCellEditContext.class); final Consumer callback = mock(Consumer.class); final Consumer onDisplay = mock(Consumer.class); final Consumer onCreation = mock(Consumer.class); doReturn(onDisplay).when(column).getTextAreaDOMElementConsumerOnDisplay(); doReturn(onCreation).when(column).getTextAreaDOMElementConsumerOnCreation(cell); column.edit(cell, context, callback); verify(factory).attachDomElement(context, onCreation, onDisplay); }
@Override public void edit(final GridCell<String> cell, final GridBodyCellRenderContext context, final Consumer<GridCellValue<String>> callback) { factory.attachDomElement(context, getTextAreaDOMElementConsumerOnCreation(cell), getTextAreaDOMElementConsumerOnDisplay()); }
RuleAnnotationClauseColumn extends DMNSimpleGridColumn<DecisionTableGrid, String> implements HasDOMElementResources { @Override public void edit(final GridCell<String> cell, final GridBodyCellRenderContext context, final Consumer<GridCellValue<String>> callback) { factory.attachDomElement(context, getTextAreaDOMElementConsumerOnCreation(cell), getTextAreaDOMElementConsumerOnDisplay()); } }
RuleAnnotationClauseColumn extends DMNSimpleGridColumn<DecisionTableGrid, String> implements HasDOMElementResources { @Override public void edit(final GridCell<String> cell, final GridBodyCellRenderContext context, final Consumer<GridCellValue<String>> callback) { factory.attachDomElement(context, getTextAreaDOMElementConsumerOnCreation(cell), getTextAreaDOMElementConsumerOnDisplay()); } RuleAnnotationClauseColumn(final Supplier<List<HeaderMetaData>> headerMetaDataSupplier,
                                      final TextAreaSingletonDOMElementFactory factory,
                                      final double width,
                                      final DecisionTableGrid gridWidget); }
RuleAnnotationClauseColumn extends DMNSimpleGridColumn<DecisionTableGrid, String> implements HasDOMElementResources { @Override public void edit(final GridCell<String> cell, final GridBodyCellRenderContext context, final Consumer<GridCellValue<String>> callback) { factory.attachDomElement(context, getTextAreaDOMElementConsumerOnCreation(cell), getTextAreaDOMElementConsumerOnDisplay()); } RuleAnnotationClauseColumn(final Supplier<List<HeaderMetaData>> headerMetaDataSupplier,
                                      final TextAreaSingletonDOMElementFactory factory,
                                      final double width,
                                      final DecisionTableGrid gridWidget); @Override void edit(final GridCell<String> cell,
                     final GridBodyCellRenderContext context,
                     final Consumer<GridCellValue<String>> callback); @Override void destroyResources(); @Override void setWidth(final double width); }
RuleAnnotationClauseColumn extends DMNSimpleGridColumn<DecisionTableGrid, String> implements HasDOMElementResources { @Override public void edit(final GridCell<String> cell, final GridBodyCellRenderContext context, final Consumer<GridCellValue<String>> callback) { factory.attachDomElement(context, getTextAreaDOMElementConsumerOnCreation(cell), getTextAreaDOMElementConsumerOnDisplay()); } RuleAnnotationClauseColumn(final Supplier<List<HeaderMetaData>> headerMetaDataSupplier,
                                      final TextAreaSingletonDOMElementFactory factory,
                                      final double width,
                                      final DecisionTableGrid gridWidget); @Override void edit(final GridCell<String> cell,
                     final GridBodyCellRenderContext context,
                     final Consumer<GridCellValue<String>> callback); @Override void destroyResources(); @Override void setWidth(final double width);  }