@Override public String getStyle(RowReference row) { if (!rowStyleGenerators.isEmpty()) { return generateRowStyle(requireDataSource().get(row.getItemId()).orElse(null)); } return null; }
/** * Ajoute les alertes SVA */ protected void addAlertSva(final Boolean isCanceled, final Boolean isArchived) { if (isCanceled || isArchived) { return; } List<AlertSva> listeAlerteSva = alertSvaController.getAlertSvaEnService(); String dateSva = parametreController.getAlertSvaDat(); Boolean definitifSva = parametreController.getAlertSvaDefinitif(); if (listeAlerteSva.size() == 0) { return; } /* Ajout du css SVA */ candidatureGrid.setRowStyleGenerator(new RowStyleGenerator() { /** serialVersionUID **/ private static final long serialVersionUID = -4321160176275490773L; @Override public String getStyle(final RowReference row) { return getStyleSva((Candidature) row.getItemId(), listeAlerteSva, dateSva, definitifSva); } }); /*Legende alertes SVA*/ pvSva.setContent(createPopUpContent(listeAlerteSva, dateSva)); pvSva.setVisible(true); }