Package io.jmix.ui.component
Interface Table.StyleProvider<E>
- All Known Subinterfaces:
GroupTable.GroupStyleProvider<E>
- All Known Implementing Classes:
AbstractTable.InstalledStyleProvider
,DiffStyleProvider
public static interface Table.StyleProvider<E>
Allows to define different styles for table cells.
-
Method Summary
Modifier and TypeMethodDescriptiongetStyleName
(E entity, String property) Called byTable
to get a style for row or cell.
All unhandled exceptions from StyleProvider in Web components by default are logged with ERROR level and not shown to users.
-
Method Details
-
getStyleName
Called byTable
to get a style for row or cell.
All unhandled exceptions from StyleProvider in Web components by default are logged with ERROR level and not shown to users.- Parameters:
entity
- an entity instance represented by the current rowproperty
- column identifier if getting a style for a cell, or null if getting the style for a row- Returns:
- style name or null to apply the default
-