Search in sources :

Example 31 with ExternalResource

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;
}
Also used : ExternalResource(com.vaadin.server.ExternalResource) Link(com.vaadin.ui.Link)

Example 32 with ExternalResource

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;
}
Also used : ExternalResource(com.vaadin.server.ExternalResource) Link(com.vaadin.ui.Link)

Example 33 with ExternalResource

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;
}
Also used : ExternalResource(com.vaadin.server.ExternalResource) Link(com.vaadin.ui.Link)

Example 34 with ExternalResource

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;
}
Also used : ExternalResource(com.vaadin.server.ExternalResource) Link(com.vaadin.ui.Link)

Example 35 with ExternalResource

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;
}
Also used : ExternalResource(com.vaadin.server.ExternalResource) Link(com.vaadin.ui.Link)

Aggregations

ExternalResource (com.vaadin.server.ExternalResource)43 Link (com.vaadin.ui.Link)24 VerticalLayout (com.vaadin.ui.VerticalLayout)18 Label (com.vaadin.ui.Label)13 PostConstruct (javax.annotation.PostConstruct)11 Button (com.vaadin.ui.Button)8 HorizontalLayout (com.vaadin.ui.HorizontalLayout)7 Resource (com.vaadin.server.Resource)5 Point (org.vaadin.addon.leaflet.shared.Point)5 StreamResource (com.vaadin.server.StreamResource)4 BrowserFrame (com.vaadin.ui.BrowserFrame)4 ClickEvent (com.vaadin.ui.Button.ClickEvent)4 LMap (org.vaadin.addon.leaflet.LMap)3 Bounds (org.vaadin.addon.leaflet.shared.Bounds)3 ReportSave (au.com.vaadinutils.jasper.scheduler.entities.ReportSave)2 ReportSaveParameter (au.com.vaadinutils.jasper.scheduler.entities.ReportSaveParameter)2 ClickEventLogged (au.com.vaadinutils.listener.ClickEventLogged)2 ComboBox (com.vaadin.ui.ComboBox)2 TextField (com.vaadin.ui.TextField)2 HashMap (java.util.HashMap)2