litesoft
@ 582
litesoft / trunk / GWT_Sandbox / MultiModuleSingleSrc / main / src / org / litesoft / sandbox / multimodule / client / launch / Main.java
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 |
package org.litesoft.sandbox.multimodule.client.launch; import org.litesoft.sandbox.multimodule.client.common.pavsupport.*; import org.litesoft.sandbox.multimodule.client.common.util.*; import org.litesoft.sandbox.multimodule.client.common.widgets.*; import org.litesoft.sandbox.multimodule.client.foundation.places.*; import org.litesoft.sandbox.multimodule.client.foundation.support.*; import org.litesoft.sandbox.multimodule.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, PlaceHome>() { @Override public HomeView createView() { return new HomeViewImpl(); } @Override public Activity createActivity( ClientFactory pCommonActivityParam, HomeView pView, PlaceHome pPlace ) { return new HomeActivity( pCommonActivityParam, pView, pPlace ); } @Override public String getPlaceId() { return EnumPlaces.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/MultiModuleSingleSrc/main/src/org/litesoft/sandbox/multimodule/client/launch/Main.java
Revision | Author | Commited | Message |
---|---|---|---|
582 | GeorgeS | Mon 14 Nov, 2011 19:55:23 +0000 | Single Dir Based MultiModule |