This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.example.views; | |
import com.google.zxing.BarcodeFormat; | |
import com.google.zxing.client.j2se.MatrixToImageWriter; | |
import com.google.zxing.common.BitMatrix; | |
import com.google.zxing.oned.EAN13Writer; | |
import com.vaadin.flow.component.html.Image; | |
import com.vaadin.flow.component.orderedlayout.VerticalLayout; | |
import com.vaadin.flow.router.Route; | |
import com.vaadin.flow.server.AbstractStreamResource; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.vaadin.vaadin.sb.example.views; | |
import com.vaadin.flow.component.AttachEvent; | |
import com.vaadin.flow.component.DetachEvent; | |
import com.vaadin.flow.component.UI; | |
import com.vaadin.flow.component.button.Button; | |
import com.vaadin.flow.component.html.Paragraph; | |
import com.vaadin.flow.component.html.Span; | |
import com.vaadin.flow.component.orderedlayout.VerticalLayout; | |
import com.vaadin.flow.router.Route; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ArrayList<String> values = new ArrayList<>(); | |
values.add("foo"); | |
values.add("bar"); | |
ComboBox<String> stringComboBox = new ComboBox<>(); | |
stringComboBox.setItemsWithFilterConverter((CallbackDataProvider.FetchCallback<String, String>) query -> { | |
if(query.getFilter().isPresent()) { | |
String filter = query.getFilter().get(); | |
System.out.println("Do something else with filter: " + filter); | |
return values.stream() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.stream.Collectors; | |
import org.springframework.data.domain.Sort; | |
import org.springframework.data.domain.Sort.Order; | |
import com.vaadin.flow.data.provider.Query; | |
import com.vaadin.flow.data.provider.SortDirection; | |
public class SpringDataVaadinUtil { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.demo; | |
import java.sql.Connection; | |
import java.sql.PreparedStatement; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.sql.Statement; | |
import java.util.ArrayList; | |
import java.util.List; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.scribe.builder.api; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
import org.scribe.exceptions.OAuthException; | |
import org.scribe.extractors.AccessTokenExtractor; | |
import org.scribe.model.OAuthConfig; | |
import org.scribe.model.OAuthConstants; | |
import org.scribe.model.OAuthRequest; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.test; | |
import javax.servlet.annotation.WebServlet; | |
import com.vaadin.annotations.Theme; | |
import com.vaadin.annotations.VaadinServletConfiguration; | |
import com.vaadin.server.VaadinRequest; | |
import com.vaadin.server.VaadinServlet; | |
import com.vaadin.ui.Label; | |
import com.vaadin.ui.UI; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.test; | |
import javax.servlet.annotation.WebServlet; | |
import com.vaadin.annotations.Theme; | |
import com.vaadin.annotations.VaadinServletConfiguration; | |
import com.vaadin.server.BootstrapFragmentResponse; | |
import com.vaadin.server.BootstrapListener; | |
import com.vaadin.server.BootstrapPageResponse; | |
import com.vaadin.server.VaadinRequest; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 | |
http://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
<profiles> | |
<profile> | |
<id>liferay</id> | |
<properties> | |
<liferayinstall>/Users/mattitahvonenitmill/Applications/liferay-portal-6.2-ce-ga4</liferayinstall> | |
<plugin.type>portlet</plugin.type> |
NewerOlder