Skip to content

Commit

Permalink
samples module migrated to vaadin8
Browse files Browse the repository at this point in the history
  • Loading branch information
darkwitch committed Mar 7, 2017
1 parent e5ceed7 commit 28fe0d0
Show file tree
Hide file tree
Showing 18 changed files with 45 additions and 27 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<project.build.encoding>UTF-8</project.build.encoding>
<project.build.target>1.8</project.build.target>
<project.build.source>1.8</project.build.source>
<vaadin.version>8.0.1</vaadin.version>
<vaadin.version>8.0.0</vaadin.version>
<vaadin-touchkit.version>4.0.0</vaadin-touchkit.version>
<vaadin-spring.version>2.0.0</vaadin-spring.version>
<spring.version>4.3.6.RELEASE</spring.version>
Expand Down Expand Up @@ -352,6 +352,6 @@
<module>extensions/core</module>
<module>extensions/security</module>
<module>extensions/test</module>
<!--<module>samples</module>-->
<module>samples</module>
</modules>
</project>
6 changes: 5 additions & 1 deletion samples/i18n-sample/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-client-compiled</artifactId>
<artifactId>vaadin-compatibility-server</artifactId>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-compatibility-client</artifactId>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
import org.vaadin.spring.i18n.support.Translatable;
import org.vaadin.spring.i18n.support.TranslatableUI;

import com.vaadin.data.util.ObjectProperty;
import com.vaadin.data.util.converter.StringToBigDecimalConverter;
import com.vaadin.v7.data.util.ObjectProperty;
import com.vaadin.v7.data.util.converter.StringToBigDecimalConverter;
import com.vaadin.server.VaadinRequest;
import com.vaadin.spring.annotation.SpringUI;
import com.vaadin.ui.Button;
import com.vaadin.ui.DateField;
import com.vaadin.ui.TextField;
import com.vaadin.v7.ui.DateField;
import com.vaadin.v7.ui.TextField;
import com.vaadin.ui.VerticalLayout;

/**
Expand Down
6 changes: 5 additions & 1 deletion samples/navigation-sample/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-client-compiled</artifactId>
<artifactId>vaadin-compatibility-server</artifactId>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-compatibility-client</artifactId>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package org.vaadin.spring.samples.navigation;

import com.vaadin.data.Property;
import com.vaadin.data.HasValue;
import com.vaadin.navigator.View;
import com.vaadin.navigator.ViewChangeListener;
import com.vaadin.spring.access.ViewAccessControl;
Expand Down Expand Up @@ -69,9 +69,9 @@ void init() {

private CheckBox createViewCheckbox(String caption, final String viewName) {
final CheckBox checkBox = new CheckBox(caption, true);
checkBox.addValueChangeListener(new Property.ValueChangeListener() {
checkBox.addValueChangeListener(new HasValue.ValueChangeListener<Boolean>() {
@Override
public void valueChange(Property.ValueChangeEvent event) {
public void valueChange(HasValue.ValueChangeEvent<Boolean> valueChangeEvent) {
if (checkBox.getValue()) {
allowedViews.add(viewName);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import com.vaadin.navigator.View;
import com.vaadin.navigator.ViewChangeListener;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.shared.ui.ContentMode;
import com.vaadin.spring.annotation.SpringComponent;
import com.vaadin.ui.Label;
import com.vaadin.ui.VerticalLayout;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import com.vaadin.navigator.View;
import com.vaadin.navigator.ViewChangeListener;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.shared.ui.ContentMode;
import com.vaadin.spring.annotation.SpringView;
import com.vaadin.ui.Button;
import com.vaadin.ui.Label;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import com.vaadin.navigator.View;
import com.vaadin.navigator.ViewChangeListener;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.shared.ui.ContentMode;
import com.vaadin.spring.annotation.SpringView;
import com.vaadin.spring.annotation.UIScope;
import com.vaadin.ui.Button;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package org.vaadin.spring.samples.navigation;

import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.shared.ui.ContentMode;
import com.vaadin.spring.annotation.SpringComponent;
import com.vaadin.spring.annotation.ViewScope;
import com.vaadin.ui.Label;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import com.vaadin.navigator.View;
import com.vaadin.navigator.ViewChangeListener;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.shared.ui.ContentMode;
import com.vaadin.spring.annotation.SpringView;
import com.vaadin.ui.Button;
import com.vaadin.ui.Label;
Expand Down
4 changes: 2 additions & 2 deletions samples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<name>Vaadin4Spring Samples</name>

<properties>
<vaadin.version>7.7.3</vaadin.version>
<vaadin-spring.version>1.1.0</vaadin-spring.version>
<vaadin.version>8.0.0</vaadin.version>
<vaadin-spring.version>2.0.0</vaadin-spring.version>
</properties>

<dependencyManagement>
Expand Down
6 changes: 5 additions & 1 deletion samples/push-sample/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-client-compiled</artifactId>
<artifactId>vaadin-compatibility-server</artifactId>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-compatibility-client</artifactId>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
import com.vaadin.annotations.Push;
import com.vaadin.annotations.Theme;
import com.vaadin.annotations.Title;
import com.vaadin.data.Item;
import com.vaadin.data.util.IndexedContainer;
import com.vaadin.v7.data.Item;
import com.vaadin.v7.data.util.IndexedContainer;
import com.vaadin.server.VaadinRequest;
import com.vaadin.shared.ui.ui.Transport;
import com.vaadin.spring.annotation.SpringUI;
import com.vaadin.ui.Grid;
import com.vaadin.v7.ui.Grid;
import com.vaadin.ui.UI;
import com.vaadin.ui.themes.ValoTheme;
import org.slf4j.Logger;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import com.vaadin.navigator.View;
import com.vaadin.navigator.ViewChangeListener;
import com.vaadin.server.FontAwesome;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.shared.ui.ContentMode;
import com.vaadin.spring.annotation.SpringView;
import com.vaadin.ui.Label;
import com.vaadin.ui.VerticalLayout;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import com.vaadin.navigator.View;
import com.vaadin.navigator.ViewChangeListener;
import com.vaadin.server.FontAwesome;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.shared.ui.ContentMode;
import com.vaadin.spring.annotation.SpringView;
import com.vaadin.ui.Label;
import com.vaadin.ui.VerticalLayout;
Expand Down
8 changes: 7 additions & 1 deletion samples/sidebar-sample/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,16 @@
<groupId>com.vaadin</groupId>
<artifactId>vaadin-themes</artifactId>
</dependency>

<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-client-compiled</artifactId>
<artifactId>vaadin-compatibility-server</artifactId>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-compatibility-client</artifactId>
</dependency>

<dependency>
<groupId>org.vaadin.icons</groupId>
<artifactId>vaadin-icons</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import com.vaadin.annotations.Theme;
import com.vaadin.spring.annotation.SpringUI;
import com.vaadin.ui.themes.Reindeer;
import com.vaadin.v7.ui.themes.Reindeer;
import org.springframework.beans.factory.annotation.Autowired;
import org.vaadin.spring.sidebar.components.AbstractSideBar;
import org.vaadin.spring.sidebar.components.AccordionSideBar;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import com.vaadin.annotations.Theme;
import com.vaadin.server.FontAwesome;
import com.vaadin.server.VaadinRequest;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.shared.ui.ContentMode;
import com.vaadin.spring.annotation.SpringUI;
import com.vaadin.ui.CssLayout;
import com.vaadin.ui.Label;
Expand Down

0 comments on commit 28fe0d0

Please sign in to comment.