Package io.jmix.ui.component
Interface DataGrid.StaticCell
- All Known Subinterfaces:
DataGrid.FooterCell
,DataGrid.HeaderCell
- All Known Implementing Classes:
AbstractDataGrid.AbstractStaticCellImpl
,AbstractDataGrid.FooterCellImpl
,AbstractDataGrid.HeaderCellImpl
public static interface DataGrid.StaticCell
Base interface for DataGrid header or footer cells.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the type of content stored in this cell.Returns the component displayed in this cell.getHtml()
Returns the HTML content displayed in this cell.getRow()
Gets the row where this cell is.Returns the custom style name for this cell.getText()
Returns the text displayed in this cell.void
setComponent
(Component component) Sets the component displayed in this cell.void
Sets the HTML content displayed in this cell.void
setStyleName
(String styleName) Sets a custom style name for this cell.void
Sets the text displayed in this cell.
-
Method Details
-
getStyleName
Returns the custom style name for this cell.- Returns:
- the style name or null if no style name has been set
-
setStyleName
Sets a custom style name for this cell.- Parameters:
styleName
- the style name to set or null to not use any style name
-
getCellType
DataGrid.DataGridStaticCellType getCellType()Returns the type of content stored in this cell.- Returns:
- cell content type
-
getComponent
Component getComponent()Returns the component displayed in this cell.- Returns:
- the component
-
setComponent
Sets the component displayed in this cell.- Parameters:
component
- the component to set
-
getHtml
Returns the HTML content displayed in this cell.- Returns:
- the html
-
setHtml
Sets the HTML content displayed in this cell.- Parameters:
html
- the html to set
-
getText
Returns the text displayed in this cell.- Returns:
- the plain text caption
-
setText
Sets the text displayed in this cell.- Parameters:
text
- a plain text caption
-
getRow
DataGrid.StaticRow<?> getRow()Gets the row where this cell is.- Returns:
- row for this cell
-