use of com.vaadin.server.ExternalResource in project cia by Hack23.
the class PageLinkFactoryImpl method addPartyPageLink.
@Override
public Link addPartyPageLink(final ViewRiksdagenParty data) {
final Link pageLink = new Link(PARTY + data.getPartyName(), new ExternalResource(PAGE_PREFIX + UserViews.PARTY_VIEW_NAME + PAGE_SEPARATOR + data.getPartyId()));
pageLink.setId(ViewAction.VISIT_PARTY_VIEW.name() + PAGE_SEPARATOR + data.getPartyId());
pageLink.setIcon(VaadinIcons.GROUP);
return pageLink;
}
use of com.vaadin.server.ExternalResource in project cia by Hack23.
the class PageLinkFactoryImpl method createAdminPagingLink.
@Override
public Link createAdminPagingLink(final String label, final String page, final String pageId, final String pageNr) {
final Link pageLink = new Link(label, new ExternalResource(PAGE_PREFIX + page + PAGE_SEPARATOR + "[" + pageNr + "]"));
pageLink.setId(page + "ShowPage" + PAGE_SEPARATOR + pageNr);
pageLink.setIcon(VaadinIcons.SERVER);
return pageLink;
}
use of com.vaadin.server.ExternalResource in project cia by Hack23.
the class PageLinkFactoryImpl method createMainViewPageLink.
@Override
public Link createMainViewPageLink() {
final Link pageLink = new Link(MAIN_VIEW_LINK_TEXT, new ExternalResource(LINK_SEPARATOR + CommonsViews.MAIN_VIEW_NAME));
pageLink.setId(ViewAction.VISIT_MAIN_VIEW.name());
pageLink.setIcon(VaadinIcons.STAR);
return pageLink;
}
use of com.vaadin.server.ExternalResource in project cia by Hack23.
the class PageLinkFactoryImpl method addMinistryPageLink.
@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(VaadinIcons.GROUP);
return pageLink;
}
use of com.vaadin.server.ExternalResource in project cia by Hack23.
the class PageLinkFactoryImpl method createRegisterPageLink.
@Override
public Link createRegisterPageLink() {
final Link pageLink = new Link("Register", new ExternalResource(LINK_SEPARATOR + CommonsViews.MAIN_VIEW_NAME + PAGE_SEPARATOR + ApplicationPageMode.REGISTER));
pageLink.setId(ViewAction.VISIT_REGISTER.name());
pageLink.setIcon(VaadinIcons.RANDOM);
return pageLink;
}
Aggregations