Example usage for com.vaadin.server FontAwesome USER

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

Introduction

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

Prototype

FontAwesome USER

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

Click Source Link

Usage

From source file:ui.button.UserHomeButton.java

License:Apache License

public UserHomeButton(String language) {
    super(Translator.getTranslation("My Home", language), FontAwesome.USER);
    this.text = Translator.getTranslation("My Home", language);
    setDescription(text);//from w  ww .  ja v  a 2 s. c  om
    addClickListener(this);
}

From source file:ui.menu.LifetimeMenu.java

License:Apache License

private void initProfileOptions() {
    profileButton = new LifetimeButtonLink("Account", FontAwesome.USER);
    profileButton.addClickListener(this);
    profileButton.addFocusListener(this);
    AddPhotoButton addPhotoButton = new AddPhotoButton(userId, language);

    VerticalLayout options = new VerticalLayout();
    options.setStyleName("v-menu-options");
    options.addComponent(addPhotoButton);
    options.setComponentAlignment(addPhotoButton, Alignment.MIDDLE_CENTER);
    menu.put(profileButton, options);// ww  w .j  a va2  s .c  o m
    //secondary.addComponent(profileOptions);
}