This repository has been archived by the owner on May 31, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
233 additions
and
72 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,170 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>com.haulmont.thirdparty</groupId> | ||
<artifactId>appletintegration</artifactId> | ||
<packaging>jar</packaging> | ||
<version>1.2.9</version> | ||
<name>Vaadin AppletIntegration Addon</name> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<vaadin.version>7.1.0</vaadin.version> | ||
<vaadin.plugin.version>${vaadin.version}</vaadin.plugin.version> | ||
<jdkVersion>1.7</jdkVersion> | ||
</properties> | ||
<repositories> | ||
<repository> | ||
<id>vaadin-addons</id> | ||
<url>http://maven.vaadin.com/vaadin-addons</url> | ||
</repository> | ||
<repository> | ||
<id>vaadin-snapshots</id> | ||
<url>http://oss.sonatype.org/content/repositories/vaadin-snapshots/</url> | ||
<releases> | ||
<enabled>false</enabled> | ||
</releases> | ||
<snapshots> | ||
<enabled>true</enabled> | ||
</snapshots> | ||
</repository> | ||
</repositories> | ||
<pluginRepositories> | ||
<pluginRepository> | ||
<id>vaadin-snapshots</id> | ||
<url>http://oss.sonatype.org/content/repositories/vaadin-snapshots/</url> | ||
<releases> | ||
<enabled>false</enabled> | ||
</releases> | ||
<snapshots> | ||
<enabled>true</enabled> | ||
</snapshots> | ||
</pluginRepository> | ||
</pluginRepositories> | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.vaadin</groupId> | ||
<artifactId>vaadin-server</artifactId> | ||
<version>${vaadin.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.vaadin</groupId> | ||
<artifactId>vaadin-client-compiled</artifactId> | ||
<version>${vaadin.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.vaadin</groupId> | ||
<artifactId>vaadin-client</artifactId> | ||
<version>${vaadin.version}</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.vaadin</groupId> | ||
<artifactId>vaadin-themes</artifactId> | ||
<version>${vaadin.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>javax.servlet</groupId> | ||
<artifactId>servlet-api</artifactId> | ||
<version>2.4</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<sourceDirectory>src</sourceDirectory> | ||
<resources> | ||
<resource> | ||
<directory>src</directory> | ||
</resource> | ||
</resources> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.1</version> | ||
<configuration> | ||
<source>${jdkVersion}</source> | ||
<target>${jdkVersion}</target> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-jar-plugin</artifactId> | ||
<version>2.4</version> | ||
<configuration> | ||
<archive> | ||
<manifestFile>WebContent/META-INF/MANIFEST.MF</manifestFile> | ||
</archive> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-source-plugin</artifactId> | ||
<version>2.2.1</version> | ||
<executions> | ||
<execution> | ||
<id>attach-sources</id> | ||
<phase>verify</phase> | ||
<goals> | ||
<goal>jar-no-fork</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-clean-plugin</artifactId> | ||
<version>2.4.1</version> | ||
<configuration> | ||
<filesets> | ||
<fileset> | ||
<directory>${basedir}/WebContent/VAADIN/widgetsets</directory> | ||
</fileset> | ||
</filesets> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>com.vaadin</groupId> | ||
<artifactId>vaadin-maven-plugin</artifactId> | ||
<version>${vaadin.plugin.version}</version> | ||
<configuration> | ||
<extraJvmArgs>-Xmx512M -Xss1024k</extraJvmArgs> | ||
<webappDirectory>${basedir}/WebContent/VAADIN/widgetsets | ||
</webappDirectory> | ||
<hostedWebapp>${basedir}/WebContent/VAADIN/widgetsets | ||
</hostedWebapp> | ||
<noServer>true</noServer> | ||
<draftCompile>false</draftCompile> | ||
<compileReport>true</compileReport> | ||
<style>OBF</style> | ||
<strict>true</strict> | ||
<runTarget>http://localhost:8080/</runTarget> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<configuration> | ||
</configuration> | ||
<goals> | ||
<goal>resources</goal> | ||
<goal>update-widgetset</goal> | ||
<goal>compile</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.mortbay.jetty</groupId> | ||
<artifactId>maven-jetty-plugin</artifactId> | ||
<configuration> | ||
<webAppSourceDirectory>${basedir}/WebContent</webAppSourceDirectory> | ||
<webAppConfig> | ||
<baseResource implementation="org.mortbay.resource.ResourceCollection"> | ||
<resourcesAsCSV>${basedir}/WebContent</resourcesAsCSV> | ||
</baseResource> | ||
</webAppConfig> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
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
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
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
26 changes: 26 additions & 0 deletions
26
src/org/vaadin/applet/client/ui/AppletIntegrationConnector.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package org.vaadin.applet.client.ui; | ||
|
||
import com.vaadin.client.ApplicationConnection; | ||
import com.vaadin.client.Paintable; | ||
import com.vaadin.client.UIDL; | ||
import com.vaadin.client.ui.AbstractComponentConnector; | ||
import com.vaadin.shared.ui.Connect; | ||
import org.vaadin.applet.AppletIntegration; | ||
|
||
/** | ||
* @author artamonov | ||
* @version $Id$ | ||
*/ | ||
@Connect(AppletIntegration.class) | ||
public class AppletIntegrationConnector extends AbstractComponentConnector implements Paintable { | ||
|
||
@Override | ||
public VAppletIntegration getWidget() { | ||
return (VAppletIntegration) super.getWidget(); | ||
} | ||
|
||
@Override | ||
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) { | ||
getWidget().updateFromUIDL(uidl, client); | ||
} | ||
} |
Oops, something went wrong.