use of org.gwtbootstrap3.client.ui.ListGroup in project ovirt-engine by oVirt.
the class MenuView method createSecondaryMenuItem.
private IsWidget createSecondaryMenuItem(String label, String href) {
ListGroup listGroup = new ListGroup();
ListGroupItem item = new ListGroupItem();
listGroup.add(item);
Anchor secondaryMenuItemAnchor = new Anchor(hashifyString(href));
Span labelSpan = new Span();
labelSpan.getElement().setInnerSafeHtml(SafeHtmlUtils.fromString(label));
labelSpan.addStyleName(PatternflyStyles.LIST_GROUP_ITEM_VALUE);
secondaryMenuItemAnchor.add(labelSpan);
item.add(secondaryMenuItemAnchor);
return listGroup;
}
Aggregations