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
FieldsModifier and TypeFieldDescriptionprotected AbstractDataGridprotected com.vaadin.ui.components.grid.StaticSection.StaticRow<?> -
Constructor Summary
ConstructorsConstructorDescriptionAbstractStaticRowImp(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 TgetCellInternal(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 TjoinInternal(String... columnIds) voidsetStyleName(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.StaticRowReturns the custom style name for this row.- Specified by:
getStyleNamein 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.StaticRowSets a custom style name for this row.- Specified by:
setStyleNamein 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.StaticRowMerges columns cells in a row.- Specified by:
joinin 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.StaticRowReturns 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:
getCellin 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()
-