1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.vectomatic.svg.edit.client.event;
19
20 import org.vectomatic.svg.edit.client.SVGWindow;
21
22 import com.google.gwt.event.shared.GwtEvent;
23
24
25
26
27
28 public class ActivateWindowEvent extends GwtEvent<ActivateWindowHandler> {
29
30
31
32 private static Type<ActivateWindowHandler> TYPE;
33
34 private final SVGWindow window;
35
36 public ActivateWindowEvent(SVGWindow window) {
37 this.window = window;
38 }
39
40 @Override
41 public com.google.gwt.event.shared.GwtEvent.Type<ActivateWindowHandler> getAssociatedType() {
42 if (TYPE == null) {
43 TYPE = new Type<ActivateWindowHandler>();
44 }
45 return TYPE;
46 }
47
48
49
50
51
52
53 public static Type<ActivateWindowHandler> getType() {
54 if (TYPE == null) {
55 TYPE = new Type<ActivateWindowHandler>();
56 }
57 return TYPE;
58 }
59
60 @Override
61 protected void dispatch(ActivateWindowHandler handler) {
62 handler.onActivate(this);
63 }
64
65 public SVGWindow getWindow() {
66 return window;
67 }
68
69 }