summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/terminal/gwt/DefaultWidgetSet.gwt.xml
blob: 9bc05dee2eaabe1e19b6631af53966a622ee35ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<module>
	<!-- This GWT module defines the Vaadin DefaultWidgetSet. This is the module
		you want to extend when creating an extended widget set, or when creating
		a specialized widget set with a subset of the components. -->

	<!-- Hint for WidgetSetBuilder not to automatically update the file -->
	<!-- WS Compiler: manually edited -->

	<inherits name="com.google.gwt.user.User" />

	<inherits name="com.google.gwt.http.HTTP" />

	<source path="client" />

	<!-- Use own Scheduler implementation to be able to track if commands are
		running -->
	<replace-with class="com.vaadin.terminal.gwt.client.VSchedulerImpl">
		<when-type-is class="com.google.gwt.core.client.impl.SchedulerImpl" />
	</replace-with>
	
	<replace-with class="com.vaadin.terminal.gwt.client.VDebugConsole">
		<when-type-is class="com.vaadin.terminal.gwt.client.Console" />
	</replace-with>

	<generate-with
		class="com.vaadin.terminal.gwt.widgetsetutils.WidgetMapGenerator">
		<when-type-is class="com.vaadin.terminal.gwt.client.WidgetMap" />
	</generate-with>

	<generate-with
		class="com.vaadin.terminal.gwt.widgetsetutils.AcceptCriteriaFactoryGenerator">
		<when-type-is
			class="com.vaadin.terminal.gwt.client.ui.dd.VAcceptCriterionFactory" />
	</generate-with>

	<!-- Fall through to this rule for everything but IE -->
	<replace-with
		class="com.vaadin.terminal.gwt.client.ui.UploadIFrameOnloadStrategy">
		<when-type-is
			class="com.vaadin.terminal.gwt.client.ui.UploadIFrameOnloadStrategy" />
	</replace-with>

	<replace-with
		class="com.vaadin.terminal.gwt.client.ui.UploadIFrameOnloadStrategyIE">
		<when-type-is
			class="com.vaadin.terminal.gwt.client.ui.UploadIFrameOnloadStrategy" />
		<any>
			<when-property-is name="user.agent" value="ie6" />
			<when-property-is name="user.agent" value="ie8" />
		</any>
	</replace-with>

    <replace-with
        class="com.vaadin.terminal.gwt.client.ui.VDragAndDropWrapperIE">
        <when-type-is
            class="com.vaadin.terminal.gwt.client.ui.VDragAndDropWrapper" />
        <any>
            <when-property-is name="user.agent" value="ie8" />
        </any>
    </replace-with>

	<!-- Workaround for #6682. Remove when fixed in GWT. -->
	<replace-with class="com.google.gwt.dom.client.VaadinDOMImplSafari">
		<when-type-is class="com.google.gwt.dom.client.DOMImpl" />
		<when-property-is name="user.agent" value="safari" />
	</replace-with>

	<entry-point class="com.vaadin.terminal.gwt.client.ApplicationConfiguration" />
	
	<!-- Use the new cross site linker to get a nocache.js without document.write -->
	<add-linker name="xsiframe" />	


</module>