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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
package org.litesoft.sandbox.multimodule.groupfront.client;

import org.litesoft.sandbox.infrastructure.client.*;
import org.litesoft.sandbox.multimodule.foundation.client.*;
import org.litesoft.sandbox.multimodule.foundation.client.places.*;
import org.litesoft.sandbox.multimodule.groupfront.client.front.*;
import org.litesoft.sandbox.multimodule.groupfront.client.left.*;
import org.litesoft.sandbox.multimodule.groupfront.client.right.*;

import com.google.gwt.core.client.*;

/**
 * Entry point classes define <code>onModuleLoad()</code>
 */
public class GroupFront implements EntryPoint
{
    @Override
    public void onModuleLoad()
    {
        System.out.println( "GroupFront.onModuleLoad" );

        ActivityFactoryRegistry.register( new ActivityFactory.Asynchronous<ClientFactory, FrontView, FrontPlace>()
        {
            @Override
            public String getPlaceId()
            {
                return Places.Front.name();
            }

            @Override
            public void load( ClientFactory pCommonActivityParam, final Callback<ClientFactory, FrontView, FrontPlace> pCallback )
            {
                GWT.runAsync( new RunAsyncSyncActivityFactoryCallBack( getPlaceId(), pCommonActivityParam )
                {
                    @Override
                    public void onSuccess()
                    {
                        pCallback.loaded( new CachedViewSynchronousActivityFactory<ClientFactory, FrontView, FrontPlace>()
                        {

                            @Override
                            public String getPlaceId()
                            {
                                return Places.Front.name();
                            }

                            @Override
                            public FrontView createView()
                            {
                                return new FrontViewImpl();
                            }

                            @Override
                            public Activity createActivity( ClientFactory pCommonActivityParam, FrontView pView, FrontPlace pPlace )
                            {
                                return new FrontActivity( pCommonActivityParam, pView, pPlace );
                            }
                        } );
                    }
                } );
            }
        } );

        ActivityFactoryRegistry.register( new ActivityFactory.Asynchronous<ClientFactory, LeftView, LeftPlace>()
        {
            @Override
            public String getPlaceId()
            {
                return Places.Left.name();
            }

            @Override
            public void load( ClientFactory pCommonActivityParam, final Callback<ClientFactory, LeftView, LeftPlace> pCallback )
            {
                GWT.runAsync( new RunAsyncSyncActivityFactoryCallBack( getPlaceId(), pCommonActivityParam )
                {
                    @Override
                    public void onSuccess()
                    {
                        pCallback.loaded( new CachedViewSynchronousActivityFactory<ClientFactory, LeftView, LeftPlace>()
                        {
                            @Override
                            public String getPlaceId()
                            {
                                return Places.Left.name();
                            }

                            @Override
                            public LeftView createView()
                            {
                                return new LeftViewImpl();
                            }

                            @Override
                            public Activity createActivity( ClientFactory pCommonActivityParam, LeftView pView, LeftPlace pPlace )
                            {
                                return new LeftActivity( pCommonActivityParam, pView, pPlace );
                            }
                        } );
                    }
                } );
            }
        } );

        ActivityFactoryRegistry.register( new ActivityFactory.Asynchronous<ClientFactory, RightView, RightPlace>()
        {
            @Override
            public String getPlaceId()
            {
                return Places.Right.name();
            }

            @Override
            public void load( ClientFactory pCommonActivityParam, final Callback<ClientFactory, RightView, RightPlace> pCallback )
            {
                GWT.runAsync( new RunAsyncSyncActivityFactoryCallBack( getPlaceId(), pCommonActivityParam )
                {
                    @Override
                    public void onSuccess()
                    {
                        pCallback.loaded( new CachedViewSynchronousActivityFactory<ClientFactory, RightView, RightPlace>()
                        {
                            @Override
                            public String getPlaceId()
                            {
                                return Places.Right.name();
                            }

                            @Override
                            public RightView createView()
                            {
                                return new RightViewImpl();
                            }

                            @Override
                            public Activity createActivity( ClientFactory pCommonActivityParam, RightView pView, RightPlace pPlace )
                            {
                                return new RightActivity( pCommonActivityParam, pView, pPlace );
                            }
                        } );
                    }
                } );
            }
        } );
    }
}

Commits for litesoft/trunk/GWT_Sandbox/MultiModuleSingleSrc/groupFront/src/org/litesoft/sandbox/multimodule/groupfront/client/GroupFront.java

Diff revisions: vs.
Revision Author Commited Message
567 Diff Diff GeorgeS picture GeorgeS Mon 14 Nov, 2011 16:10:59 +0000

Single Src MultiModule

551 Diff Diff GeorgeS picture GeorgeS Tue 11 Oct, 2011 03:28:49 +0000
548 Diff Diff GeorgeS picture GeorgeS Mon 10 Oct, 2011 19:08:21 +0000
543 Diff Diff GeorgeS picture GeorgeS Fri 07 Oct, 2011 12:27:03 +0000
540 Diff Diff GeorgeS picture GeorgeS Mon 03 Oct, 2011 04:22:28 +0000
512 Diff Diff GeorgeS picture GeorgeS Mon 19 Sep, 2011 03:27:18 +0000
503 GeorgeS picture GeorgeS Mon 12 Sep, 2011 05:29:58 +0000