litesoft
Diff Revisions
539
vs
540
for /trunk/GWT_Sandbox/MultiModule/groupFront/src/org/litesoft/sandbox/multimodule/groupfront/client/right/RightViewImpl.java
|
@@ -1,8 +1,9 @@ |
1 |
1 |
|
package org.litesoft.sandbox.multimodule.groupfront.client.right; |
2 |
2 |
|
|
3 |
|
- |
import org.litesoft.sandbox.multimodule.common.client.*; |
4 |
|
- |
import org.litesoft.sandbox.multimodule.common.client.support.*; |
5 |
|
- |
import org.litesoft.sandbox.multimodule.common.client.widgets.*; |
|
3 |
+ |
import org.litesoft.sandbox.infrastructure.client.widgets.*; |
|
4 |
+ |
import org.litesoft.sandbox.multimodule.foundation.client.*; |
|
5 |
+ |
import org.litesoft.sandbox.multimodule.foundation.client.support.*; |
|
6 |
+ |
import org.litesoft.sandbox.multimodule.foundation.client.widgets.*; |
6 |
7 |
|
|
7 |
8 |
|
import com.google.gwt.event.dom.client.*; |
8 |
9 |
|
import com.google.gwt.user.client.ui.*; |
|
@@ -10,18 +11,20 @@ |
10 |
11 |
|
public class RightViewImpl implements RightView, |
11 |
12 |
|
FaceSwitcher |
12 |
13 |
|
{ |
13 |
|
- |
private final Places mCenter; |
|
14 |
+ |
private final DieRotator mDieRotator = new DieRotator( this ); |
|
15 |
+ |
private final Places mCenter = Places.Right; |
14 |
16 |
|
private final Widget mAsWidget; |
15 |
17 |
|
private Presenter mPresenter; |
16 |
18 |
|
private Long mLuckyId; |
17 |
19 |
|
|
18 |
20 |
|
public RightViewImpl() |
19 |
21 |
|
{ |
20 |
|
- |
DieRotator zCubeFace = new DieRotator( this, "RightGroup", mCenter = Places.Right ); |
21 |
|
- |
|
|
22 |
+ |
String zSection = "FrontGroup"; |
22 |
23 |
|
VerticalPanel zPanel = new VerticalPanel(); |
23 |
24 |
|
zPanel.setHorizontalAlignment( HasHorizontalAlignment.ALIGN_CENTER ); |
24 |
|
- |
zPanel.add( zCubeFace ); |
|
25 |
+ |
zPanel.add( new HelpWidget( zSection, "" + mCenter ) ); |
|
26 |
+ |
zPanel.add( new Label( "" + mCenter ) ); |
|
27 |
+ |
zPanel.add( mDieRotator ); |
25 |
28 |
|
zPanel.add( new Button( "Feeling Lucky", new ClickHandler() |
26 |
29 |
|
{ |
27 |
30 |
|
@Override |
|
@@ -30,13 +33,14 @@ |
30 |
33 |
|
switchTo( PlacesSupport.deNull( mLuckyId, mCenter.getOppositeFace() ) ); |
31 |
34 |
|
} |
32 |
35 |
|
} ) ); |
|
36 |
+ |
zPanel.add( new HelpWidget( zSection, "Lucky" ) ); |
33 |
37 |
|
mAsWidget = zPanel; |
34 |
38 |
|
} |
35 |
39 |
|
|
36 |
40 |
|
@Override |
37 |
41 |
|
public void setPresenter( Presenter pPresenter ) |
38 |
42 |
|
{ |
39 |
|
- |
mPresenter = pPresenter; |
|
43 |
+ |
mDieRotator.setDie( (mPresenter = pPresenter).getDie() ); |
40 |
44 |
|
} |
41 |
45 |
|
|
42 |
46 |
|
@Override |