@Test public void testSetupGridWidget() { verify(gridLayer).removeAll(); verify(gridLayer).add(expressionContainerArgumentCaptor.capture()); final GridWidget expressionContainer = expressionContainerArgumentCaptor.getValue(); verify(gridLayer).select(eq(expressionContainer)); verify(gridLayer).enterPinnedMode(eq(expressionContainer), any(Command.class)); }
protected void setupGridWidget() { expressionContainerGrid = new ExpressionContainerGrid(gridLayer, cellEditorControls, translationService, listSelector, sessionManager, sessionCommandManager, canvasCommandFactory, expressionEditorDefinitionsSupplier, getExpressionGridCacheSupplier(), this::setExpressionTypeText, this::setExpressionNameText, refreshFormPropertiesEvent, domainObjectSelectionEvent); gridLayer.removeAll(); gridLayer.add(expressionContainerGrid); gridLayer.select(expressionContainerGrid); gridLayer.enterPinnedMode(expressionContainerGrid, () -> {}); }
ExpressionEditorViewImpl implements ExpressionEditorView { protected void setupGridWidget() { expressionContainerGrid = new ExpressionContainerGrid(gridLayer, cellEditorControls, translationService, listSelector, sessionManager, sessionCommandManager, canvasCommandFactory, expressionEditorDefinitionsSupplier, getExpressionGridCacheSupplier(), this::setExpressionTypeText, this::setExpressionNameText, refreshFormPropertiesEvent, domainObjectSelectionEvent); gridLayer.removeAll(); gridLayer.add(expressionContainerGrid); gridLayer.select(expressionContainerGrid); gridLayer.enterPinnedMode(expressionContainerGrid, () -> {}); } }
ExpressionEditorViewImpl implements ExpressionEditorView { protected void setupGridWidget() { expressionContainerGrid = new ExpressionContainerGrid(gridLayer, cellEditorControls, translationService, listSelector, sessionManager, sessionCommandManager, canvasCommandFactory, expressionEditorDefinitionsSupplier, getExpressionGridCacheSupplier(), this::setExpressionTypeText, this::setExpressionNameText, refreshFormPropertiesEvent, domainObjectSelectionEvent); gridLayer.removeAll(); gridLayer.add(expressionContainerGrid); gridLayer.select(expressionContainerGrid); gridLayer.enterPinnedMode(expressionContainerGrid, () -> {}); } ExpressionEditorViewImpl(); @Inject  ExpressionEditorViewImpl(final Anchor returnToLink,
                                    final Span expressionName,
                                    final Span expressionType,
                                    final @DMNEditor DMNGridPanelContainer gridPanelContainer,
                                    final TranslationService translationService,
                                    final ListSelectorView.Presenter listSelector,
                                    final SessionManager sessionManager,
                                    final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
                                    final @DMNEditor DefaultCanvasCommandFactory canvasCommandFactory,
                                    final @DMNEditor Supplier<ExpressionEditorDefinitions> expressionEditorDefinitionsSupplier,
                                    final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
                                    final Event<DomainObjectSelectionEvent> domainObjectSelectionEvent); }
ExpressionEditorViewImpl implements ExpressionEditorView { protected void setupGridWidget() { expressionContainerGrid = new ExpressionContainerGrid(gridLayer, cellEditorControls, translationService, listSelector, sessionManager, sessionCommandManager, canvasCommandFactory, expressionEditorDefinitionsSupplier, getExpressionGridCacheSupplier(), this::setExpressionTypeText, this::setExpressionNameText, refreshFormPropertiesEvent, domainObjectSelectionEvent); gridLayer.removeAll(); gridLayer.add(expressionContainerGrid); gridLayer.select(expressionContainerGrid); gridLayer.enterPinnedMode(expressionContainerGrid, () -> {}); } ExpressionEditorViewImpl(); @Inject  ExpressionEditorViewImpl(final Anchor returnToLink,
                                    final Span expressionName,
                                    final Span expressionType,
                                    final @DMNEditor DMNGridPanelContainer gridPanelContainer,
                                    final TranslationService translationService,
                                    final ListSelectorView.Presenter listSelector,
                                    final SessionManager sessionManager,
                                    final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
                                    final @DMNEditor DefaultCanvasCommandFactory canvasCommandFactory,
                                    final @DMNEditor Supplier<ExpressionEditorDefinitions> expressionEditorDefinitionsSupplier,
                                    final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
                                    final Event<DomainObjectSelectionEvent> domainObjectSelectionEvent); @Override void init(final ExpressionEditorView.Presenter presenter); @Override void bind(final DMNSession session); @Override void setReturnToLinkText(final String text); @Override void setExpression(final String nodeUUID,
                              final HasExpression hasExpression,
                              final Optional<HasName> hasName,
                              final boolean isOnlyVisualChangeAllowed); ExpressionContainerGrid getExpressionContainerGrid(); @Override void setExpressionNameText(final Optional<HasName> hasName); @Override void setExpressionTypeText(final Optional<Expression> expression); @Override void onResize(); @Override void refresh(); @Override void setFocus(); }
ExpressionEditorViewImpl implements ExpressionEditorView { protected void setupGridWidget() { expressionContainerGrid = new ExpressionContainerGrid(gridLayer, cellEditorControls, translationService, listSelector, sessionManager, sessionCommandManager, canvasCommandFactory, expressionEditorDefinitionsSupplier, getExpressionGridCacheSupplier(), this::setExpressionTypeText, this::setExpressionNameText, refreshFormPropertiesEvent, domainObjectSelectionEvent); gridLayer.removeAll(); gridLayer.add(expressionContainerGrid); gridLayer.select(expressionContainerGrid); gridLayer.enterPinnedMode(expressionContainerGrid, () -> {}); } ExpressionEditorViewImpl(); @Inject  ExpressionEditorViewImpl(final Anchor returnToLink,
                                    final Span expressionName,
                                    final Span expressionType,
                                    final @DMNEditor DMNGridPanelContainer gridPanelContainer,
                                    final TranslationService translationService,
                                    final ListSelectorView.Presenter listSelector,
                                    final SessionManager sessionManager,
                                    final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
                                    final @DMNEditor DefaultCanvasCommandFactory canvasCommandFactory,
                                    final @DMNEditor Supplier<ExpressionEditorDefinitions> expressionEditorDefinitionsSupplier,
                                    final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
                                    final Event<DomainObjectSelectionEvent> domainObjectSelectionEvent); @Override void init(final ExpressionEditorView.Presenter presenter); @Override void bind(final DMNSession session); @Override void setReturnToLinkText(final String text); @Override void setExpression(final String nodeUUID,
                              final HasExpression hasExpression,
                              final Optional<HasName> hasName,
                              final boolean isOnlyVisualChangeAllowed); ExpressionContainerGrid getExpressionContainerGrid(); @Override void setExpressionNameText(final Optional<HasName> hasName); @Override void setExpressionTypeText(final Optional<Expression> expression); @Override void onResize(); @Override void refresh(); @Override void setFocus();  }