Example usage for com.vaadin.server FontAwesome TROPHY

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

Introduction

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

Prototype

FontAwesome TROPHY

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

Click Source Link

Usage

From source file:ui.button.ShowAchievementsButton.java

License:Apache License

public ShowAchievementsButton(Integer userId, String language) {
    super(translate("Achievement Manager", language), FontAwesome.TROPHY);
    this.userId = userId;
    this.language = language;
    addClickListener(this);
}

From source file:ui.menu.LifetimeMenu.java

License:Apache License

private void initAchievementsOptions() {
    achievementsButton = new LifetimeButtonLink("Achievements", FontAwesome.TROPHY);
    achievementsButton.addClickListener(this);
    achievementsButton.addFocusListener(this);

    ShowAchievementsButton showAchievements = new ShowAchievementsButton(userId, language);
    ViewCVButton cvButton = new ViewCVButton(userId, language);
    ShowCertificatesButton certsButton = new ShowCertificatesButton(userId, language);

    VerticalLayout options = new VerticalLayout();
    options.setStyleName("v-menu-options");
    options.addComponent(showAchievements);
    options.addComponent(cvButton);//ww w .j a  v a  2  s .c  om
    options.addComponent(certsButton);
    menu.put(achievementsButton, options);
    //secondary.addComponent(achievementOptions);
}