Package io.jmix.auditui.screen.snapshot
Class DiffStyleProvider
java.lang.Object
io.jmix.auditui.screen.snapshot.DiffStyleProvider
- All Implemented Interfaces:
Table.StyleProvider<EntityPropertyDifferenceModel>
public class DiffStyleProvider
extends Object
implements Table.StyleProvider<EntityPropertyDifferenceModel>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetStyleName
(EntityPropertyDifferenceModel 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.
-
Constructor Details
-
DiffStyleProvider
public DiffStyleProvider()
-
-
Method Details
-
getStyleName
Description copied from interface:Table.StyleProvider
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.- Specified by:
getStyleName
in interfaceTable.StyleProvider<EntityPropertyDifferenceModel>
- 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
-