litesoft
@ 538
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 47 |
package org.litesoft.sandbox.multimodule.main.client; import org.litesoft.sandbox.multimodule.common.client.infrastructure.*; import com.google.gwt.activity.shared.*; import com.google.gwt.core.client.*; import com.google.gwt.event.shared.*; import com.google.gwt.place.shared.*; import com.google.gwt.safehtml.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 ); // zCenteredContent.add( new CubeFace( null, "FrontGroup", Places.Front, Places.Top, Places.Right, Places.Left, Places.Bottom ) ); 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
Revision | Author | Commited | Message |
---|---|---|---|
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 Diff | GeorgeS | Mon 26 Sep, 2011 22:36:28 +0000 | |
514 Diff | GeorgeS | Thu 22 Sep, 2011 06:07:01 +0000 | |
512 Diff | GeorgeS | Mon 19 Sep, 2011 03:27:18 +0000 | |
506 Diff | GeorgeS | Thu 15 Sep, 2011 13:50:15 +0000 | MultiModules |
503 | GeorgeS | Mon 12 Sep, 2011 05:29:58 +0000 |