Search in sources :

Example 6 with TileWidget

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);
    });
}
Also used : TileWidget(org.kie.workbench.common.screens.library.client.widgets.common.TileWidget)

Aggregations

TileWidget (org.kie.workbench.common.screens.library.client.widgets.common.TileWidget)6 HashMap (java.util.HashMap)1 HashSet (java.util.HashSet)1 POM (org.guvnor.common.services.project.model.POM)1 Test (org.junit.Test)1 ExampleProject (org.kie.workbench.common.screens.examples.model.ExampleProject)1 DefaultPlaceRequest (org.uberfire.mvp.impl.DefaultPlaceRequest)1