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);
}
Aggregations