Subversion Repository Public Repository

litesoft

Diff Revisions 538 vs 540 for /trunk/GWT_Sandbox/MultiModule/groupFront/src/org/litesoft/sandbox/multimodule/groupfront/client/front/FrontViewImpl.java

Diff revisions: vs.
  @@ -1,8 +1,9 @@
1 1 package org.litesoft.sandbox.multimodule.groupfront.client.front;
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,7 +11,8 @@
10 11 public class FrontViewImpl implements FrontView,
11 12 FaceSwitcher
12 13 {
13 - private final Places mCenter;
14 + private final DieRotator mDieRotator = new DieRotator( this );
15 + private final Places mCenter = Places.Front;
14 16 private final Widget mAsWidget;
15 17 private Presenter mPresenter;
16 18 private Long mLuckyId;
  @@ -18,14 +20,11 @@
18 20 public FrontViewImpl()
19 21 {
20 22 String zSection = "FrontGroup";
21 - mCenter = Places.Front;
22 - DieRotator zCubeFace = new DieRotator( this, "FrontGroup" , mCenter = Places.Front );
23 -
24 23 VerticalPanel zPanel = new VerticalPanel();
25 24 zPanel.setHorizontalAlignment( HasHorizontalAlignment.ALIGN_CENTER );
26 25 zPanel.add( new HelpWidget( zSection, "" + mCenter ) );
27 26 zPanel.add( new Label( "" + mCenter ) );
28 - zPanel.add( zCubeFace );
27 + zPanel.add( mDieRotator );
29 28 zPanel.add( new Button( "Feeling Lucky", new ClickHandler()
30 29 {
31 30 @Override
  @@ -34,13 +33,14 @@
34 33 switchTo( PlacesSupport.deNull( mLuckyId, mCenter.getOppositeFace() ) );
35 34 }
36 35 } ) );
36 + zPanel.add( new HelpWidget( zSection, "Lucky" ) );
37 37 mAsWidget = zPanel;
38 38 }
39 39
40 40 @Override
41 41 public void setPresenter( Presenter pPresenter )
42 42 {
43 - mPresenter = pPresenter;
43 + mDieRotator.setDie( (mPresenter = pPresenter).getDie() );
44 44 }
45 45
46 46 @Override