@Test public void checkPerformance() { handler.perform(gridWidget, true, true); verify(gridWidget, times(1)).adjustSelection(eq(SelectionExtension.LEFT), eq(false)); }
@Override public boolean perform(final GridWidget gridWidget, final boolean isShiftKeyDown, final boolean isControlKeyDown) { final boolean redraw = gridWidget.adjustSelection(SelectionExtension.LEFT, false); scrollSelectedCellIntoView(gridWidget); return redraw; }
SelectPriorCellOnRow extends BaseKeyboardOperation { @Override public boolean perform(final GridWidget gridWidget, final boolean isShiftKeyDown, final boolean isControlKeyDown) { final boolean redraw = gridWidget.adjustSelection(SelectionExtension.LEFT, false); scrollSelectedCellIntoView(gridWidget); return redraw; } }
SelectPriorCellOnRow extends BaseKeyboardOperation { @Override public boolean perform(final GridWidget gridWidget, final boolean isShiftKeyDown, final boolean isControlKeyDown) { final boolean redraw = gridWidget.adjustSelection(SelectionExtension.LEFT, false); scrollSelectedCellIntoView(gridWidget); return redraw; } SelectPriorCellOnRow(final GridLayer gridLayer); }
SelectPriorCellOnRow extends BaseKeyboardOperation { @Override public boolean perform(final GridWidget gridWidget, final boolean isShiftKeyDown, final boolean isControlKeyDown) { final boolean redraw = gridWidget.adjustSelection(SelectionExtension.LEFT, false); scrollSelectedCellIntoView(gridWidget); return redraw; } SelectPriorCellOnRow(final GridLayer gridLayer); @Override int getKeyCode(); @Override TriStateBoolean isShiftKeyDown(); @Override TriStateBoolean isControlKeyDown(); @Override boolean perform(final GridWidget gridWidget,
                           final boolean isShiftKeyDown,
                           final boolean isControlKeyDown); }
SelectPriorCellOnRow extends BaseKeyboardOperation { @Override public boolean perform(final GridWidget gridWidget, final boolean isShiftKeyDown, final boolean isControlKeyDown) { final boolean redraw = gridWidget.adjustSelection(SelectionExtension.LEFT, false); scrollSelectedCellIntoView(gridWidget); return redraw; } SelectPriorCellOnRow(final GridLayer gridLayer); @Override int getKeyCode(); @Override TriStateBoolean isShiftKeyDown(); @Override TriStateBoolean isControlKeyDown(); @Override boolean perform(final GridWidget gridWidget,
                           final boolean isShiftKeyDown,
                           final boolean isControlKeyDown);  }