Example usage for com.vaadin.server FontAwesome BUG

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

Introduction

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

Prototype

FontAwesome BUG

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

Click Source Link

Usage

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

License:Apache License

@Override
public void createPoliticianMenuBar(final MenuBar menuBar, final String pageId) {
    initApplicationMenuBar(menuBar);//from  w  w w  .  j a  v a2s.c o m

    applicationMenuItemFactory.addRankingMenu(menuBar);

    politicianRankingMenuItemFactory
            .createPoliticianRankingTopics(menuBar.addItem(POLITICIAN_RANKING, FontAwesome.BUG, null));

    final MenuItem politicanItem = menuBar.addItem("Politician " + pageId, FontAwesome.BUG, null);

    politicanItem.addItem(OVERVIEW_TEXT, FontAwesome.BUG,
            new PageModeMenuCommand(UserViews.POLITICIAN_VIEW_NAME, PageMode.OVERVIEW, pageId));
    politicanItem.addItem(CHARTS_TEXT, FontAwesome.BUG,
            new PageModeMenuCommand(UserViews.POLITICIAN_VIEW_NAME, PageMode.CHARTS, pageId));
    politicanItem.addItem(INDICATORS_TEXT, FontAwesome.BUG,
            new PageModeMenuCommand(UserViews.POLITICIAN_VIEW_NAME, PageMode.INDICATORS, pageId));

    final MenuItem rolesItem = politicanItem.addItem(ROLES_TEXT, FontAwesome.BUG, null);

    rolesItem.addItem(TOTAL_EXPERIENCE, FontAwesome.BUG, new PageModeMenuCommand(UserViews.POLITICIAN_VIEW_NAME,
            PoliticianPageMode.ROLESUMMARY.toString(), pageId));

    rolesItem.addItem(ROLE_LIST, FontAwesome.BUG, new PageModeMenuCommand(UserViews.POLITICIAN_VIEW_NAME,
            PoliticianPageMode.ROLELIST.toString(), pageId));

    rolesItem.addItem(ROLE_GHANT_TEXT, FontAwesome.BUG, new PageModeMenuCommand(UserViews.POLITICIAN_VIEW_NAME,
            PoliticianPageMode.ROLEGHANT.toString(), pageId));

    final MenuItem documentItem = politicanItem.addItem(DOCUMENTS_TEXT, FontAwesome.BUG, null);

    documentItem.addItem(DOCUMENT_ACTIVITY_TEXT, FontAwesome.BUG, new PageModeMenuCommand(
            UserViews.POLITICIAN_VIEW_NAME, PoliticianPageMode.DOCUMENTACTIVITY.toString(), pageId));

    documentItem.addItem(DOCUMENT_HISTORY_TEXT, FontAwesome.BUG, new PageModeMenuCommand(
            UserViews.POLITICIAN_VIEW_NAME, PoliticianPageMode.DOCUMENTHISTORY.toString(), pageId));

    final MenuItem ballotItem = politicanItem.addItem(BALLOTS_TEXT, FontAwesome.BUG, null);

    ballotItem.addItem(VOTE_HISTORY, FontAwesome.BUG, new PageModeMenuCommand(UserViews.POLITICIAN_VIEW_NAME,
            PoliticianPageMode.VOTEHISTORY.toString(), pageId));

    ballotItem.addItem(BALLOT_DECISION_SUMMARY_TEXT, FontAwesome.BUG, new PageModeMenuCommand(
            UserViews.POLITICIAN_VIEW_NAME, PoliticianPageMode.BALLOTDECISIONSUMMARY.toString(), pageId));

    politicanItem.addItem(PAGE_VISIT_HISTORY_TEXT, FontAwesome.BUG,
            new PageModeMenuCommand(UserViews.POLITICIAN_VIEW_NAME, PageMode.PAGEVISITHISTORY, pageId));

}

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

License:Apache License

