use of org.gwtbootstrap3.client.ui.Breadcrumbs in project ovirt-engine by oVirt.
the class OvirtBreadCrumbsView method buildCrumbs.
@Override
public void buildCrumbs(String modelTitle, String modelHref) {
// Clear the existing path.
container.clear();
breadCrumbs = new Breadcrumbs();
container.add(breadCrumbs);
// Add primary menu label.
String primaryLabel = menuDetailsProvider.getLabelFromHref(modelHref);
if (primaryLabel != null) {
breadCrumbs.add(new ListItem(primaryLabel));
}
menuDetailsProvider.setMenuActive(modelHref);
// Add main model name.
AnchorListItem mainModelAnchor = new AnchorListItem(modelTitle);
// $NON-NLS-1$
mainModelAnchor.setHref("#" + modelHref);
breadCrumbs.add(mainModelAnchor);
if (currentSelectedItemWidget != null && !hideSelectedWidget) {
breadCrumbs.add(currentSelectedItemWidget);
}
}
Aggregations