vaadin12

Does highcharts (or vaadin) have built-in abilities to use an algorithm like Ramer–Douglas–Peucker?

早过忘川 提交于 2020-01-05 06:56:20
问题 Using Vaadin's charts (which ultimately uses HighCharts), I'm trying to plot a line graph with over 10,000 points. It actually works reasonably quickly (a couple seconds to plot). However, I wonder if it can be much faster, as I came accross a similar problem when using JavaFx charts and discovered that people have implemented a solution using the "Ramer–Douglas–Peucker algorithm" to reduce the number of datapoints in such a manner that it's basically noticeable to the human eye when its

Vaadin 12 pass object to JavaScript's function: Can't encode class

落花浮王杯 提交于 2020-01-04 06:27:25
问题 Vaadin 12, Kotlin project In my myPage.html I has javascript: myObject.redirectToCheckout({ sessionId: "1111_2222", }). So I need to call javaScript function redirectToCheckout from Vaadin 12 and pass correct param as object . So here my Vaadin snippet: import com.vaadin.flow.component.dependency.HtmlImport import com.vaadin.flow.component.dependency.JavaScript import com.vaadin.flow.component.html.Div import com.vaadin.flow.router.Route import com.vaadin.flow.server.VaadinRequest import java

Vaadin 12 pass object to JavaScript's function: Can't encode class

独自空忆成欢 提交于 2020-01-04 06:26:33
问题 Vaadin 12, Kotlin project In my myPage.html I has javascript: myObject.redirectToCheckout({ sessionId: "1111_2222", }). So I need to call javaScript function redirectToCheckout from Vaadin 12 and pass correct param as object . So here my Vaadin snippet: import com.vaadin.flow.component.dependency.HtmlImport import com.vaadin.flow.component.dependency.JavaScript import com.vaadin.flow.component.html.Div import com.vaadin.flow.router.Route import com.vaadin.flow.server.VaadinRequest import java

Vaadin (Flow): Navigating to destination with a shared object

拜拜、爱过 提交于 2020-01-02 08:34:31
问题 Problem: I currently have a grid that displays content of type SomeModel . When I click an entry of that Grid I would like to navigate to a view that takes an object as its input to display the entries content. Implementation: To achive this behaviour I created a DetailLayout like this: public DetailLayout extends FlexLayout implements HasUrlParameter<SomeModel>{ /* skipped some details */ @Override public void setParameter(BeforeEvent event, Host parameter) { /* This is where I expected to

Hyperlink inside label field in Vaadin 12

断了今生、忘了曾经 提交于 2019-12-12 22:19:34
问题 In Vaadin 12, I can't seem to create a hyperlink (or for that matter, any "normal" http entries) inside a label field. It just ends up displaying my commands as text. Here's my code: final Label lblRunMs = new Label("<ol><li>Please now run your mass spectrometer (MS) using the gs-DIA method files built in the previous step.</li><li>While the MS is running, the generated MS files will be automatically and in near real-time imported (eg ~60 seconds after the MS files have been created) imported

Vaadin 12, javaScript: java.lang.IllegalArgumentException: Can't encode class java.util.HashMap to json

我与影子孤独终老i 提交于 2019-12-11 07:37:01
问题 In my Vaadin 12 and Kotlin project: Here myhtml.html <!DOCTYPE html> <html> <head> <script src="https://myjavascript.js"></script> <script> var checkObject = Util( 'pk_aaaa', { betas: ['bbbb_4'] } ); window.checkObject = checkObject; function goToCheckout(){ checkObject.redirectToCheckout({ sessionId: "abcddddddddd", }) } </script> </head> </html> And this page success call method redirectToCheckout in browser. But I need to do this from Vaadin 12. I need to call method checkObject