litesoft
Diff Revisions
947
vs
948
for /trunk/GWT_Sandbox/MultiModuleSingleSrc/main/src/org/litesoft/sandbox/multimodule/client/foundation/places/PlaceTop.java
|
@@ -3,39 +3,32 @@ |
3 |
3 |
|
import org.litesoft.GWT.client.pavsupport.*; |
4 |
4 |
|
import org.litesoft.sandbox.multimodule.client.foundation.support.*; |
5 |
5 |
|
|
6 |
|
- |
public class PlaceTop extends IdPlace |
7 |
|
- |
{ |
|
6 |
+ |
public class PlaceTop extends IdPlace { |
8 |
7 |
|
private static final EnumPlaces ID = EnumPlaces.Top; |
9 |
8 |
|
|
10 |
9 |
|
private Long luckyId; |
11 |
10 |
|
|
12 |
|
- |
public PlaceTop( Long data ) |
13 |
|
- |
{ |
|
11 |
+ |
public PlaceTop( Long data ) { |
14 |
12 |
|
super( ID ); |
15 |
13 |
|
this.luckyId = data; |
16 |
14 |
|
} |
17 |
15 |
|
|
18 |
|
- |
public Long getLuckyId() |
19 |
|
- |
{ |
|
16 |
+ |
public Long getLuckyId() { |
20 |
17 |
|
return luckyId; |
21 |
18 |
|
} |
22 |
19 |
|
|
23 |
|
- |
public static class Tokenizer extends IdTokenizer<PlaceTop> |
24 |
|
- |
{ |
25 |
|
- |
public Tokenizer() |
26 |
|
- |
{ |
|
20 |
+ |
public static class Tokenizer extends IdTokenizer<PlaceTop> { |
|
21 |
+ |
public Tokenizer() { |
27 |
22 |
|
super( ID ); |
28 |
23 |
|
} |
29 |
24 |
|
|
30 |
25 |
|
@Override |
31 |
|
- |
public String getToken( PlaceTop place ) |
32 |
|
- |
{ |
|
26 |
+ |
public String getToken( PlaceTop place ) { |
33 |
27 |
|
return LuckyIdCodec.encode( place.getLuckyId() ); |
34 |
28 |
|
} |
35 |
29 |
|
|
36 |
30 |
|
@Override |
37 |
|
- |
public PlaceTop getPlace( String data ) |
38 |
|
- |
{ |
|
31 |
+ |
public PlaceTop getPlace( String data ) { |
39 |
32 |
|
return new PlaceTop( LuckyIdCodec.decode( data ) ); |
40 |
33 |
|
} |
41 |
34 |
|
} |