public final class SimpleControlSWTRendererUtil extends Object
SimpleControlSWTRenderer
which may be reused by renderers which cannot
inherit from SimpleControlSWTRenderer
but want to reuse functionality.Modifier and Type | Method and Description |
---|---|
static SWTGridCell |
createControlCell(int column,
AbstractSWTRenderer<? extends VElement> renderer)
Creates the control cell.
|
static SWTGridCell |
createLabelCell(int column,
AbstractSWTRenderer<? extends VElement> renderer,
Optional<Integer> labelWidth)
Creates the cell for the label.
|
static SWTGridCell |
createValidationCell(int column,
AbstractSWTRenderer<? extends VElement> renderer)
Creates the validation cell.
|
static boolean |
showLabel(VControl control,
ReportService reportService,
String rendererName)
Whether to create a label cell on the left in the same row.
|
public static boolean showLabel(VControl control, ReportService reportService, String rendererName)
control
- the rendered VControl
reportService
- the ReportService
rendererName
- the name of the current renderer for loggingtrue
if label grid cell should be created, false
otherwisepublic static SWTGridCell createLabelCell(int column, AbstractSWTRenderer<? extends VElement> renderer, Optional<Integer> labelWidth)
column
- the column indexrenderer
- the rendererlabelWidth
- the width for the labelpublic static SWTGridCell createValidationCell(int column, AbstractSWTRenderer<? extends VElement> renderer)
column
- the column index.renderer
- the rendererpublic static SWTGridCell createControlCell(int column, AbstractSWTRenderer<? extends VElement> renderer)
column
- the column indexrenderer
- the rendererCopyright © 2019. All rights reserved.