List of usage examples for com.vaadin.server FontAwesome TROPHY
FontAwesome TROPHY
To view the source code for com.vaadin.server FontAwesome TROPHY.
Click Source Link
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); }