public abstract class BaseGridColumnRenderer<T> extends Object implements GridColumnRenderer<T>
Constructor and Description |
---|
BaseGridColumnRenderer() |
Modifier and Type | Method and Description |
---|---|
protected com.ait.lienzo.client.core.shape.IPathClipper |
getBoundingBoxPathClipper(com.ait.lienzo.client.core.types.BoundingBox bb) |
protected com.ait.lienzo.client.core.shape.Group |
internalRenderCell(GridCell<T> cell,
GridBodyCellRenderContext context,
com.ait.lienzo.client.core.shape.Text text,
String value)
Return the
Group holding the cell data |
protected boolean |
isPlaceHolderToBeShown(GridCell<T> cell) |
protected boolean |
isToReturnNull(GridCell<T> cell) |
List<GridRenderer.RendererCommand> |
renderColumn(GridColumn<?> column,
GridBodyColumnRenderContext context,
BaseGridRendererHelper rendererHelper,
BaseGridRendererHelper.RenderingInformation renderingInformation,
BiFunction<Boolean,GridColumn<?>,Boolean> columnRenderingConstraint)
Renders the column.textual information to support rendering
|
List<GridRenderer.RendererCommand> |
renderHeader(List<GridColumn.HeaderMetaData> headerMetaData,
GridHeaderColumnRenderContext context,
BaseGridRendererHelper.RenderingInformation renderingInformation,
BiFunction<Boolean,GridColumn<?>,Boolean> columnRenderingConstraint)
Renders the column's Header..
|
com.ait.lienzo.client.core.shape.Group |
renderHeaderContent(List<GridColumn.HeaderMetaData> headerMetaData,
GridHeaderColumnRenderContext context,
int headerRowIndex,
double blockWidth,
double rowHeight)
Renders the column's Header content.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
renderCell
public List<GridRenderer.RendererCommand> renderHeader(List<GridColumn.HeaderMetaData> headerMetaData, GridHeaderColumnRenderContext context, BaseGridRendererHelper.RenderingInformation renderingInformation, BiFunction<Boolean,GridColumn<?>,Boolean> columnRenderingConstraint)
GridColumnRenderer
renderHeader
in interface GridColumnRenderer<T>
headerMetaData
- MetaData for the headercontext
- Contextual information to support renderingrenderingInformation
- Calculated rendering information supporting rendering.columnRenderingConstraint
- Function to determine whether column should be rendered to the SelectionLayerprotected com.ait.lienzo.client.core.shape.IPathClipper getBoundingBoxPathClipper(com.ait.lienzo.client.core.types.BoundingBox bb)
public com.ait.lienzo.client.core.shape.Group renderHeaderContent(List<GridColumn.HeaderMetaData> headerMetaData, GridHeaderColumnRenderContext context, int headerRowIndex, double blockWidth, double rowHeight)
GridColumnRenderer
renderHeaderContent
in interface GridColumnRenderer<T>
headerMetaData
- MetaData for the headercontext
- Contextual information to support renderingheaderRowIndex
- Index of the header row being rendered. Zero based.blockWidth
- Width of the block of 'equal' header meta data objects.rowHeight
- Height of the header row.public List<GridRenderer.RendererCommand> renderColumn(GridColumn<?> column, GridBodyColumnRenderContext context, BaseGridRendererHelper rendererHelper, BaseGridRendererHelper.RenderingInformation renderingInformation, BiFunction<Boolean,GridColumn<?>,Boolean> columnRenderingConstraint)
GridColumnRenderer
renderColumn
in interface GridColumnRenderer<T>
column
- The column to rendercontext
- Contextual information to support renderingrendererHelper
- Helper for rendering.renderingInformation
- Calculated rendering information supporting rendering.columnRenderingConstraint
- Function to determine whether column should be rendered to the SelectionLayerprotected com.ait.lienzo.client.core.shape.Group internalRenderCell(GridCell<T> cell, GridBodyCellRenderContext context, com.ait.lienzo.client.core.shape.Text text, String value)
Group
holding the cell datacell
- context
- text
- code the Text
that will contain the data to showvalue
- the String to showCopyright © 2012–2020 JBoss by Red Hat. All rights reserved.