@Override
public void createOverviewPage(final VerticalLayout panelContent, final String pageId) {
    final GridLayout grid = createGridLayout(panelContent);

    createButtonLink(grid, OVERVIEW_TEXT, FontAwesome.BUG,
            new PageModeMenuCommand(UserViews.POLITICIAN_VIEW_NAME, PageMode.OVERVIEW, pageId),
            "Default description");
    createButtonLink(grid, CHARTS_TEXT, FontAwesome.BUG,
            new PageModeMenuCommand(UserViews.POLITICIAN_VIEW_NAME, PageMode.CHARTS, pageId),
            "Default description");
    createButtonLink(grid, INDICATORS_TEXT, FontAwesome.BUG,
            new PageModeMenuCommand(UserViews.POLITICIAN_VIEW_NAME, PageMode.INDICATORS, pageId),
            "Default description");

    createButtonLink(grid, TOTAL_EXPERIENCE, FontAwesome.BUG,
            new PageModeMenuCommand(UserViews.POLITICIAN_VIEW_NAME, PoliticianPageMode.ROLESUMMARY.toString(),
                    pageId),// ww  w  .  j a v  a  2  s.  c  o  m
            "Default description");

    createButtonLink(grid, ROLE_LIST, FontAwesome.BUG, new PageModeMenuCommand(UserViews.POLITICIAN_VIEW_NAME,
            PoliticianPageMode.ROLELIST.toString(), pageId), "Default description");

    createButtonLink(grid, ROLE_GHANT_TEXT, FontAwesome.BUG,
            new PageModeMenuCommand(UserViews.POLITICIAN_VIEW_NAME, PoliticianPageMode.ROLEGHANT.toString(),
                    pageId),
            "Default description");

    createButtonLink(grid, DOCUMENT_ACTIVITY_TEXT, FontAwesome.BUG,
            new PageModeMenuCommand(UserViews.POLITICIAN_VIEW_NAME,
                    PoliticianPageMode.DOCUMENTACTIVITY.toString(), pageId),
            "Default description");

    createButtonLink(grid, DOCUMENT_HISTORY_TEXT, FontAwesome.BUG,
            new PageModeMenuCommand(UserViews.POLITICIAN_VIEW_NAME,
                    PoliticianPageMode.DOCUMENTHISTORY.toString(), pageId),
            "Default description");

    createButtonLink(grid, VOTE_HISTORY, FontAwesome.BUG,
            new PageModeMenuCommand(UserViews.POLITICIAN_VIEW_NAME, PoliticianPageMode.VOTEHISTORY.toString(),
                    pageId),
            "Default description");

    createButtonLink(grid, BALLOT_DECISION_SUMMARY_TEXT, FontAwesome.BUG,
            new PageModeMenuCommand(UserViews.POLITICIAN_VIEW_NAME,
                    PoliticianPageMode.BALLOTDECISIONSUMMARY.toString(), pageId),
            "Default description");

    createButtonLink(grid, PAGE_VISIT_HISTORY_TEXT, FontAwesome.BUG,
            new PageModeMenuCommand(UserViews.POLITICIAN_VIEW_NAME, PageMode.PAGEVISITHISTORY, pageId),
            "Default description");

}

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

License:Apache License

@Override
public void createPoliticianRankingMenuBar(final MenuBar menuBar) {
    initApplicationMenuBar(menuBar);/*from w  ww . j a  v  a  2 s . co m*/

    applicationMenuItemFactory.addRankingMenu(menuBar);

    createPoliticianRankingTopics(menuBar.addItem(POLITICIAN_RANKING, FontAwesome.BUG, null));
}

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

License:Apache License

@Override
public void createPoliticianRankingTopics(final MenuItem politicianMenuItem) {
    politicianMenuItem.addItem(OVERVIEW_TEXT, FontAwesome.BUG, COMMAND18);

    final MenuItem listByTopic = politicianMenuItem.addItem(RANKING_LIST_BY_TOPIC_TEXT, FontAwesome.BUG, null);

    final MenuItem listItem = listByTopic.addItem(POLITICAL_EXPERIENCE_SUMMARY, FontAwesome.BUG, COMMAND19);
    listItem.setDescription(CURRENT_AND_PAST_ASSIGNMENTS_AND_SUMMARY_EXPERIENCE_IN_DAYS);

    final MenuItem chartByTopic = politicianMenuItem.addItem(CHART_BY_TOPIC_TEXT, FontAwesome.BUG, null);

    chartByTopic.addItem(ALL_PARTIES, FontAwesome.GROUP, COMMAND21);

    chartByTopic.addItem(CURRENT_PARTIES, FontAwesome.GROUP, COMMAND22);

    politicianMenuItem.addItem(PAGE_VISIT_HISTORY_TEXT, FontAwesome.BUG, COMMAND20);

}

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

License:Apache License

@Override
public void createOverviewPage(final VerticalLayout panelContent) {
    final GridLayout grid = createGridLayout(panelContent);

    createButtonLink(grid, POLITICAL_EXPERIENCE_SUMMARY, FontAwesome.BUG, COMMAND19, "Default description");

    createButtonLink(grid, PAGE_VISIT_HISTORY_TEXT, FontAwesome.BUG, COMMAND20, "Default description");

}

From source file:com.hack23.cia.web.impl.ui.application.views.common.pagelinks.impl.PageLinkFactoryImpl.java

License:Apache License

@Override
public Link createPoliticianRankingViewPageLink() {
    final Link pageLink = new Link(POLITICIAN_RANKING_LINK_TEXT,
            new ExternalResource(LINK_SEPARATOR + UserViews.POLITICIAN_RANKING_VIEW_NAME));
    pageLink.setId(ViewAction.VISIT_POLITICIAN_RANKING_VIEW.name());
    pageLink.setIcon(FontAwesome.BUG);
    return pageLink;
}

From source file:com.hack23.cia.web.impl.ui.application.views.common.pagelinks.impl.PageLinkFactoryImpl.java

License:Apache License

@Override
public Link createPoliticianPageLink(final PersonData personData) {
    final Link pageLink = new Link(POLITICIAN + personData.getFirstName() + ' ' + personData.getLastName(),
            new ExternalResource(
                    PAGE_PREFIX + UserViews.POLITICIAN_VIEW_NAME + PAGE_SEPARATOR + personData.getId()));
    pageLink.setId(ViewAction.VISIT_POLITICIAN_VIEW.name() + PAGE_SEPARATOR + personData.getId());
    pageLink.setIcon(FontAwesome.BUG);
    return pageLink;
}