Subversion Repository Public Repository

litesoft

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package org.litesoft.sandbox.multimodule.client.common.places;

import org.litesoft.sandbox.multimodule.client.foundation.pavsupport.*;
import org.litesoft.sandbox.multimodule.client.common.support.*;

public class PlaceTop extends IdPlace
{
    private static final EnumPlaces ID = EnumPlaces.Top;

    private Long luckyId;

    public PlaceTop( Long data )
    {
        super( ID );
        this.luckyId = data;
    }

    public Long getLuckyId()
    {
        return luckyId;
    }

    public static class Tokenizer extends IdTokenizer<PlaceTop>
    {
        public Tokenizer()
        {
            super( ID );
        }

        @Override
        public String getToken( PlaceTop place )
        {
            return LuckyIdCodec.encode( place.getLuckyId() );
        }

        @Override
        public PlaceTop getPlace( String data )
        {
            return new PlaceTop( LuckyIdCodec.decode( data ) );
        }
    }
}

Commits for litesoft/trunk/GWT_Sandbox/MultiModuleSingleSrc/main/src/org/litesoft/sandbox/multimodule/client/foundation/places/PlaceTop.java

Diff revisions: vs.
Revision Author Commited Message
585 Diff Diff GeorgeS picture GeorgeS Fri 18 Nov, 2011 17:55:26 +0000
582 GeorgeS picture GeorgeS Mon 14 Nov, 2011 19:55:23 +0000

Single Dir Based MultiModule