@Test public void testDelegationToGridWidget() { final GridWidget view = mock(GridWidget.class); doReturn(rendererHelper).when(view).getRendererHelper(); handler.findMovableRows(view, rendererHelper.getRenderingInformation(), 0, 0); verify(state, never()).reset(); }
@Override protected void findMovableRows(final GridWidget view, final BaseGridRendererHelper.RenderingInformation renderingInformation, final double cx, final double cy) { super.findMovableRows(view, renderingInformation, cx, cy); if (view instanceof HasRowDragRestrictions) { final HasRowDragRestrictions hasRowDragRestrictions = (HasRowDragRestrictions) view; if (!hasRowDragRestrictions.isRowDragPermitted(state)) { state.reset(); layer.getViewport().getElement().getStyle().setCursor(state.getCursor()); } } }
DelegatingGridWidgetDndMouseMoveHandler extends GridWidgetDnDMouseMoveHandler { @Override protected void findMovableRows(final GridWidget view, final BaseGridRendererHelper.RenderingInformation renderingInformation, final double cx, final double cy) { super.findMovableRows(view, renderingInformation, cx, cy); if (view instanceof HasRowDragRestrictions) { final HasRowDragRestrictions hasRowDragRestrictions = (HasRowDragRestrictions) view; if (!hasRowDragRestrictions.isRowDragPermitted(state)) { state.reset(); layer.getViewport().getElement().getStyle().setCursor(state.getCursor()); } } } }
DelegatingGridWidgetDndMouseMoveHandler extends GridWidgetDnDMouseMoveHandler { @Override protected void findMovableRows(final GridWidget view, final BaseGridRendererHelper.RenderingInformation renderingInformation, final double cx, final double cy) { super.findMovableRows(view, renderingInformation, cx, cy); if (view instanceof HasRowDragRestrictions) { final HasRowDragRestrictions hasRowDragRestrictions = (HasRowDragRestrictions) view; if (!hasRowDragRestrictions.isRowDragPermitted(state)) { state.reset(); layer.getViewport().getElement().getStyle().setCursor(state.getCursor()); } } } DelegatingGridWidgetDndMouseMoveHandler(final GridLayer layer,
                                                   final GridWidgetDnDHandlersState state); }
DelegatingGridWidgetDndMouseMoveHandler extends GridWidgetDnDMouseMoveHandler { @Override protected void findMovableRows(final GridWidget view, final BaseGridRendererHelper.RenderingInformation renderingInformation, final double cx, final double cy) { super.findMovableRows(view, renderingInformation, cx, cy); if (view instanceof HasRowDragRestrictions) { final HasRowDragRestrictions hasRowDragRestrictions = (HasRowDragRestrictions) view; if (!hasRowDragRestrictions.isRowDragPermitted(state)) { state.reset(); layer.getViewport().getElement().getStyle().setCursor(state.getCursor()); } } } DelegatingGridWidgetDndMouseMoveHandler(final GridLayer layer,
                                                   final GridWidgetDnDHandlersState state);  }
DelegatingGridWidgetDndMouseMoveHandler extends GridWidgetDnDMouseMoveHandler { @Override protected void findMovableRows(final GridWidget view, final BaseGridRendererHelper.RenderingInformation renderingInformation, final double cx, final double cy) { super.findMovableRows(view, renderingInformation, cx, cy); if (view instanceof HasRowDragRestrictions) { final HasRowDragRestrictions hasRowDragRestrictions = (HasRowDragRestrictions) view; if (!hasRowDragRestrictions.isRowDragPermitted(state)) { state.reset(); layer.getViewport().getElement().getStyle().setCursor(state.getCursor()); } } } DelegatingGridWidgetDndMouseMoveHandler(final GridLayer layer,
                                                   final GridWidgetDnDHandlersState state);   }