@Test public void testMoveRowsTo() { uiModel.moveRowsTo(0, Collections.singletonList(gridRow)); verify(sessionCommandManager).execute(eq(canvasHandler), any(MoveRowsCommand.class)); }
@Override public void moveRowsTo(final int index, final List<GridRow> rows) { expression.get().ifPresent(context -> sessionCommandManager.execute((AbstractCanvasHandler) sessionManager.getCurrentSession().getCanvasHandler(), new MoveRowsCommand(context, delegate, index, rows, canvasOperation))); }
FunctionSupplementaryGridData extends DelegatingGridData { @Override public void moveRowsTo(final int index, final List<GridRow> rows) { expression.get().ifPresent(context -> sessionCommandManager.execute((AbstractCanvasHandler) sessionManager.getCurrentSession().getCanvasHandler(), new MoveRowsCommand(context, delegate, index, rows, canvasOperation))); } }
FunctionSupplementaryGridData extends DelegatingGridData { @Override public void moveRowsTo(final int index, final List<GridRow> rows) { expression.get().ifPresent(context -> sessionCommandManager.execute((AbstractCanvasHandler) sessionManager.getCurrentSession().getCanvasHandler(), new MoveRowsCommand(context, delegate, index, rows, canvasOperation))); } FunctionSupplementaryGridData(final DMNGridData delegate,
                                         final SessionManager sessionManager,
                                         final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
                                         final Supplier<Optional<Context>> expression,
                                         final Command canvasOperation); }
FunctionSupplementaryGridData extends DelegatingGridData { @Override public void moveRowsTo(final int index, final List<GridRow> rows) { expression.get().ifPresent(context -> sessionCommandManager.execute((AbstractCanvasHandler) sessionManager.getCurrentSession().getCanvasHandler(), new MoveRowsCommand(context, delegate, index, rows, canvasOperation))); } FunctionSupplementaryGridData(final DMNGridData delegate,
                                         final SessionManager sessionManager,
                                         final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
                                         final Supplier<Optional<Context>> expression,
                                         final Command canvasOperation); @Override void moveRowTo(final int index,
                          final GridRow row); @Override void moveRowsTo(final int index,
                           final List<GridRow> rows); }
FunctionSupplementaryGridData extends DelegatingGridData { @Override public void moveRowsTo(final int index, final List<GridRow> rows) { expression.get().ifPresent(context -> sessionCommandManager.execute((AbstractCanvasHandler) sessionManager.getCurrentSession().getCanvasHandler(), new MoveRowsCommand(context, delegate, index, rows, canvasOperation))); } FunctionSupplementaryGridData(final DMNGridData delegate,
                                         final SessionManager sessionManager,
                                         final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
                                         final Supplier<Optional<Context>> expression,
                                         final Command canvasOperation); @Override void moveRowTo(final int index,
                          final GridRow row); @Override void moveRowsTo(final int index,
                           final List<GridRow> rows);  }