Example usage for com.vaadin.server FontAwesome LANGUAGE

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

Introduction

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

Prototype

FontAwesome LANGUAGE

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

Click Source Link

Usage

From source file:com.hack23.cia.web.impl.ui.application.views.common.menufactory.impl.AbstractMenuItemFactoryImpl.java

License:Apache License

/**
 * Creates the admin menu./*from w  w  w.ja v a  2 s  .c om*/
 *
 * @param mainViewItem
 *            the main view item
 */
private static void createAdminMenu(final MenuItem mainViewItem) {
    if (UserContextUtil.allowRoleInSecurityContext(ROLE_ADMIN)) {
        final MenuItem adminMenuItem = mainViewItem.addItem(ADMIN_TEXT, FontAwesome.SERVER, null);

        final MenuItem configurationMenuItem = adminMenuItem.addItem(CONFIGURATION, FontAwesome.GEARS, null);
        configurationMenuItem.addItem(APPLICATION_CONFIGURATION, FontAwesome.GEARS, COMMAND6);

        configurationMenuItem.addItem(AGENCY, FontAwesome.SERVER, COMMAND7);
        configurationMenuItem.addItem(PORTAL, FontAwesome.SITEMAP, COMMAND8);
        configurationMenuItem.addItem(COUNTRY, FontAwesome.FLAG, COMMAND9);
        configurationMenuItem.addItem(LANGUAGE, FontAwesome.LANGUAGE, COMMAND10);
        configurationMenuItem.addItem(LANGUAGE_CONTENT, FontAwesome.FILE_TEXT, COMMAND11);

        final MenuItem managementMenuItem = adminMenuItem.addItem(MANAGEMENT, FontAwesome.SERVER, null);

        managementMenuItem.addItem(AGENT_OPERATIONS_TEXT, FontAwesome.USER_SECRET, COMMAND12);

        managementMenuItem.addItem(DATA_SUMMARY_TEXT, FontAwesome.DATABASE, COMMAND13);

        managementMenuItem.addItem("Email", FontAwesome.MAIL_FORWARD, COMMAND19);

        managementMenuItem.addItem(SYSTEM_PERFORMANCE, FontAwesome.DASHBOARD, COMMAND14);

        final MenuItem userActivityMenuItem = adminMenuItem.addItem(USER_ACTIVITY, FontAwesome.DATABASE, null);
        userActivityMenuItem.addItem(APPLICATION_SESSION, FontAwesome.LAPTOP, COMMAND15);
        userActivityMenuItem.addItem(APPLICATION_EVENT, FontAwesome.ARROWS, COMMAND16);
        userActivityMenuItem.addItem(APPLICATION_EVENT_CHARTS, FontAwesome.ARROWS, COMMAND20);

        userActivityMenuItem.addItem(USERACCOUNT, FontAwesome.GROUP, COMMAND17);

    }
}

From source file:ui.button.LifetimeLanguageButton.java

License:Apache License

public LifetimeLanguageButton() {
    super("", FontAwesome.LANGUAGE);
}

From source file:ui.button.TranslateButton.java

License:Apache License

public TranslateButton(final Integer userId, final String language) {
    super(Translator.getTranslation("Translate", language), FontAwesome.LANGUAGE);
    this.userId = userId;
    this.language = language;
    addClickListener(this);
    setDescription(Translator.getTranslation("Show missing translations", language));
}

From source file:ui.form.AchievementFormTranslate.java

public AchievementFormTranslate(LifetimeForm<T> original, LifetimeForm<T> translation) {
    this.original = original;
    this.translation = translation;
    setUpOriginalForm();/*from   w  ww  . j a v  a  2 s.com*/
    setUpTranslation();
    setSizeFull();
    initBase();
    cancel = new LifetimeButtonLink("Cancel", FontAwesome.TIMES);
    translate = new LifetimeButtonLink("Translate", FontAwesome.LANGUAGE);
    cancel.addClickListener(this);
    translate.addClickListener(this);
    VerticalLayout base = new VerticalLayout(main, new HorizontalLayout(cancel, translate));
    setContent(base);
}

From source file:ui.form.LifetimeForm.java

private void initControls() {
    cancel = new LifetimeButtonSmall("Cancel", null);
    cancel.addClickListener(this);
    cancel.setCaption(cancel.getDescription());
    save = new LifetimeButtonSmall("Save/Edit/Translate", FontAwesome.LANGUAGE);
    save.addClickListener(this);
    save.setCaption(save.getDescription());
    controls = new FormLayout(new LifetimeLabel("Action", language), new HorizontalLayout(cancel, save));
    controls.setMargin(true);/*from   ww w.j  ava2  s .  c om*/
    controls.setSpacing(true);
}