File tree Expand file tree Collapse file tree 3 files changed +39
-7
lines changed Expand file tree Collapse file tree 3 files changed +39
-7
lines changed Original file line number Diff line number Diff line change 18
18
<maven .compiler.target>11</maven .compiler.target>
19
19
</properties >
20
20
21
+ <dependencyManagement >
22
+ <dependencies >
23
+ <dependency >
24
+ <groupId >com.google.gwt</groupId >
25
+ <artifactId >gwt</artifactId >
26
+ <version >2.9.0</version >
27
+ <type >pom</type >
28
+ <scope >import</scope >
29
+ </dependency >
30
+ </dependencies >
31
+ </dependencyManagement >
32
+
21
33
<dependencies >
22
34
<dependency >
23
35
<groupId >com.google.gwt</groupId >
24
36
<artifactId >gwt-user</artifactId >
25
- <version >2.9.0</version >
26
37
</dependency >
27
38
<dependency >
28
39
<groupId >com.google.gwt</groupId >
29
40
<artifactId >gwt-dev</artifactId >
30
- <version >2.9.0</version >
41
+ </dependency >
42
+ <dependency >
43
+ <groupId >org.jboss.elemento</groupId >
44
+ <artifactId >elemento-core</artifactId >
45
+ <version >1.0.0-rc3</version >
46
+ </dependency >
47
+ <dependency >
48
+ <groupId >com.intendia.gwt.rxgwt2</groupId >
49
+ <artifactId >rxgwt</artifactId >
50
+ <version >2.3</version >
51
+ </dependency >
52
+ <dependency >
53
+ <groupId >com.intendia.gwt</groupId >
54
+ <artifactId >rxjava2-gwt</artifactId >
55
+ <version >2.2.20-gwt1</version >
31
56
</dependency >
32
57
<dependency >
33
58
<groupId >junit</groupId >
Original file line number Diff line number Diff line change 1
1
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.8.2//EN" "http://www.gwtproject.org/doctype/2.8.2/gwt-module.dtd">
2
2
<module >
3
3
<inherits name =" com.google.gwt.user.User" />
4
+ <inherits name =" com.intendia.rxgwt2.RxElemento" />
5
+ <inherits name =" org.jboss.elemento.Core" />
4
6
<entry-point class =" me.client.App" />
5
7
<!-- <source path="client"/>-->
6
8
<!-- <public path="public"/>-->
Original file line number Diff line number Diff line change 1
1
package me .client ;
2
2
3
+ import static elemental2 .dom .DomGlobal .document ;
4
+ import static org .jboss .elemento .EventType .mousemove ;
5
+
3
6
import com .google .gwt .core .client .EntryPoint ;
4
- import com .google . gwt . dom . client . Document ;
5
- import com . google . gwt . dom .client . Text ;
6
- import com . google . gwt . user . client . ui . RootPanel ;
7
+ import com .intendia . rxgwt2 . elemento . RxElemento ;
8
+ import elemental2 . dom .HTMLElement ;
9
+ import org . jboss . elemento . Elements ;
7
10
8
11
public class App implements EntryPoint {
9
12
10
13
@ Override
11
14
public void onModuleLoad () {
12
- Text textNode = Document .get ().createTextNode ("Hello World!" );
13
- RootPanel .getBodyElement ().appendChild (textNode );
15
+ HTMLElement el = Elements .span ().style ("font-weight: bold;" ).element ();
16
+ Elements .body ().add ("mouse position: " ).add (el );
17
+ RxElemento .fromEvent (document , mousemove )
18
+ .subscribe (ev -> el .textContent = ev .clientX + ", " + ev .clientY );
14
19
}
15
20
}
You can’t perform that action at this time.
0 commit comments