Subversion Repository Public Repository

litesoft

Diff Revisions 748 vs 749 for /trunk/GWT_Sandbox/MultiModuleSingleSrc/main/src/org/litesoft/sandbox/multimodule/client/module/groupfront/right/RightViewImpl.java

Diff revisions: vs.
  @@ -1,26 +1,28 @@
1 1 package org.litesoft.sandbox.multimodule.client.module.groupfront.right;
2 2
3 + import org.litesoft.GWT.client.pavsupport.*;
3 4 import org.litesoft.GWT.client.util.*;
4 5 import org.litesoft.GWT.client.widgets.*;
6 + import org.litesoft.core.util.externalization.*;
5 7 import org.litesoft.sandbox.multimodule.client.foundation.places.*;
6 8 import org.litesoft.sandbox.multimodule.client.foundation.support.*;
7 9 import org.litesoft.sandbox.multimodule.client.foundation.widgets.*;
8 10
9 11 import com.google.gwt.event.dom.client.*;
10 - import com.google.gwt.user.client.ui.*;
11 12 import com.google.gwt.user.client.ui.Button;
13 + import com.google.gwt.user.client.ui.*;
12 14
13 - public class RightViewImpl implements RightView,
14 - FaceSwitcher
15 + public class RightViewImpl extends AbstractViewImpl<RightView.Presenter> implements RightView,
16 + FaceSwitcher
15 17 {
16 18 private final DieRotator mDieRotator = new DieRotator( this );
17 19 private final EnumPlaces mCenter = EnumPlaces.Right;
18 20 private final Widget mAsWidget;
19 - private Presenter mPresenter;
20 21 private Long mLuckyId;
21 22
22 - public RightViewImpl()
23 + public RightViewImpl( E13nResolver pResolver )
23 24 {
25 + super( pResolver );
24 26 VerticalPanel zPanel = new VerticalPanel();
25 27 zPanel.setHorizontalAlignment( HasHorizontalAlignment.ALIGN_CENTER );
26 28 zPanel.add( new Label( "" + mCenter ) );
  @@ -58,7 +60,8 @@
58 60 @Override
59 61 public void setPresenter( Presenter pPresenter )
60 62 {
61 - mDieRotator.setDie( (mPresenter = pPresenter).getDie() );
63 + super.setPresenter( pPresenter );
64 + mDieRotator.setDie( pPresenter.getDie() );
62 65 }
63 66
64 67 @Override
  @@ -76,6 +79,6 @@
76 79 @Override
77 80 public void switchTo( EnumPlaces pPlace )
78 81 {
79 - mPresenter.goTo( EnumPlaces.createPlace( pPlace, (long) mCenter.getOppositeFace().ordinal() ) );
82 + mPresenter.goForwardTo( EnumPlaces.createPlace( pPlace, (long) mCenter.getOppositeFace().ordinal() ) );
80 83 }
81 84 }