This answer is based on @sdidsa suggestion:
tbInventarioView.setRowFactory(tv -> {
TableRow<Inventario> row = new TableRow<>(){
@Override
protected void updateItem(Inventario item, boolean empty) {
super.updateItem(item, empty);
if (item == null || item.getFlAtivo() == false) {
setStyle("");
} else if (item.getFlAtivo()) {
setStyle("-fx-text-background-color: blue;");
} else {
setStyle("");
}
}};
row.setOnMouseClicked(event -> {
if (event.getClickCount() == 2 && (!row.isEmpty())) {
Inventario rowData = row.getItem();
doubleClickShow(rowData);
}
});
return row;
});