litesoft
@ 582
litesoft / trunk / GWT_Sandbox / MultiModuleSingleSrc / main / src / org / litesoft / sandbox / multimodule / client / groupfront / entrypoint / GroupFront.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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 |
package org.litesoft.sandbox.multimodule.client.groupfront.entrypoint; import org.litesoft.sandbox.multimodule.client.common.pavsupport.*; import org.litesoft.sandbox.multimodule.client.foundation.places.*; import org.litesoft.sandbox.multimodule.client.foundation.support.*; import org.litesoft.sandbox.multimodule.client.groupfront.front.*; import org.litesoft.sandbox.multimodule.client.groupfront.left.*; import org.litesoft.sandbox.multimodule.client.groupfront.right.*; import com.google.gwt.core.client.*; /** * Entry point classes define <code>onModuleLoad()</code> */ public class GroupFront implements EntryPoint { @Override public void onModuleLoad() { System.out.println( "GroupFront.onModuleLoad" ); ActivityFactoryRegistry.register( new ActivityFactory.Asynchronous<ClientFactory, FrontView, PlaceFront>() { @Override public String getPlaceId() { return EnumPlaces.Front.name(); } @Override public void load( ClientFactory pCommonActivityParam, final Callback<ClientFactory, FrontView, PlaceFront> pCallback ) { GWT.runAsync( new RunAsyncSyncActivityFactoryCallBack( getPlaceId(), pCommonActivityParam ) { @Override public void onSuccess() { pCallback.loaded( new CachedViewSynchronousActivityFactory<ClientFactory, FrontView, PlaceFront>() { @Override public String getPlaceId() { return EnumPlaces.Front.name(); } @Override public FrontView createView() { return new FrontViewImpl(); } @Override public Activity createActivity( ClientFactory pCommonActivityParam, FrontView pView, PlaceFront pPlace ) { return new FrontActivity( pCommonActivityParam, pView, pPlace ); } } ); } } ); } } ); ActivityFactoryRegistry.register( new ActivityFactory.Asynchronous<ClientFactory, LeftView, PlaceLeft>() { @Override public String getPlaceId() { return EnumPlaces.Left.name(); } @Override public void load( ClientFactory pCommonActivityParam, final Callback<ClientFactory, LeftView, PlaceLeft> pCallback ) { GWT.runAsync( new RunAsyncSyncActivityFactoryCallBack( getPlaceId(), pCommonActivityParam ) { @Override public void onSuccess() { pCallback.loaded( new CachedViewSynchronousActivityFactory<ClientFactory, LeftView, PlaceLeft>() { @Override public String getPlaceId() { return EnumPlaces.Left.name(); } @Override public LeftView createView() { return new LeftViewImpl(); } @Override public Activity createActivity( ClientFactory pCommonActivityParam, LeftView pView, PlaceLeft pPlace ) { return new LeftActivity( pCommonActivityParam, pView, pPlace ); } } ); } } ); } } ); ActivityFactoryRegistry.register( new ActivityFactory.Asynchronous<ClientFactory, RightView, PlaceRight>() { @Override public String getPlaceId() { return EnumPlaces.Right.name(); } @Override public void load( ClientFactory pCommonActivityParam, final Callback<ClientFactory, RightView, PlaceRight> pCallback ) { GWT.runAsync( new RunAsyncSyncActivityFactoryCallBack( getPlaceId(), pCommonActivityParam ) { @Override public void onSuccess() { pCallback.loaded( new CachedViewSynchronousActivityFactory<ClientFactory, RightView, PlaceRight>() { @Override public String getPlaceId() { return EnumPlaces.Right.name(); } @Override public RightView createView() { return new RightViewImpl(); } @Override public Activity createActivity( ClientFactory pCommonActivityParam, RightView pView, PlaceRight pPlace ) { return new RightActivity( pCommonActivityParam, pView, pPlace ); } } ); } } ); } } ); } } |
Commits for litesoft/trunk/GWT_Sandbox/MultiModuleSingleSrc/main/src/org/litesoft/sandbox/multimodule/client/groupfront/entrypoint/GroupFront.java
Revision | Author | Commited | Message |
---|---|---|---|
582 | GeorgeS | Mon 14 Nov, 2011 19:55:23 +0000 | Single Dir Based MultiModule |