Search in sources :

Example 1 with ListGroup

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;
}
Also used : Anchor(org.gwtbootstrap3.client.ui.Anchor) ListGroup(org.gwtbootstrap3.client.ui.ListGroup) ListGroupItem(org.gwtbootstrap3.client.ui.ListGroupItem) Span(org.gwtbootstrap3.client.ui.html.Span)

Aggregations

Anchor (org.gwtbootstrap3.client.ui.Anchor)1 ListGroup (org.gwtbootstrap3.client.ui.ListGroup)1 ListGroupItem (org.gwtbootstrap3.client.ui.ListGroupItem)1 Span (org.gwtbootstrap3.client.ui.html.Span)1