BaseGridWidget extends Group implements GridWidget { protected List<NodeMouseEventHandler> getNodeMouseClickEventHandlers(final GridSelectionManager selectionManager) { final List<NodeMouseEventHandler> handlers = new ArrayList<>(); handlers.add(new DefaultGridWidgetCellSelectorMouseEventHandler(selectionManager)); handlers.add(new DefaultGridWidgetCollapsedCellMouseEventHandler(renderer)); handlers.add(new DefaultGridWidgetLinkedColumnMouseEventHandler(selectionManager, 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 testDefaultNodeMouseClickHandlers() { final List<NodeMouseEventHandler> handlers = gridWidget.getNodeMouseClickEventHandlers(selectionManager); assertThat(handlers).hasSize(3); assertThat(handlers.get(0)).isInstanceOf(DefaultGridWidgetCellSelectorMouseEventHandler.class); assertThat(handlers.get(1)).isInstanceOf(DefaultGridWidgetCollapsedCellMouseEventHandler.class); assertThat(handlers.get(2)).isInstanceOf(DefaultGridWidgetLinkedColumnMouseEventHandler.class); }