GuidedDecisionTableModellerViewImpl extends Composite implements GuidedDecisionTableModellerView { @Override public HandlerRegistration addKeyDownHandler(final KeyDownHandler handler) { return gridPanel.addKeyDownHandler(handler); } GuidedDecisionTableModellerViewImpl(); @Inject  GuidedDecisionTableModellerViewImpl(final TranslationService translationService); @Override void init(final GuidedDecisionTableModellerView.Presenter presenter); @PostConstruct void setup(); @Override void onResize(); @Override HandlerRegistration addKeyDownHandler(final KeyDownHandler handler); @Override HandlerRegistration addContextMenuHandler(final ContextMenuHandler handler); @Override HandlerRegistration addMouseDownHandler(final MouseDownHandler handler); @Override void clear(); @Override void addDecisionTable(final GuidedDecisionTableView gridWidget); @Override void removeDecisionTable(final GuidedDecisionTableView gridWidget,
                                    final Command afterRemovalCommand); @Override void refreshScrollPosition(); @Override void setZoom(final int zoom); @Override GridLayer getGridLayerView(); @Override GridLienzoPanel getGridPanel(); @Override Bounds getBounds(); @Override void select(final GridWidget selectedGridWidget); @Override void selectLinkedColumn(final GridColumn<?> link); @Override Set<GridWidget> getGridWidgets(); @Override void setPinnedModeIndicatorVisibility(final boolean visibility, final double headerCaptionWidth); @Override void showGenericVetoMessage(); @Override void showUnableToDeleteColumnMessage(final ConditionCol52 column); @Override void showUnableToDeleteColumnMessage(final ActionCol52 column);  }
@Test public void testAddKeyDownHandlerAttachesToEditor() { final KeyDownHandler handler = mock(KeyDownHandler.class); view.addKeyDownHandler(handler); verify(rootPanel, never()).addDomHandler(eq(handler), eq(KeyDownEvent.getType())); verify(mockGridPanel).addKeyDownHandler(eq(handler)); }