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 SummaryModifier 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.voidsetComponent(Component component) Sets the component displayed in this cell.voidSets the HTML content displayed in this cell.voidsetStyleName(String styleName) Sets a custom style name for this cell.voidSets the text displayed in this cell.
- 
Method Details- 
getStyleNameReturns the custom style name for this cell.- Returns:
- the style name or null if no style name has been set
 
- 
setStyleNameSets a custom style name for this cell.- Parameters:
- styleName- the style name to set or null to not use any style name
 
- 
getCellTypeDataGrid.DataGridStaticCellType getCellType()Returns the type of content stored in this cell.- Returns:
- cell content type
 
- 
getComponentComponent getComponent()Returns the component displayed in this cell.- Returns:
- the component
 
- 
setComponentSets the component displayed in this cell.- Parameters:
- component- the component to set
 
- 
getHtmlReturns the HTML content displayed in this cell.- Returns:
- the html
 
- 
setHtmlSets the HTML content displayed in this cell.- Parameters:
- html- the html to set
 
- 
getTextReturns the text displayed in this cell.- Returns:
- the plain text caption
 
- 
setTextSets the text displayed in this cell.- Parameters:
- text- a plain text caption
 
- 
getRowDataGrid.StaticRow<?> getRow()Gets the row where this cell is.- Returns:
- row for this cell
 
 
-