diff options
Diffstat (limited to 'src/com/vaadin/demo/sampler/gwt')
-rw-r--r-- | src/com/vaadin/demo/sampler/gwt/SamplerWidgetSet.gwt.xml | 3 | ||||
-rw-r--r-- | src/com/vaadin/demo/sampler/gwt/client/SamplerWidgetSet.java | 40 |
2 files changed, 0 insertions, 43 deletions
diff --git a/src/com/vaadin/demo/sampler/gwt/SamplerWidgetSet.gwt.xml b/src/com/vaadin/demo/sampler/gwt/SamplerWidgetSet.gwt.xml index dc6d1b206c..f40e421fbb 100644 --- a/src/com/vaadin/demo/sampler/gwt/SamplerWidgetSet.gwt.xml +++ b/src/com/vaadin/demo/sampler/gwt/SamplerWidgetSet.gwt.xml @@ -9,7 +9,4 @@ <stylesheet src="prettify/prettify.css"/> <script src="prettify/prettify.js" /> - <!-- Entry point --> - <entry-point class="com.vaadin.demo.sampler.gwt.client.SamplerWidgetSet"/> - </module> diff --git a/src/com/vaadin/demo/sampler/gwt/client/SamplerWidgetSet.java b/src/com/vaadin/demo/sampler/gwt/client/SamplerWidgetSet.java deleted file mode 100644 index 69942f6e50..0000000000 --- a/src/com/vaadin/demo/sampler/gwt/client/SamplerWidgetSet.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.vaadin.demo.sampler.gwt.client; - -import com.vaadin.demo.sampler.gwt.client.ui.VActiveLink; -import com.vaadin.demo.sampler.gwt.client.ui.VCodeLabel; -import com.vaadin.demo.sampler.gwt.client.ui.VGoogleAnalytics; -import com.vaadin.terminal.gwt.client.DefaultWidgetSet; -import com.vaadin.terminal.gwt.client.Paintable; -import com.vaadin.terminal.gwt.client.UIDL; - -public class SamplerWidgetSet extends DefaultWidgetSet { - - @Override - public Paintable createWidget(UIDL uidl) { - final Class<?> classType = resolveWidgetType(uidl); - if (VGoogleAnalytics.class == classType) { - return new VGoogleAnalytics(); - } else if (VCodeLabel.class == classType) { - return new VCodeLabel(); - } else if (VActiveLink.class == classType) { - return new VActiveLink(); - } else { - return super.createWidget(uidl); - } - } - - @Override - protected Class<?> resolveWidgetType(UIDL uidl) { - final String tag = uidl.getTag(); - if ("googleanalytics".equals(tag)) { - return VGoogleAnalytics.class; - } else if ("codelabel".equals(tag)) { - return VCodeLabel.class; - } else if ("activelink".equals(tag)) { - return VActiveLink.class; - } else { - return super.resolveWidgetType(uidl); - } - } - -} |