BaseGridWidget extends Group implements GridWidget { protected List<NodeMouseEventHandler> getNodeMouseDoubleClickEventHandlers(final GridSelectionManager selectionManager, final GridPinnedModeManager pinnedModeManager) { final List<NodeMouseEventHandler> handlers = new ArrayList<>(); handlers.add(new DefaultGridWidgetEditCellMouseEventHandler()); handlers.add(new DefaultGridWidgetPinnedModeMouseEventHandler(pinnedModeManager, renderer)); return handlers; } BaseGridWidget(final GridData model,
                          final GridSelectionManager selectionManager,
                          final GridPinnedModeManager pinnedModeManager,
                          final GridRenderer renderer); @Override CellSelectionManager getCellSelectionManager(); @Override GridData getModel(); @Override GridRenderer getRenderer(); @Override void setRenderer(final GridRenderer renderer); @Override BaseGridRendererHelper getRendererHelper(); @Override Group getBody(); @Override Group getHeader(); @Override double getWidth(); @Override double getHeight(); @Override void select(); @Override void deselect(); @Override boolean isSelected(); @Override Group setVisible(final boolean visible); @Override void onNodeMouseClick(final NodeMouseClickEvent event); @Override boolean onGroupingToggle(final double cellX,
                                    final double cellY,
                                    final double cellWidth,
                                    final double cellHeight); @Override boolean selectCell(final Point2D rp,
                              final boolean isShiftKeyDown,
                              final boolean isControlKeyDown); @Override boolean selectCell(final int uiRowIndex,
                              final int uiColumnIndex,
                              final boolean isShiftKeyDown,
                              final boolean isControlKeyDown); @Override boolean selectHeaderCell(final Point2D rp,
                                    final boolean isShiftKeyDown,
                                    final boolean isControlKeyDown); @Override boolean selectHeaderCell(final int uiHeaderRowIndex,
                                    final int uiHeaderColumnIndex,
                                    final boolean isShiftKeyDown,
                                    final boolean isControlKeyDown); @Override boolean adjustSelection(final SelectionExtension direction,
                                   final boolean isShiftKeyDown); @Override boolean startEditingCell(final int uiRowIndex,
                                    final int uiColumnIndex); @Override boolean startEditingCell(final Point2D rp); @Override boolean showContextMenuForHeader(final int uiHeaderRowIndex,
                                            final int uiHeaderColumnIndex); @Override boolean showContextMenuForCell(final int uiRowIndex,
                                          final int uiColumnIndex);  }
@Test public void testDefaultNodeMouseDoubleClickHandlers() { final List<NodeMouseEventHandler> handlers = gridWidget.getNodeMouseDoubleClickEventHandlers(selectionManager, pinnedModeManager); assertThat(handlers).hasSize(2); assertThat(handlers.get(0)).isInstanceOf(DefaultGridWidgetEditCellMouseEventHandler.class); assertThat(handlers.get(1)).isInstanceOf(DefaultGridWidgetPinnedModeMouseEventHandler.class); }