vaadin7

Scale down the Valo theme’s spacing and widget size to that of the Reindeer theme

瘦欲@ 提交于 2021-02-18 20:17:24
问题 The new Valo theme is now the default in Vaadin 7.3 apps. This theme renders visually with widgets (buttons, fields, and so on) that are dramatically larger (wider and taller) than in the previous default Reindeer theme. This kind of look is now popular in mobile apps in Android and iOS 7/8 as well as some web sites. But those contexts are for brief usage in the range of mere minutes. In contrast, business-oriented desktop-style apps are used by people for much longer work sessions, perhaps

PDF File download In Vaadin

梦想的初衷 提交于 2021-02-08 06:50:30
问题 Im trying to download pdf file. when user want to download the file. Pdf file is downloading successfully but im not able to open that downloaded file. same code is working fine with text files. Help Required. // download button code Button downloadBtn = CommonComponents.getUploadImageButton("Download Statement", "150px"); OnDemandStreamResource myResource = createOnDemandResource(summaryReportList); OnDemandFileDownloader fileDownloader = new OnDemandFileDownloader(myResource);

PDF File download In Vaadin

帅比萌擦擦* 提交于 2021-02-08 06:48:52
问题 Im trying to download pdf file. when user want to download the file. Pdf file is downloading successfully but im not able to open that downloaded file. same code is working fine with text files. Help Required. // download button code Button downloadBtn = CommonComponents.getUploadImageButton("Download Statement", "150px"); OnDemandStreamResource myResource = createOnDemandResource(summaryReportList); OnDemandFileDownloader fileDownloader = new OnDemandFileDownloader(myResource);

PDF File download In Vaadin

安稳与你 提交于 2021-02-08 06:48:10
问题 Im trying to download pdf file. when user want to download the file. Pdf file is downloading successfully but im not able to open that downloaded file. same code is working fine with text files. Help Required. // download button code Button downloadBtn = CommonComponents.getUploadImageButton("Download Statement", "150px"); OnDemandStreamResource myResource = createOnDemandResource(summaryReportList); OnDemandFileDownloader fileDownloader = new OnDemandFileDownloader(myResource);

Resizing Vaadin Image

自作多情 提交于 2021-01-27 14:51:53
问题 I am inserting an image from file into a UI. I am creating it in Vaadin 7.6.8 by following these instructions. String basepath = VaadinService.getCurrent().getBaseDirectory().getAbsolutePath(); FileResource resource = new FileResource(new File(basepath + "/WEB-INF/images/image.png")); Image image = new Image("", resource); However I am unable to rescale or resize the image at all. The image is always being displayed in full size. Is there a way that I can scale down the image without using

Vaadin Grid : How to use bean with LocalTime field in line-based editor?

前提是你 提交于 2020-02-24 10:09:06
问题 When I try to use a line-based editor (setEditorEnabled(true), Buffered Mode), I get an error: Caused by: com.vaadin.data.util.converter.Converter$ConversionException: Unable to convert value of type java.time.LocalTime to presentation type class java.lang.String. No converter is set and the types are not compatible. at com.vaadin.data.util.converter.ConverterUtil.convertFromModel(ConverterUtil.java:116) ~[vaadin-server-7.6.8.jar:7.6.8] Grid initialization: BeanItemContainer<MealTo> container

Vaadin Grid : How to use bean with LocalTime field in line-based editor?

流过昼夜 提交于 2020-02-24 10:04:08
问题 When I try to use a line-based editor (setEditorEnabled(true), Buffered Mode), I get an error: Caused by: com.vaadin.data.util.converter.Converter$ConversionException: Unable to convert value of type java.time.LocalTime to presentation type class java.lang.String. No converter is set and the types are not compatible. at com.vaadin.data.util.converter.ConverterUtil.convertFromModel(ConverterUtil.java:116) ~[vaadin-server-7.6.8.jar:7.6.8] Grid initialization: BeanItemContainer<MealTo> container

Get user’s IP address, and other client-side info in Vaadin 7 web app

馋奶兔 提交于 2020-02-23 09:42:28
问题 In Vaadin 7, how does one get the IP address of the user’s computer/device? Can I get other information about the client? 回答1: Vaadin WebBrowser The WebBrowser class in Vaadin 7 provides an easy way to access information about the client’s computing environment. Access a WebBrowser object via the current Page object. WebBrowser webBrowser = Page.getCurrent().getWebBrowser(); IP Address The getAddress method provides the apparent IP address of the client computer/device. String ipAddress =

How use dCharts Widget in a Vaadin project?

∥☆過路亽.° 提交于 2020-02-23 07:12:48
问题 I was looking for a 'free alternative to Vaadin Charts and found DCharts Widget, but I can not find guides or complete documentation to' use. Does anyone know how to import and use this widget? The guides to get started? Vaadin: 7.4 Apache Tomcat V8 JDK 1.8 回答1: To use dCharts i have execute this step: Download .jar or copy dependency for maven/ivy from: https://vaadin.com/directory#!addon/dcharts-widget Follow the instructions in this official page based on your installation method. (I have

Couldn't capture double click event using vaadin 7

て烟熏妆下的殇ゞ 提交于 2020-02-04 04:51:25
问题 I'm learning Vaadin framework. I'm trying to capture double click event for the item click listener. But it's not working as expected. Please refer the code below, grid.addItemClickListener(e -> { if(e.isDoubleClick()) { System.out.println("Double click"); } else { System.out.println("Single click"); } }); When I do double click on the grid item, it is only considered a single click. 回答1: As mentioned in Doubleclick listener on Vaadin Grid the problem is the setEditorEnabled(true) as this