Example usage for com.vaadin.server FontAwesome DELICIOUS

List of usage examples for com.vaadin.server FontAwesome DELICIOUS

Introduction

In this page you can find the example usage for com.vaadin.server FontAwesome DELICIOUS.

Prototype

FontAwesome DELICIOUS

To view the source code for com.vaadin.server FontAwesome DELICIOUS.

Click Source Link

Usage

From source file:gov.va.ehtac.appsonfhir.ui.Tools.java

public Tools() {
    setCaption("Patient Tools");
    final HorizontalButtonGroup hGroup = new HorizontalButtonGroup();
    Button weightBTN = new Button("Weight Scale");
    weightBTN.setIcon(FontAwesome.DELICIOUS);
    weightBTN.setWidth("310px");
    Button heartRateBTN = new Button("Heart Rate");
    heartRateBTN.setIcon(FontAwesome.HEART);
    heartRateBTN.setWidth("310px");
    Button bloodPressureBTN = new Button("Blood Pressure");
    bloodPressureBTN.setIcon(FontAwesome.HEART_O);
    bloodPressureBTN.setWidth("310px");
    Button glucoseBTN = new Button("Diabetes Management");
    glucoseBTN.setIcon(FontAwesome.FILE_CODE_O);
    glucoseBTN.setWidth("310px");
    hGroup.addComponent(weightBTN);/*  w w w  .  j  a v a2s  .c  o  m*/
    hGroup.addComponent(heartRateBTN);
    hGroup.addComponent(bloodPressureBTN);
    hGroup.addComponent(glucoseBTN);

    setContent(new CssLayout(hGroup));
}