use of org.kie.workbench.common.screens.library.client.widgets.common.TileWidget in project kie-wb-common by kiegroup.
the class OrganizationalUnitsScreen method refresh.
public void refresh() {
view.clearOrganizationalUnits();
organizationalUnits.forEach(organizationalUnit -> {
final TileWidget tileWidget = organizationalUnitTileWidgets.get();
tileWidget.init(organizationalUnit.getName(), view.getNumberOfContributorsLabel(organizationalUnit.getContributors().size()), String.valueOf(organizationalUnit.getRepositories().size()), view.getNumberOfProjectsLabel(organizationalUnit.getRepositories().size()), () -> open(organizationalUnit));
view.addOrganizationalUnit(tileWidget);
});
}
Aggregations