|
@@ -1,36 +1,36 @@ |
1 |
|
- |
package org.litesoft.sandbox.multimodule.groupback.client.bottom; |
2 |
|
- |
|
3 |
|
- |
import org.litesoft.sandbox.anywhere.die.*; |
4 |
|
- |
import org.litesoft.sandbox.infrastructure.client.*; |
5 |
|
- |
import org.litesoft.sandbox.multimodule.foundation.client.*; |
6 |
|
- |
import org.litesoft.sandbox.multimodule.foundation.client.places.*; |
7 |
|
- |
|
8 |
|
- |
import com.google.gwt.place.shared.*; |
9 |
|
- |
import com.google.gwt.user.client.ui.*; |
10 |
|
- |
|
11 |
|
- |
public class BottomActivity extends AbstractActivity implements BottomView.Presenter { |
12 |
|
- |
private ClientFactory mClientFactory; |
13 |
|
- |
private BottomView mView; |
14 |
|
- |
|
15 |
|
- |
public BottomActivity( ClientFactory pClientFactory, BottomView pView, BottomPlace pPlace ) { |
16 |
|
- |
mClientFactory = pClientFactory; |
17 |
|
- |
(mView = pView).setLuckyId( (pPlace != null) ? pPlace.getLuckyId() : null ); |
18 |
|
- |
} |
19 |
|
- |
|
20 |
|
- |
@Override |
21 |
|
- |
public void start( AcceptsOneWidget pPanel ) { |
22 |
|
- |
mClientFactory.adjustDieFor( Places.Bottom ); |
23 |
|
- |
mView.setPresenter( this ); |
24 |
|
- |
pPanel.setWidget( mView.asWidget() ); |
25 |
|
- |
} |
26 |
|
- |
|
27 |
|
- |
@Override |
28 |
|
- |
public void goTo( Place place ) { |
29 |
|
- |
mClientFactory.goTo( place ); |
30 |
|
- |
} |
31 |
|
- |
|
32 |
|
- |
@Override |
33 |
|
- |
public Die getDie() { |
34 |
|
- |
return mClientFactory.getDie(); |
35 |
|
- |
} |
36 |
|
- |
} |
|
1 |
+ |
package org.litesoft.sandbox.multimodule.groupback.client.bottom; |
|
2 |
+ |
|
|
3 |
+ |
import org.litesoft.sandbox.anywhere.die.*; |
|
4 |
+ |
import org.litesoft.sandbox.infrastructure.client.*; |
|
5 |
+ |
import org.litesoft.sandbox.multimodule.foundation.client.*; |
|
6 |
+ |
import org.litesoft.sandbox.multimodule.foundation.client.places.*; |
|
7 |
+ |
|
|
8 |
+ |
import com.google.gwt.place.shared.*; |
|
9 |
+ |
import com.google.gwt.user.client.ui.*; |
|
10 |
+ |
|
|
11 |
+ |
public class BottomActivity extends AbstractActivity implements BottomView.Presenter { |
|
12 |
+ |
private ClientFactory mClientFactory; |
|
13 |
+ |
private BottomView mView; |
|
14 |
+ |
|
|
15 |
+ |
public BottomActivity( ClientFactory pClientFactory, BottomView pView, BottomPlace pPlace ) { |
|
16 |
+ |
mClientFactory = pClientFactory; |
|
17 |
+ |
(mView = pView).setLuckyId( (pPlace != null) ? pPlace.getLuckyId() : null ); |
|
18 |
+ |
} |
|
19 |
+ |
|
|
20 |
+ |
@Override |
|
21 |
+ |
public void start( AcceptsOneWidget pPanel ) { |
|
22 |
+ |
mClientFactory.adjustDieFor( Places.Bottom ); |
|
23 |
+ |
mView.setPresenter( this ); |
|
24 |
+ |
pPanel.setWidget( mView.asWidget() ); |
|
25 |
+ |
} |
|
26 |
+ |
|
|
27 |
+ |
@Override |
|
28 |
+ |
public void goTo( Place place ) { |
|
29 |
+ |
mClientFactory.goTo( place ); |
|
30 |
+ |
} |
|
31 |
+ |
|
|
32 |
+ |
@Override |
|
33 |
+ |
public Die getDie() { |
|
34 |
+ |
return mClientFactory.getDie(); |
|
35 |
+ |
} |
|
36 |
+ |
} |