Subversion Repository Public Repository

litesoft

Diff Revisions 282 vs 475 for /trunk/Java/GWT/Client/src/com/google/gwt/gen2/table/event/client/PageCountChangeEvent.java

Diff revisions: vs.
  @@ -16,59 +16,66 @@
16 16
17 17 package com.google.gwt.gen2.table.event.client;
18 18
19 - import com.google.gwt.gen2.event.shared.AbstractEvent;
19 + import com.google.gwt.gen2.event.shared.*;
20 20
21 21 /**
22 22 * Logical event fired when the number of pages changes.
23 23 */
24 - public class PageCountChangeEvent extends AbstractEvent {
25 - /**
26 - * Event Key for {@link PageCountChangeEvent}.
27 - */
28 - public static final Type<PageCountChangeEvent, PageCountChangeHandler> TYPE = new Type<PageCountChangeEvent, PageCountChangeHandler>() {
29 - @Override
30 - protected void fire(PageCountChangeHandler handler, PageCountChangeEvent event) {
31 - handler.onPageCountChange(event);
24 + public class PageCountChangeEvent extends AbstractEvent
25 + {
26 + /**
27 + * Event Key for {@link PageCountChangeEvent}.
28 + */
29 + public static final Type<PageCountChangeEvent, PageCountChangeHandler> TYPE = new Type<PageCountChangeEvent, PageCountChangeHandler>()
30 + {
31 + @Override
32 + protected void fire( PageCountChangeHandler handler, PageCountChangeEvent event )
33 + {
34 + handler.onPageCountChange( event );
35 + }
36 + };
37 +
38 + /**
39 + * The new page count.
40 + */
41 + private int newPageCount;
42 +
43 + /**
44 + * The previous page count.
45 + */
46 + private int oldPageCount;
47 +
48 + /**
49 + * Construct a new {@link PageCountChangeEvent}.
50 + *
51 + * @param oldPageCount the previous page
52 + * @param newPageCount the page that was requested
53 + */
54 + public PageCountChangeEvent( int oldPageCount, int newPageCount )
55 + {
56 + this.oldPageCount = oldPageCount;
57 + this.newPageCount = newPageCount;
58 + }
59 +
60 + /**
61 + * @return the new page count
62 + */
63 + public int getNewPageCount()
64 + {
65 + return newPageCount;
32 66 }
33 - };
34 67
35 - /**
36 - * The new page count.
37 - */
38 - private int newPageCount;
39 -
40 - /**
41 - * The previous page count.
42 - */
43 - private int oldPageCount;
44 -
45 - /**
46 - * Construct a new {@link PageCountChangeEvent}.
47 - *
48 - * @param oldPageCount the previous page
49 - * @param newPageCount the page that was requested
50 - */
51 - public PageCountChangeEvent(int oldPageCount, int newPageCount) {
52 - this.oldPageCount = oldPageCount;
53 - this.newPageCount = newPageCount;
54 - }
55 -
56 - /**
57 - * @return the new page count
58 - */
59 - public int getNewPageCount() {
60 - return newPageCount;
61 - }
62 -
63 - /**
64 - * @return the old page count
65 - */
66 - public int getOldPageCount() {
67 - return oldPageCount;
68 - }
69 -
70 - @Override
71 - protected Type getType() {
72 - return TYPE;
73 - }
68 + /**
69 + * @return the old page count
70 + */
71 + public int getOldPageCount()
72 + {
73 + return oldPageCount;
74 + }
75 +
76 + @Override
77 + protected Type getType()
78 + {
79 + return TYPE;
80 + }
74 81 }