litesoft
@ 948
litesoft / trunk / GWT_Sandbox / MultiModule / main / src / org / litesoft / sandbox / multimodule / main / client / 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 |
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>( Places.Home ) { @Override public HomeView createView() { return new HomeViewImpl(); } @Override public Activity createActivity( ClientFactory pCommonActivityParam, HomeView pView, HomePlace pPlace ) { return new HomeActivity( pCommonActivityParam, pView, pPlace ); } } ); 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
Revision | Author | Commited | Message |
---|---|---|---|
948 Diff | GeorgeS | Sat 07 Jun, 2014 23:42:39 +0000 | Jusefuls Formatter Updated to New Code Format |
585 Diff | GeorgeS | Fri 18 Nov, 2011 17:55:26 +0000 | |
559 Diff | GeorgeS | Tue 11 Oct, 2011 21:32:40 +0000 | |
548 Diff | GeorgeS | Mon 10 Oct, 2011 19:08:21 +0000 | |
547 Diff | GeorgeS | Mon 10 Oct, 2011 02:22:01 +0000 | |
543 Diff | GeorgeS | Fri 07 Oct, 2011 12:27:03 +0000 | |
540 Diff | GeorgeS | Mon 03 Oct, 2011 04:22:28 +0000 | |
538 Diff | GeorgeS | Sun 02 Oct, 2011 22:14:59 +0000 | |
521 Diff | GeorgeS | Tue 27 Sep, 2011 18:24:12 +0000 | Upload Widget... |
517 | GeorgeS | Mon 26 Sep, 2011 22:36:28 +0000 |