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

import org.litesoft.sandbox.infrastructure.client.*;
import org.litesoft.sandbox.infrastructure.client.widgets.*;
import org.litesoft.sandbox.multimodule.foundation.client.*;
import org.litesoft.sandbox.multimodule.foundation.client.places.*;
import org.litesoft.sandbox.multimodule.main.client.home.*;

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

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

        ActivityFactoryRegistry.register( new CachedViewSynchronousActivityFactory<ClientFactory, HomeView, HomePlace>()
        {
            @Override
            public HomeView createView()
            {
                return new HomeViewImpl();
            }

            @Override
            public Activity createActivity( ClientFactory pCommonActivityParam, HomeView pView, HomePlace pPlace )
            {
                return new HomeActivity( pCommonActivityParam, pView, pPlace );
            }

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

        OurLabel zMessageUserSinkLabel = new OurLabel();
        SimplePanel zAppWidget = new SimplePanel();

        RootPanel.get( "CenteredContent" ).add( zAppWidget );
        RootPanel.get( "Message" ).add( zMessageUserSinkLabel );

        ClientFactoryImpl clientFactory = new ClientFactoryImpl(); // GWT.create( ClientFactory.class );
        PlaceChangerWithCurrentUrlSupport pam = new PlaceActivityManager<ClientFactory>( zAppWidget, clientFactory );
        clientFactory.setPlaceChanger( pam );
        clientFactory.setMessageUserSink( new StyledSafeTextMessageUserSink( zMessageUserSinkLabel ) );

        // Goes to the place represented on URL else default place
        pam.goToCurrentUrl();
    }
}

Commits for litesoft/trunk/GWT_Sandbox/MultiModule/main/src/org/litesoft/sandbox/multimodule/main/client/Main.java

Diff revisions: vs.
Revision Author Commited Message
559 Diff Diff GeorgeS picture GeorgeS Tue 11 Oct, 2011 21:32:40 +0000
548 Diff Diff GeorgeS picture GeorgeS Mon 10 Oct, 2011 19:08:21 +0000
547 Diff Diff GeorgeS picture GeorgeS Mon 10 Oct, 2011 02:22:01 +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
538 Diff Diff GeorgeS picture GeorgeS Sun 02 Oct, 2011 22:14:59 +0000
521 Diff Diff GeorgeS picture GeorgeS Tue 27 Sep, 2011 18:24:12 +0000

Upload Widget...

517 Diff Diff GeorgeS picture GeorgeS Mon 26 Sep, 2011 22:36:28 +0000
514 Diff Diff GeorgeS picture GeorgeS Thu 22 Sep, 2011 06:07:01 +0000
512 GeorgeS picture GeorgeS Mon 19 Sep, 2011 03:27:18 +0000