litesoft
Diff Revisions
947
vs
948
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/nonpublic/external/EventWrapper.java
|
@@ -23,21 +23,18 @@ |
23 |
23 |
|
* A widget wrapper which can process the |
24 |
24 |
|
* wrapped widget's events. |
25 |
25 |
|
*/ |
26 |
|
- |
public abstract class EventWrapper extends Composite |
27 |
|
- |
{ |
|
26 |
+ |
public abstract class EventWrapper extends Composite { |
28 |
27 |
|
private Widget m_widget; |
29 |
28 |
|
|
30 |
29 |
|
/** |
31 |
30 |
|
* Default constructor for convenience. You will need to call |
32 |
31 |
|
* {@link #initWidget(Widget)} before calling any {@link Widget} methods. |
33 |
32 |
|
*/ |
34 |
|
- |
public EventWrapper() |
35 |
|
- |
{ |
|
33 |
+ |
public EventWrapper() { |
36 |
34 |
|
|
37 |
35 |
|
} |
38 |
36 |
|
|
39 |
|
- |
public EventWrapper( Widget w, int eventMask ) |
40 |
|
- |
{ |
|
37 |
+ |
public EventWrapper( Widget w, int eventMask ) { |
41 |
38 |
|
initWidget( w ); |
42 |
39 |
|
sinkEvents( eventMask ); |
43 |
40 |
|
} |
|
@@ -47,15 +44,13 @@ |
47 |
44 |
|
* @see com.google.gwt.user.client.ui.Composite#initWidget(com.google.gwt.user.client.ui.Widget) |
48 |
45 |
|
*/ |
49 |
46 |
|
@Override |
50 |
|
- |
protected void initWidget( Widget widget ) |
51 |
|
- |
{ |
|
47 |
+ |
protected void initWidget( Widget widget ) { |
52 |
48 |
|
super.initWidget( widget ); |
53 |
49 |
|
m_widget = widget; |
54 |
50 |
|
} |
55 |
51 |
|
|
56 |
52 |
|
@Override |
57 |
|
- |
protected Widget getWidget() |
58 |
|
- |
{ |
|
53 |
+ |
protected Widget getWidget() { |
59 |
54 |
|
return m_widget; |
60 |
55 |
|
} |
61 |
56 |
|
|
|
@@ -65,8 +60,7 @@ |
65 |
60 |
|
* @see com.google.gwt.user.client.ui.Widget#onAttach() |
66 |
61 |
|
*/ |
67 |
62 |
|
@Override |
68 |
|
- |
protected void onAttach() |
69 |
|
- |
{ |
|
63 |
+ |
protected void onAttach() { |
70 |
64 |
|
super.onAttach(); |
71 |
65 |
|
DOM.setEventListener( getElement(), this ); |
72 |
66 |
|
} |
|
@@ -77,8 +71,7 @@ |
77 |
71 |
|
* {@inheritDoc} |
78 |
72 |
|
*/ |
79 |
73 |
|
@Override |
80 |
|
- |
public void onBrowserEvent( Event event ) |
81 |
|
- |
{ |
|
74 |
+ |
public void onBrowserEvent( Event event ) { |
82 |
75 |
|
m_widget.onBrowserEvent( event ); |
83 |
76 |
|
} |
84 |
77 |
|
} |