when( rendererHelper.getColumnOffset( uiColumn2 ) ).thenReturn( uiColumn1.getWidth() ); final BaseGridRendererHelper.RenderingInformation ri = new BaseGridRendererHelper.RenderingInformation( bounds, uiModel.getColumns(), new BaseGridRendererHelper.RenderingBlockInformation(
when(gridWidget.getAbsoluteY()).thenReturn(100.0); final BaseGridRendererHelper.RenderingInformation ri = new BaseGridRendererHelper.RenderingInformation(mock(Bounds.class), uiModel.getColumns(), new BaseGridRendererHelper.RenderingBlockInformation(uiModel.getColumns(),
when(gridWidget.getAbsoluteY()).thenReturn(100.0); final BaseGridRendererHelper.RenderingInformation ri = new BaseGridRendererHelper.RenderingInformation(mock(Bounds.class), uiModel.getColumns(), new BaseGridRendererHelper.RenderingBlockInformation(uiModel.getColumns(),
return new RenderingInformation(bounds, allColumns, bodyBlockInformation,
return new RenderingInformation(bounds, allColumns, bodyBlockInformation,
public static RenderingInformation makeRenderingInformation(final GridData model, final List<Double> rowOffsets, final int headerRowCount, final double headerRowHeight, final double headerRowsHeight) { return new RenderingInformation(mock(Bounds.class), model.getColumns(), new BaseGridRendererHelper.RenderingBlockInformation(model.getColumns(), 0.0, 0.0, 0.0, 100), new BaseGridRendererHelper.RenderingBlockInformation(Collections.emptyList(), 0.0, 0.0, 0.0, 0.0), 0, rowOffsets.size() - 1, rowOffsets, false, false, headerRowCount, headerRowHeight, headerRowsHeight, headerRowsHeight - (headerRowCount * headerRowHeight)); } }
public static RenderingInformation makeRenderingInformation(final GridData model, final List<Double> rowOffsets, final int headerRowCount, final double headerRowHeight, final double headerRowsHeight) { return new RenderingInformation(mock(Bounds.class), model.getColumns(), new BaseGridRendererHelper.RenderingBlockInformation(model.getColumns(), 0.0, 0.0, 0.0, 100), new BaseGridRendererHelper.RenderingBlockInformation(Collections.emptyList(), 0.0, 0.0, 0.0, 0.0), 0, rowOffsets.size() - 1, rowOffsets, false, false, headerRowCount, headerRowHeight, headerRowsHeight, headerRowsHeight - (headerRowCount * headerRowHeight)); } }
private BaseGridRendererHelper.RenderingInformation makeRenderingInformation(final List<GridColumn<?>> bodyColumns, final List<GridColumn<?>> floatingColumns) { view.setAllColumns(allColumns); view.setBodyColumns(bodyColumns); view.setFloatingColumns(floatingColumns); return new BaseGridRendererHelper.RenderingInformation(new BaseBounds(0, 0, 1000, 2000), allColumns, makeRenderingBlockInformation(bodyColumns), makeRenderingBlockInformation(floatingColumns), 0, 1, Collections.singletonList(0.0), false, false, 1, HEADER_ROW_HEIGHT, HEADER_ROW_HEIGHT, 0.0); }