Package io.jmix.ui.component.impl
Class AbstractDataGrid.AbstractStaticRowImp<T extends DataGrid.StaticCell>
java.lang.Object
io.jmix.ui.component.impl.AbstractDataGrid.AbstractStaticRowImp<T>
- All Implemented Interfaces:
DataGrid.StaticRow<T>
- Direct Known Subclasses:
AbstractDataGrid.FooterRowImpl
,AbstractDataGrid.HeaderRowImpl
- Enclosing class:
- AbstractDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>,
E>
protected abstract static class AbstractDataGrid.AbstractStaticRowImp<T extends DataGrid.StaticCell>
extends Object
implements DataGrid.StaticRow<T>
-
Field Summary
Modifier and TypeFieldDescriptionprotected AbstractDataGrid
protected com.vaadin.ui.components.grid.StaticSection.StaticRow<?>
-
Constructor Summary
ConstructorDescriptionAbstractStaticRowImp
(AbstractDataGrid dataGrid, com.vaadin.ui.components.grid.StaticSection.StaticRow<?> gridRow) -
Method Summary
Modifier and TypeMethodDescriptionReturns the cell for the given column id on this row.protected abstract T
getCellInternal
(String columnId) com.vaadin.ui.components.grid.StaticSection.StaticRow<?>
Returns the custom style name for this row.Merges columns cells in a row.protected abstract T
joinInternal
(String... columnIds) void
setStyleName
(String styleName) Sets a custom style name for this row.
-
Field Details
-
dataGrid
-
gridRow
protected com.vaadin.ui.components.grid.StaticSection.StaticRow<?> gridRow
-
-
Constructor Details
-
AbstractStaticRowImp
public AbstractStaticRowImp(AbstractDataGrid dataGrid, com.vaadin.ui.components.grid.StaticSection.StaticRow<?> gridRow)
-
-
Method Details
-
getStyleName
Description copied from interface:DataGrid.StaticRow
Returns the custom style name for this row.- Specified by:
getStyleName
in interfaceDataGrid.StaticRow<T extends DataGrid.StaticCell>
- Returns:
- the style name or null if no style name has been set
-
setStyleName
Description copied from interface:DataGrid.StaticRow
Sets a custom style name for this row.- Specified by:
setStyleName
in interfaceDataGrid.StaticRow<T extends DataGrid.StaticCell>
- Parameters:
styleName
- the style name to set or null to not use any style name
-
join
Description copied from interface:DataGrid.StaticRow
Merges columns cells in a row.- Specified by:
join
in interfaceDataGrid.StaticRow<T extends DataGrid.StaticCell>
- Parameters:
columnIds
- the ids of columns to merge- Returns:
- the remaining visible cell after the merge
-
joinInternal
-
getCell
Description copied from interface:DataGrid.StaticRow
Returns the cell for the given column id on this row. If the column is merged returned cell is the cell for the whole group.- Specified by:
getCell
in interfaceDataGrid.StaticRow<T extends DataGrid.StaticCell>
- Parameters:
columnId
- column id- Returns:
- the cell for the given column id, merged cell for merged properties, null if not found
-
getCellInternal
-
getGridRow
public com.vaadin.ui.components.grid.StaticSection.StaticRow<?> getGridRow()
-