List of usage examples for com.vaadin.ui Link setIcon
@Override public void setIcon(Resource icon)
From source file:com.hack23.cia.web.impl.ui.application.views.common.pagelinks.impl.PageLinkFactoryImpl.java
License:Apache License
@Override public Link createCountryRankingViewPageLink() { final Link pageLink = new Link(COUNTRY_RANKING_LINK_TEXT, new ExternalResource(LINK_SEPARATOR + UserViews.COUNTRY_RANKING_VIEW_NAME)); pageLink.setId(ViewAction.VISIT_TEST_CHART_VIEW.name()); pageLink.setIcon(FontAwesome.FLAG); return pageLink; }
From source file:com.hack23.cia.web.impl.ui.application.views.common.pagelinks.impl.PageLinkFactoryImpl.java
License:Apache License
@Override public Link createParliamentViewPageLink() { final Link pageLink = new Link(PARLIAMENT_RANKING_LINK_TEXT, new ExternalResource(LINK_SEPARATOR + UserViews.PARLIAMENT_RANKING_VIEW_NAME)); pageLink.setId(ViewAction.VISIT_TEST_CHART_VIEW.name()); pageLink.setIcon(FontAwesome.INSTITUTION); return pageLink; }
From source file:com.hack23.cia.web.impl.ui.application.views.common.pagelinks.impl.PageLinkFactoryImpl.java
License:Apache License
@Override public Link createMinistryRankingViewPageLink() { final Link pageLink = new Link(MINISTRY_RANKING_LINK_TEXT, new ExternalResource(LINK_SEPARATOR + UserViews.MINISTRY_RANKING_VIEW_NAME)); pageLink.setId(ViewAction.VISIT_MINISTRY_RANKING_VIEW.name()); pageLink.setIcon(FontAwesome.GROUP); return pageLink; }
From source file:com.hack23.cia.web.impl.ui.application.views.common.pagelinks.impl.PageLinkFactoryImpl.java
License:Apache License
@Override public Link createCommitteeRankingViewPageLink() { final Link pageLink = new Link(COMMITTEE_RANKING_LINK_TEXT, new ExternalResource(LINK_SEPARATOR + UserViews.COMMITTEE_RANKING_VIEW_NAME)); pageLink.setId(ViewAction.VISIT_COMMITTEE_RANKING_VIEW.name()); pageLink.setIcon(FontAwesome.GROUP); return pageLink; }
From source file:com.hack23.cia.web.impl.ui.application.views.common.pagelinks.impl.PageLinkFactoryImpl.java
License:Apache License
@Override public Link createPartyRankingViewPageLink() { final Link pageLink = new Link(PARTY_RANKING_LINK_TEXT, new ExternalResource(LINK_SEPARATOR + UserViews.PARTY_RANKING_VIEW_NAME)); pageLink.setId(ViewAction.VISIT_PARTY_RANKING_VIEW.name()); pageLink.setIcon(FontAwesome.GROUP); return pageLink; }
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 createAdminDataSummaryViewPageLink() { final Link pageLink = new Link(ADMIN_DATA_SUMMARY_LINK_TEXT, new ExternalResource(LINK_SEPARATOR + AdminViews.ADMIN_DATA_SUMMARY_VIEW_NAME)); pageLink.setId(ViewAction.VISIT_ADMIN_DATA_SUMMARY_VIEW.name()); pageLink.setIcon(FontAwesome.DATABASE); return pageLink; }
From source file:com.hack23.cia.web.impl.ui.application.views.common.pagelinks.impl.PageLinkFactoryImpl.java
License:Apache License
@Override public Link createAdminAgentOperationViewPageLink() { final Link pageLink = new Link(ADMIN_AGENT_OPERATIONS_LINK_TEXT, new ExternalResource(LINK_SEPARATOR + AdminViews.ADMIN_AGENT_OPERATIONVIEW_NAME)); pageLink.setId(ViewAction.VISIT_ADMIN_AGENT_OPERATION_VIEW.name()); pageLink.setIcon(FontAwesome.USER_SECRET); return pageLink; }
From source file:com.hack23.cia.web.impl.ui.application.views.common.pagelinks.impl.PageLinkFactoryImpl.java
License:Apache License
@Override public Link addCommitteePageLink(final ViewRiksdagenCommittee data) { final Link pageLink = new Link(COMMITTEE + data.getEmbeddedId().getDetail(), new ExternalResource( PAGE_PREFIX + UserViews.COMMITTEE_VIEW_NAME + PAGE_SEPARATOR + data.getEmbeddedId().getOrgCode())); pageLink.setId(ViewAction.VISIT_COMMITTEE_VIEW.name() + PAGE_SEPARATOR + data.getEmbeddedId().getOrgCode()); pageLink.setIcon(FontAwesome.GROUP); return pageLink; }
From source file:com.hack23.cia.web.impl.ui.application.views.common.pagelinks.impl.PageLinkFactoryImpl.java
License:Apache License
@Override public Link addMinistryPageLink(final ViewRiksdagenMinistry data) { final Link pageLink = new Link(MINISTRY + data.getNameId(), new ExternalResource( PAGE_PREFIX + UserViews.MINISTRY_VIEW_NAME + PAGE_SEPARATOR + data.getNameId())); pageLink.setId(ViewAction.VISIT_MINISTRY_VIEW.name() + PAGE_SEPARATOR + data.getNameId()); pageLink.setIcon(FontAwesome.GROUP); return pageLink; }