Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/event/UpdateEvent.java

Diff revisions: vs.
  @@ -3,37 +3,30 @@
3 3
4 4 import com.google.gwt.event.shared.*;
5 5
6 - public class UpdateEvent extends GwtEvent<UpdateHandler>
7 - {
6 + public class UpdateEvent extends GwtEvent<UpdateHandler> {
8 7 private static Type<UpdateHandler> TYPE;
9 8
10 - public static void fire( HasUpdateHandlers source )
11 - {
12 - if ( TYPE != null )
13 - {
9 + public static void fire( HasUpdateHandlers source ) {
10 + if ( TYPE != null ) {
14 11 UpdateEvent event = new UpdateEvent();
15 12 source.fireEvent( event );
16 13 }
17 14 }
18 15
19 - public static Type<UpdateHandler> getType()
20 - {
21 - if ( TYPE == null )
22 - {
16 + public static Type<UpdateHandler> getType() {
17 + if ( TYPE == null ) {
23 18 TYPE = new Type<UpdateHandler>();
24 19 }
25 20 return TYPE;
26 21 }
27 22
28 23 @Override
29 - public final Type<UpdateHandler> getAssociatedType()
30 - {
24 + public final Type<UpdateHandler> getAssociatedType() {
31 25 return TYPE;
32 26 }
33 27
34 28 @Override
35 - protected void dispatch( UpdateHandler handler )
36 - {
29 + protected void dispatch( UpdateHandler handler ) {
37 30 handler.onUpdate( this );
38 31 }
39 32 }