@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(dtable -> sessionCommandManager.execute((AbstractCanvasHandler) sessionManager.getCurrentSession().getCanvasHandler(), new MoveRowsCommand(dtable, delegate, index, rows, canvasOperation))); }
DecisionTableGridData extends DelegatingGridData { @Override public void moveRowsTo(final int index, final List<GridRow> rows) { expression.get().ifPresent(dtable -> sessionCommandManager.execute((AbstractCanvasHandler) sessionManager.getCurrentSession().getCanvasHandler(), new MoveRowsCommand(dtable, delegate, index, rows, canvasOperation))); } }
DecisionTableGridData extends DelegatingGridData { @Override public void moveRowsTo(final int index, final List<GridRow> rows) { expression.get().ifPresent(dtable -> sessionCommandManager.execute((AbstractCanvasHandler) sessionManager.getCurrentSession().getCanvasHandler(), new MoveRowsCommand(dtable, delegate, index, rows, canvasOperation))); } DecisionTableGridData(final DMNGridData delegate,
                                 final SessionManager sessionManager,
                                 final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
                                 final Supplier<Optional<DecisionTable>> expression,
                                 final Command canvasOperation); }
DecisionTableGridData extends DelegatingGridData { @Override public void moveRowsTo(final int index, final List<GridRow> rows) { expression.get().ifPresent(dtable -> sessionCommandManager.execute((AbstractCanvasHandler) sessionManager.getCurrentSession().getCanvasHandler(), new MoveRowsCommand(dtable, delegate, index, rows, canvasOperation))); } DecisionTableGridData(final DMNGridData delegate,
                                 final SessionManager sessionManager,
                                 final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
                                 final Supplier<Optional<DecisionTable>> expression,
                                 final Command canvasOperation); @Override void moveRowTo(final int index,
                          final GridRow row); @Override void moveRowsTo(final int index,
                           final List<GridRow> rows); @Override void moveColumnTo(final int index,
                             final GridColumn<?> column); @Override void moveColumnsTo(final int index,
                              final List<GridColumn<?>> columns); }
DecisionTableGridData extends DelegatingGridData { @Override public void moveRowsTo(final int index, final List<GridRow> rows) { expression.get().ifPresent(dtable -> sessionCommandManager.execute((AbstractCanvasHandler) sessionManager.getCurrentSession().getCanvasHandler(), new MoveRowsCommand(dtable, delegate, index, rows, canvasOperation))); } DecisionTableGridData(final DMNGridData delegate,
                                 final SessionManager sessionManager,
                                 final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
                                 final Supplier<Optional<DecisionTable>> expression,
                                 final Command canvasOperation); @Override void moveRowTo(final int index,
                          final GridRow row); @Override void moveRowsTo(final int index,
                           final List<GridRow> rows); @Override void moveColumnTo(final int index,
                             final GridColumn<?> column); @Override void moveColumnsTo(final int index,
                              final List<GridColumn<?>> columns);  }