Example usage for com.vaadin.server FontAwesome FACEBOOK

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

Introduction

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

Prototype

FontAwesome FACEBOOK

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

Click Source Link

Usage

From source file:com.esofthead.mycollab.shell.view.MainViewImpl.java

License:Open Source License

private ComponentContainer createFooter() {
    MHorizontalLayout footer = new MHorizontalLayout().withFullWidth()
            .withMargin(new MarginInfo(false, true, false, true));
    footer.setStyleName("footer");
    footer.setHeight("30px");

    Div companyInfoDiv = new Div().appendText("Powered by ")
            .appendChild(new A("https://www.mycollab.com", "_blank").appendText("MyCollab"))
            .appendText(" © " + new LocalDate().getYear());
    ELabel companyInfoLbl = new ELabel(companyInfoDiv.write(), ContentMode.HTML).withWidth("-1px");
    footer.with(companyInfoLbl).withAlign(companyInfoLbl, Alignment.MIDDLE_LEFT);

    Div socialLinksDiv = new Div().appendText(FontAwesome.RSS.getHtml())
            .appendChild(new A("https://www.mycollab.com/blog", "_blank").appendText(" Blog"))
            .appendText("  " + FontAwesome.REPLY_ALL.getHtml())
            .appendChild(new A("http://support.mycollab.com", "_blank").appendText(" Support"));

    if (SiteConfiguration.isCommunityEdition()) {
        socialLinksDiv.appendText("  " + FontAwesome.THUMBS_O_UP.getHtml())
                .appendChild(new A("http://sourceforge.net/projects/mycollab/reviews/new", "_blank")
                        .appendText("" + " Rate us"));
    }/*from  w w w. j  ava2 s . c om*/

    socialLinksDiv.appendText("  " + FontAwesome.FACEBOOK.getHtml())
            .appendChild(new A("https://www.facebook.com/mycollab2", "_blank").appendText(" FB page"));
    socialLinksDiv.appendText("  " + FontAwesome.TWITTER.getHtml())
            .appendChild(new A(
                    "https://twitter.com/intent/tweet?text=I am using MyCollab to manage all project "
                            + "activities, accounts and it works great @mycollabdotcom &source=webclient",
                    "_blank").appendText(" Tweet"));

    ELabel socialsLbl = new ELabel(socialLinksDiv.write(), ContentMode.HTML).withWidth("-1px");
    footer.with(socialsLbl).withAlign(socialsLbl, Alignment.MIDDLE_RIGHT);
    return footer;
}

From source file:com.javalego.store.environment.BaseEnvironment.java

@Override
public synchronized Collection<RepositoryIcons<Icon>> getRepositoriesIcons() throws LocalizedException {

    if (repositories != null) {
        return repositories;
    }// ww  w.j  a v  a  2 s .  c o  m

    repositories = new ArrayList<RepositoryIcons<Icon>>();

    // Iconos de redes sociales usando FonAwesome icons.
    FontAwesomeIcons fa = FontAwesomeIcons.getCurrent();
    fa.addIcon(MenuIcons2.BOOK, FontAwesome.BOOK);
    fa.addIcon(MenuIcons2.MONITOR, FontAwesome.DESKTOP);
    fa.addIcon(MenuIcons2.SOURCECODE, FontAwesome.CODE);
    fa.addIcon(MenuIcons2.GITHUB, FontAwesome.GITHUB);
    fa.addIcon(MenuIcons2.METRICS, FontAwesome.BAR_CHART_O);
    fa.addIcon(MenuIcons2.WEB, FontAwesome.GLOBE);
    fa.addIcon(MenuIcons2.TWITTER, FontAwesome.TWITTER);
    fa.addIcon(MenuIcons2.FORUM, FontAwesome.USERS);
    fa.addIcon(MenuIcons2.BLOG, FontAwesome.WORDPRESS);
    fa.addIcon(MenuIcons2.LINKEDIN, FontAwesome.LINKEDIN);
    fa.addIcon(MenuIcons2.FACEBOOK, FontAwesome.FACEBOOK);
    fa.addIcon(MenuIcons2.GOOGLEPLUS, FontAwesome.GOOGLE_PLUS);
    fa.addIcon(MenuIcons2.EMAIL, FontAwesome.ENVELOPE);
    fa.addIcon(MenuIcons2.TOOLS, FontAwesome.COGS);
    fa.addIcon(MenuIcons2.LICENSE, FontAwesome.FILE);

    // Resto de iconos
    ResourceIconsVaadin rep = ResourceIconsVaadin.getCurrent();
    //rep.setLocale(Locale.US);
    rep.load(MenuIcons.class, "/menu_icons");
    rep.load(MenuIcons2.class, "/menu_icons2");
    rep.load(ProviderIcons.class, "/provider_icons");
    rep.load(IconEditor.class, "/icons_editor");

    repositories.add(fa);
    repositories.add(rep);

    return repositories;
}

From source file:ui.button.FacebookPostButton.java

License:Apache License

public FacebookPostButton(Integer userId, String language) {
    super("Facebook", FontAwesome.FACEBOOK);
    this.userId = userId;
    this.language = language;
    addClickListener(this);
}