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

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

import com.google.gwt.activity.shared.*;
import com.google.gwt.core.client.*;
import com.google.gwt.event.shared.*;
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" );

        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 );
        PlaceActivityMapper pam = new PlaceActivityMapper<ClientFactory>(clientFactory.getEventBus(), clientFactory);
        clientFactory.setPlaceChanger(pam);
        clientFactory.setMessageUserSink( new StyledSafeTextMessageUserSink(zMessageUserSinkLabel) );
        EventBus eventBus = clientFactory.getEventBus();
//        PlaceController placeController = clientFactory.getPlaceController();

        // Start ActivityManager for the main widget with our ActivityMapper
        ActivityManager activityManager = new ActivityManager( pam, eventBus );
        activityManager.setDisplay( zAppWidget );

        // Start PlaceHistoryHandler with our PlaceHistoryMapper
        CopyPlaceHistoryHandler historyHandler = new CopyPlaceHistoryHandler( new PlaceRegistry( clientFactory ) );
        historyHandler.register( pam, eventBus, PlaceRegistry.getDefaultPlace() );

        // Goes to the place represented on URL else default place
        historyHandler.handleCurrentHistory();
    }
}

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

Diff revisions: vs.
Revision Author Commited Message
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 Diff Diff GeorgeS picture GeorgeS Mon 19 Sep, 2011 03:27:18 +0000
506 Diff Diff GeorgeS picture GeorgeS Thu 15 Sep, 2011 13:50:15 +0000

MultiModules

503 GeorgeS picture GeorgeS Mon 12 Sep, 2011 05:29:58 +0000