Search in sources :

Example 1 with JasperReportEmailWindow

use of au.com.vaadinutils.jasper.scheduler.JasperReportEmailWindow in project VaadinUtils by rlsutton1.

the class JasperReportLayout method createEmailButton.

private void createEmailButton(String buttonHeight, HorizontalLayout buttonContainer) {
    emailButton = new NativeButton();
    emailButton.setIcon(new ExternalResource("images/seanau/Send Email_32.png"));
    emailButton.setDescription("Email");
    emailButton.setWidth("50");
    emailButton.setHeight(buttonHeight);
    emailButton.addClickListener(new ClickEventLogged.ClickListener() {

        private static final long serialVersionUID = 7207441556779172217L;

        @Override
        public void clicked(ClickEvent event) {
            new JasperReportEmailWindow(reportProperties, builder.getReportParameters());
        }
    });
    buttonContainer.addComponent(emailButton);
}
Also used : NativeButton(com.vaadin.ui.NativeButton) ClickEventLogged(au.com.vaadinutils.listener.ClickEventLogged) ClickEvent(com.vaadin.ui.Button.ClickEvent) JasperReportEmailWindow(au.com.vaadinutils.jasper.scheduler.JasperReportEmailWindow) ExternalResource(com.vaadin.server.ExternalResource)

Aggregations

JasperReportEmailWindow (au.com.vaadinutils.jasper.scheduler.JasperReportEmailWindow)1 ClickEventLogged (au.com.vaadinutils.listener.ClickEventLogged)1 ExternalResource (com.vaadin.server.ExternalResource)1 ClickEvent (com.vaadin.ui.Button.ClickEvent)1 NativeButton (com.vaadin.ui.NativeButton)1