Subversion Repository Public Repository

litesoft

Diff Revisions 949 vs 950 for /trunk/Java/GWT/Client/src/com/google/gwt/gen2/event/logical/shared/ShowRangeEvent.java

Diff revisions: vs.
  @@ -1,77 +1,77 @@
1 - /*
2 - * Copyright 2008 Google Inc.
3 - *
4 - * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5 - * use this file except in compliance with the License. You may obtain a copy of
6 - * the License at
7 - *
8 - * http://www.apache.org/licenses/LICENSE-2.0
9 - *
10 - * Unless required by applicable law or agreed to in writing, software
11 - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 - * License for the specific language governing permissions and limitations under
14 - * the License.
15 - */
16 - package com.google.gwt.gen2.event.logical.shared;
17 -
18 - import com.google.gwt.gen2.event.shared.*;
19 -
20 - /**
21 - * Fired after an event source shows a range of values.
22 - *
23 - * @param <Value> the type of value shown in the range
24 - *
25 - * @deprecated use the com.google.gwt.event.logical.shared classes instead
26 - */
27 - @Deprecated
28 - public class ShowRangeEvent<Value> extends AbstractEvent {
29 -
30 - /**
31 - * Event type for {@link ShowRangeEvent}.
32 - */
33 - public static final Type<ShowRangeEvent, ShowRangeHandler> TYPE = new Type<ShowRangeEvent, ShowRangeHandler>() {
34 - @Override
35 - protected void fire( ShowRangeHandler handler, ShowRangeEvent event ) {
36 - handler.onShowRange( event );
37 - }
38 - };
39 - private Value start;
40 - private Value end;
41 -
42 - /**
43 - * Constructs a ShowRangeEvent event.
44 - *
45 - * @param start start of range
46 - * @param end end of range
47 - */
48 - public ShowRangeEvent( Value start, Value end ) {
49 - this.start = start;
50 - this.end = end;
51 - }
52 -
53 - /**
54 - * Gets the end of the range.
55 - *
56 - * @return range end
57 - */
58 - public Value getEnd() {
59 - assertLive();
60 - return end;
61 - }
62 -
63 - /**
64 - * Gets the start of the range.
65 - *
66 - * @return range start
67 - */
68 - public Value getStart() {
69 - assertLive();
70 - return start;
71 - }
72 -
73 - @Override
74 - protected Type getType() {
75 - return TYPE;
76 - }
77 - }
1 + /*
2 + * Copyright 2008 Google Inc.
3 + *
4 + * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5 + * use this file except in compliance with the License. You may obtain a copy of
6 + * the License at
7 + *
8 + * http://www.apache.org/licenses/LICENSE-2.0
9 + *
10 + * Unless required by applicable law or agreed to in writing, software
11 + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 + * License for the specific language governing permissions and limitations under
14 + * the License.
15 + */
16 + package com.google.gwt.gen2.event.logical.shared;
17 +
18 + import com.google.gwt.gen2.event.shared.*;
19 +
20 + /**
21 + * Fired after an event source shows a range of values.
22 + *
23 + * @param <Value> the type of value shown in the range
24 + *
25 + * @deprecated use the com.google.gwt.event.logical.shared classes instead
26 + */
27 + @Deprecated
28 + public class ShowRangeEvent<Value> extends AbstractEvent {
29 +
30 + /**
31 + * Event type for {@link ShowRangeEvent}.
32 + */
33 + public static final Type<ShowRangeEvent, ShowRangeHandler> TYPE = new Type<ShowRangeEvent, ShowRangeHandler>() {
34 + @Override
35 + protected void fire( ShowRangeHandler handler, ShowRangeEvent event ) {
36 + handler.onShowRange( event );
37 + }
38 + };
39 + private Value start;
40 + private Value end;
41 +
42 + /**
43 + * Constructs a ShowRangeEvent event.
44 + *
45 + * @param start start of range
46 + * @param end end of range
47 + */
48 + public ShowRangeEvent( Value start, Value end ) {
49 + this.start = start;
50 + this.end = end;
51 + }
52 +
53 + /**
54 + * Gets the end of the range.
55 + *
56 + * @return range end
57 + */
58 + public Value getEnd() {
59 + assertLive();
60 + return end;
61 + }
62 +
63 + /**
64 + * Gets the start of the range.
65 + *
66 + * @return range start
67 + */
68 + public Value getStart() {
69 + assertLive();
70 + return start;
71 + }
72 +
73 + @Override
74 + protected Type getType() {
75 + return TYPE;
76 + }
77 + }