litesoft
Diff Revisions
947
vs
948
for /trunk/Java/GWT/Client/src/com/google/gwt/gen2/event/logical/shared/SelectionEvent.java
|
@@ -26,18 +26,15 @@ |
26 |
26 |
|
* @deprecated use the com.google.gwt.event.logical.shared classes instead |
27 |
27 |
|
*/ |
28 |
28 |
|
@Deprecated |
29 |
|
- |
public class SelectionEvent<Value> extends AbstractEvent |
30 |
|
- |
{ |
|
29 |
+ |
public class SelectionEvent<Value> extends AbstractEvent { |
31 |
30 |
|
|
32 |
31 |
|
/** |
33 |
32 |
|
* The event type. |
34 |
33 |
|
*/ |
35 |
|
- |
public static final Type<SelectionEvent, SelectionHandler> TYPE = new Type<SelectionEvent, SelectionHandler>() |
36 |
|
- |
{ |
|
34 |
+ |
public static final Type<SelectionEvent, SelectionHandler> TYPE = new Type<SelectionEvent, SelectionHandler>() { |
37 |
35 |
|
|
38 |
36 |
|
@Override |
39 |
|
- |
protected void fire( SelectionHandler handler, SelectionEvent event ) |
40 |
|
- |
{ |
|
37 |
+ |
protected void fire( SelectionHandler handler, SelectionEvent event ) { |
41 |
38 |
|
handler.onSelection( event ); |
42 |
39 |
|
} |
43 |
40 |
|
}; |
|
@@ -52,8 +49,7 @@ |
52 |
49 |
|
* @param newValue the new value |
53 |
50 |
|
*/ |
54 |
51 |
|
|
55 |
|
- |
public SelectionEvent( Value oldValue, Value newValue ) |
56 |
|
- |
{ |
|
52 |
+ |
public SelectionEvent( Value oldValue, Value newValue ) { |
57 |
53 |
|
this.oldValue = oldValue; |
58 |
54 |
|
this.newValue = newValue; |
59 |
55 |
|
} |
|
@@ -63,8 +59,7 @@ |
63 |
59 |
|
* |
64 |
60 |
|
* @return the new value |
65 |
61 |
|
*/ |
66 |
|
- |
public Value getNewValue() |
67 |
|
- |
{ |
|
62 |
+ |
public Value getNewValue() { |
68 |
63 |
|
assertLive(); |
69 |
64 |
|
return newValue; |
70 |
65 |
|
} |
|
@@ -74,22 +69,19 @@ |
74 |
69 |
|
* |
75 |
70 |
|
* @return the old value |
76 |
71 |
|
*/ |
77 |
|
- |
public Value getOldValue() |
78 |
|
- |
{ |
|
72 |
+ |
public Value getOldValue() { |
79 |
73 |
|
assertLive(); |
80 |
74 |
|
return oldValue; |
81 |
75 |
|
} |
82 |
76 |
|
|
83 |
77 |
|
@Override |
84 |
|
- |
public String toDebugString() |
85 |
|
- |
{ |
|
78 |
+ |
public String toDebugString() { |
86 |
79 |
|
assertLive(); |
87 |
80 |
|
return super.toDebugString() + " old = " + oldValue + " new =" + newValue; |
88 |
81 |
|
} |
89 |
82 |
|
|
90 |
83 |
|
@Override |
91 |
|
- |
protected Type getType() |
92 |
|
- |
{ |
|
84 |
+ |
protected Type getType() { |
93 |
85 |
|
return TYPE; |
94 |
86 |
|
} |
95 |
87 |
|
} |