vaadin14

How to create a “spectrum” chart using Vaadin 14+

若如初见. 提交于 2021-01-29 05:05:10
问题 Is there a way in Vaadin 14 (or higher) to create what's called a "spectra" chart? Essentially, it's 99% identical to a "scatter" chart, except that a line is drawn from the point all the way down to the x-axis (please see figures 1 and 2 below which more or looks like a correct spectra chart.). I created a "hack" to achieve these quasi spectrum charts in Vaadin using "line charts" and by adding two "fake" points of intensity 0 to the left and to the right of my immediate point (as shown in

Can the text in a column header wrap to multiple lines in a Grid in Vaadin 14?

纵然是瞬间 提交于 2021-01-04 05:28:56
问题 In above image, I have a Grid created in Vaadin 14. Notice the red lines where the column titles were not wrapping. I'm trying to figure out if it's possible (and safe/easy/standard) to get the column labels to wrap (like they would in Excel, for example). Neither I nor my colleagues could figure out how to do so. 回答1: You will need to adapt the Vaadin Grid styles as in the following snippet: /* wrap text in grid column headers */ [part~="header-cell"] { white-space: normal; } Include the CSS

Can the text in a column header wrap to multiple lines in a Grid in Vaadin 14?

隐身守侯 提交于 2021-01-04 05:27:54
问题 In above image, I have a Grid created in Vaadin 14. Notice the red lines where the column titles were not wrapping. I'm trying to figure out if it's possible (and safe/easy/standard) to get the column labels to wrap (like they would in Excel, for example). Neither I nor my colleagues could figure out how to do so. 回答1: You will need to adapt the Vaadin Grid styles as in the following snippet: /* wrap text in grid column headers */ [part~="header-cell"] { white-space: normal; } Include the CSS

Can the text in a column header wrap to multiple lines in a Grid in Vaadin 14?

99封情书 提交于 2021-01-04 05:24:12
问题 In above image, I have a Grid created in Vaadin 14. Notice the red lines where the column titles were not wrapping. I'm trying to figure out if it's possible (and safe/easy/standard) to get the column labels to wrap (like they would in Excel, for example). Neither I nor my colleagues could figure out how to do so. 回答1: You will need to adapt the Vaadin Grid styles as in the following snippet: /* wrap text in grid column headers */ [part~="header-cell"] { white-space: normal; } Include the CSS

Vaadin what to add for version-control

蹲街弑〆低调 提交于 2020-12-30 03:43:51
问题 we are using Vaadin 14. Which folders in the project should we commit to the Version-Control? The folder node_modules is very large which is very time consuming, should we commit this? 回答1: node_modules directory should not be added to version control! package.json and package-lock.json keep track of npm packages and pin their versions. You may want to add these to version control, in particular, if you added any local package directly with npm. webpack.config.js is webpack configuration. You

Vaadin14 Tooltip on Combobox Selection Mouseover

拥有回忆 提交于 2020-05-15 08:16:05
问题 I'm using Vaadin 14 + Java. I have a combobox with an enum as possible select items. I want to display the enum in the combobox as possible selects, but I want to show the longer attribute "name" on mouseover / tooltip. I saw that there has been the same question for older versions of Vaadin (and there was no solution apparently) and was wondering if there is an option to do that by now. ComboBox ComboBox<MyEnum> cb = new ComboBox<>(); cb.setLabel("MyComboBox"); cb.setItems(MyEnum.values());

how to handle SSO redirect in Vaadin 14

夙愿已清 提交于 2020-04-16 05:45:48
问题 We have a Vaadin 14 (Flow) application which is fronted by an Apache reverse proxy that integrates with Gluu for authentication. When the session is not valid anymore, either because of session timeout or a logout in another browser tab/window, the Apache server will send a redirect to the Gluu server to let the user log in again. However when this happens for an internal Vaadin XHR call (Ajax request), Vaadin does not seem to handle this response very well, and shows an "Invalid JSON

{Java} Vaadin 14 - Detect user leave (closes tab, f5, etc)

扶醉桌前 提交于 2020-02-24 12:14:23
问题 I'm currently using Vaadin Flow version 14 (https://github.com/vaadin/platform/releases/tag/14.0.0) I run Java version 1.8.0_231, 64 bit. I simply want to be able to detect (in java!) whenever a user does either of these actions: Closes the current browser tab (or their browser) Clicks F5 on their keyboard, or pressed the Refresh button in their browser Clicks a link (or anything else), which redirects them away from my website I've tried lots of different things to detect this. The only

{Java} Vaadin 14 - Detect user leave (closes tab, f5, etc)

烈酒焚心 提交于 2020-02-24 12:14:07
问题 I'm currently using Vaadin Flow version 14 (https://github.com/vaadin/platform/releases/tag/14.0.0) I run Java version 1.8.0_231, 64 bit. I simply want to be able to detect (in java!) whenever a user does either of these actions: Closes the current browser tab (or their browser) Clicks F5 on their keyboard, or pressed the Refresh button in their browser Clicks a link (or anything else), which redirects them away from my website I've tried lots of different things to detect this. The only