Example usage for com.vaadin.server FontAwesome HEART_O

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

Introduction

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

Prototype

FontAwesome HEART_O

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

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  .  java  2  s.com
    hGroup.addComponent(heartRateBTN);
    hGroup.addComponent(bloodPressureBTN);
    hGroup.addComponent(glucoseBTN);

    setContent(new CssLayout(hGroup));
}