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
package org.litesoft.sandbox.multimodule.foundation.client.support;

import org.litesoft.sandbox.multimodule.foundation.client.*;
import org.litesoft.sandbox.multimodule.foundation.client.places.*;

import com.google.gwt.place.shared.*;

public class PlacesSupport {
    public static Place createPlace( Places pPlace, Long pLuckyId ) {
        switch ( pPlace ) {
            default:
            case Home:
                return new HomePlace();
            case Front:
                return new FrontPlace( pLuckyId );
            case Back:
                return new BackPlace( pLuckyId );
            case Left:
                return new LeftPlace( pLuckyId );
            case Right:
                return new RightPlace( pLuckyId );
            case Top:
                return new TopPlace( pLuckyId );
            case Bottom:
                return new BottomPlace( pLuckyId );
        }
    }

    public static Places deNull( Long pOrdinal, Places pDefault ) {
        return (pOrdinal == null) ? pDefault : Places.fromOrdinal( pOrdinal.intValue() );
    }
}

Commits for litesoft/trunk/GWT_Sandbox/MultiModule/foundation/src/org/litesoft/sandbox/multimodule/foundation/client/support/PlacesSupport.java

Diff revisions: vs.
Revision Author Commited Message
950 Diff Diff GeorgeS picture GeorgeS Thu 19 Jun, 2014 17:57:04 +0000

New Lines

948 Diff Diff GeorgeS picture GeorgeS Sat 07 Jun, 2014 23:42:39 +0000

Jusefuls Formatter Updated to New Code Format

551 Diff Diff GeorgeS picture GeorgeS Tue 11 Oct, 2011 03:28:49 +0000
541 GeorgeS picture GeorgeS Mon 03 Oct, 2011 04:25:50 +0000