Initial new layout for sixty inch entrypoint

This commit is contained in:
Papick Garcia Taboada committed 2017-03-07 15:45:13 +01:00
1 parent e52955485b
commit 24d7750e4d
31 files changed
+481 -30

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@
<!-- If you add any GWT meta tags, they must -->
<!-- be added before this line. -->
<!-- -->
<script type="text/javascript" src="com.sap.sailing.gwt.AutoPlay/com.sap.sailing.gwt.AutoPlay.nocache.js"></script>
<script type="text/javascript" src="com.sap.sailing.gwt.autoplay.AutoPlay/com.sap.sailing.gwt.autoplay.AutoPlay.nocache.js"></script>
<script type="text/javascript" src="js/jquery-1.5.2.min.js"></script>
</head>
@@ -0,0 +1,59 @@
<!doctype html>
<!-- The DOCTYPE declaration above will set the -->
<!-- browser's rendering engine into -->
<!-- "Standards Mode". Replacing this declaration -->
<!-- with a "Quirks Mode" doctype may lead to some -->
<!-- differences in layout. -->
<html>
<head>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<!-- -->
<!-- Consider inlining CSS to reduce the number of requested files -->
<!-- -->
<link rel="shortcut icon" type="image/x-icon" href="images/sap.ico" />
<link href='images/sap-sailing-app-icon.png' rel='apple-touch-icon'>
<!-- -->
<!-- Any title is fine -->
<!-- -->
<title>SAP Sailing Analytics 60"</title>
<link rel="stylesheet" type="text/css" href="/sailing-reset-2.0.cache.css">
<link rel="stylesheet" type="text/css" href="/sailing-normalize-3.0.2.cache.css">
<link rel="stylesheet" type="text/css" href="/sailing-fontface-1.0.cache.css">
<link rel="stylesheet" type="text/css" href="LeaderboardNewHome.css">
<link rel="stylesheet" type="text/css" href="RaceBoard.css">
<!-- -->
<!-- This script loads your compiled module. -->
<!-- If you add any GWT meta tags, they must -->
<!-- be added before this line. -->
<!-- -->
<script type="text/javascript" src="com.sap.sailing.gwt.autoplay.AutoPlaySixtyInch/com.sap.sailing.gwt.autoplay.AutoPlaySixtyInch.nocache.js"></script>
<script type="text/javascript" src="js/jquery-1.5.2.min.js"></script>
</head>
<!-- -->
<!-- The body can have arbitrary html, or -->
<!-- you can leave the body empty if you want -->
<!-- to create a completely dynamic UI. -->
<!-- -->
<body>
<!-- OPTIONAL: include this if you want history support -->
<iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>
<!-- RECOMMENDED if your web app will not function without JavaScript enabled -->
<noscript>
<div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color: white; border: 1px solid red; padding: 4px; font-family: sans-serif">
Your web browser must have JavaScript enabled
in order for this application to display correctly.
</div>
</noscript>
</body>
</html>
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.7.0//EN" "http://gwtproject.org/doctype/2.7.0/gwt-module.dtd">
<module>
<inherits name='com.sap.sailing.gwt.autoplay.client.AutoPlayBase'/>
<!-- Default is Tablet/Desktop -->
<replace-with
class="com.sap.sailing.gwt.autoplay.client.app.AutoPlayClientFactoryDesktopImpl">
<when-type-is class="com.sap.sailing.gwt.autoplay.client.app.AutoPlayAppClientFactory" />
</replace-with>
<!-- Specify the app entry point class. -->
<entry-point class='com.sap.sailing.gwt.autoplay.client.AutoPlayEntryPoint' />
</module>
@@ -19,21 +19,12 @@
<!-- Bootstrap API -->
<inherits name="com.github.gwtbootstrap.BootstrapNoResources" />
<inherits name='com.github.gwtbootstrap.datetimepicker.DatetimepickerNoResources' />
<!-- Default is Tablet/Desktop -->
<replace-with
class="com.sap.sailing.gwt.autoplay.client.app.DesktopApplicationClientFactory">
<when-type-is class="com.sap.sailing.gwt.autoplay.client.app.AutoPlayAppClientFactory" />
</replace-with>
<!-- Specify the app entry point class. -->
<entry-point class='com.sap.sailing.gwt.autoplay.client.AutoPlayEntryPoint' />
<!-- Specify the paths for translatable code -->
<!-- module containing locale configuration -->
<inherits name='com.sap.sailing.gwt.common.SailingLocalesAllPermutations' />
<source path="autoplay"/>
<source path="client"/>
<inherits name='com.sap.sailing.gwt.common.SourceCommon'/>
<inherits name='com.sap.sailing.gwt.ui.SourceCommon'/>
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.7.0//EN" "http://gwtproject.org/doctype/2.7.0/gwt-module.dtd">
<module>
<!-- Default is Tablet/Desktop -->
<replace-with
class="com.sap.sailing.gwt.autoplay.client.app.AutoPlayClientFactorySixtyInchImpl">
<when-type-is class="com.sap.sailing.gwt.autoplay.client.app.AutoPlayAppClientFactory" />
</replace-with>
<!-- Specify the app entry point class. -->
<entry-point class='com.sap.sailing.gwt.autoplay.client.AutoPlaySixtyInchEntryPoint' />
</module>
@@ -3,16 +3,16 @@ package com.sap.sailing.gwt.autoplay.client;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Document;
import com.sap.sailing.gwt.autoplay.client.app.AutoPlayAppActivityMapper;
import com.sap.sailing.gwt.autoplay.client.app.AutoPlayAppClientFactory;
import com.sap.sailing.gwt.autoplay.client.app.AutoPlayClientFactory;
import com.sap.sailing.gwt.autoplay.client.app.AutoPlayAppHistoryMapper;
import com.sap.sailing.gwt.common.client.SharedResources;
import com.sap.sailing.gwt.ui.client.StringMessages;
import com.sap.sse.gwt.client.mvp.AbstractMvpEntryPoint;
public class AutoPlayEntryPoint extends AbstractMvpEntryPoint<StringMessages, AutoPlayAppClientFactory> {
public class AutoPlayEntryPoint extends AbstractMvpEntryPoint<StringMessages, AutoPlayClientFactory> {
@Override
public void doOnModuleLoad() {
AutoPlayAppClientFactory clientFactory = GWT.create(AutoPlayAppClientFactory.class);
AutoPlayClientFactory clientFactory = GWT.create(AutoPlayClientFactory.class);
AutoPlayAppHistoryMapper applicationHistoryMapper = GWT.create(AutoPlayAppHistoryMapper.class);
initMvp(clientFactory, applicationHistoryMapper, new AutoPlayAppActivityMapper(clientFactory));
@@ -0,0 +1,29 @@
package com.sap.sailing.gwt.autoplay.client;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Document;
import com.sap.sailing.gwt.autoplay.client.app.AutoPlayAppActivityMapper;
import com.sap.sailing.gwt.autoplay.client.app.AutoPlayClientFactory;
import com.sap.sailing.gwt.autoplay.client.app.AutoPlayAppHistoryMapper;
import com.sap.sailing.gwt.common.client.SharedResources;
import com.sap.sailing.gwt.ui.client.StringMessages;
import com.sap.sse.gwt.client.mvp.AbstractMvpEntryPoint;
public class AutoPlaySixtyInchEntryPoint extends AbstractMvpEntryPoint<StringMessages, AutoPlayClientFactory> {
@Override
public void doOnModuleLoad() {
AutoPlayClientFactory clientFactory = GWT.create(AutoPlayClientFactory.class);
AutoPlayAppHistoryMapper applicationHistoryMapper = GWT.create(AutoPlayAppHistoryMapper.class);
initMvp(clientFactory, applicationHistoryMapper, new AutoPlayAppActivityMapper(clientFactory));
SharedResources.INSTANCE.mediaCss().ensureInjected();
SharedResources.INSTANCE.mainCss().ensureInjected();
Document.get().getBody().addClassName(SharedResources.INSTANCE.mainCss().desktop());
}
@Override
protected StringMessages createStringMessages() {
return GWT.create(StringMessages.class);
}
}
@@ -9,9 +9,9 @@ import com.sap.sailing.gwt.autoplay.client.place.start.StartActivityProxy;
import com.sap.sailing.gwt.autoplay.client.place.start.StartPlace;
public class AutoPlayAppActivityMapper implements ActivityMapper {
private final AutoPlayAppClientFactory clientFactory;
private final AutoPlayClientFactory clientFactory;
public AutoPlayAppActivityMapper(AutoPlayAppClientFactory clientFactory) {
public AutoPlayAppActivityMapper(AutoPlayClientFactory clientFactory) {
super();
this.clientFactory = clientFactory;
}
@@ -3,6 +3,6 @@ package com.sap.sailing.gwt.autoplay.client.app;
import com.sap.sailing.gwt.autoplay.client.place.player.PlayerClientFactory;
import com.sap.sailing.gwt.autoplay.client.place.start.StartClientFactory;
public interface AutoPlayAppClientFactory extends StartClientFactory, PlayerClientFactory {
public interface AutoPlayClientFactory extends StartClientFactory, PlayerClientFactory {
PlaceNavigator getPlaceNavigator();
}
@@ -14,12 +14,12 @@ import com.sap.sailing.gwt.ui.client.SailingServiceAsync;
import com.sap.sse.gwt.client.EntryPointHelper;
import com.sap.sse.security.ui.client.SecureClientFactoryImpl;
public abstract class AbstractApplicationClientFactory extends SecureClientFactoryImpl<ApplicationTopLevelView> implements AutoPlayAppClientFactory {
public abstract class AutoPlayClientFactoryBase extends SecureClientFactoryImpl<ApplicationTopLevelView> implements AutoPlayClientFactory {
private final SailingServiceAsync sailingService;
private final MediaServiceAsync mediaService;
private final PlaceNavigator navigator;
public AbstractApplicationClientFactory(ApplicationTopLevelView root, EventBus eventBus, PlaceController placeController, PlaceNavigator navigator) {
public AutoPlayClientFactoryBase(ApplicationTopLevelView root, EventBus eventBus, PlaceController placeController, PlaceNavigator navigator) {
super(root, eventBus, placeController);
this.navigator = navigator;
sailingService = GWT.create(SailingService.class);
@@ -10,21 +10,21 @@ import com.sap.sailing.gwt.autoplay.client.place.start.StartView;
import com.sap.sse.gwt.client.mvp.ErrorView;
public class DesktopApplicationClientFactory extends AbstractApplicationClientFactory implements AutoPlayAppClientFactory {
public DesktopApplicationClientFactory() {
public class AutoPlayClientFactoryDesktopImpl extends AutoPlayClientFactoryBase implements AutoPlayClientFactory {
public AutoPlayClientFactoryDesktopImpl() {
this(new SimpleEventBus());
}
private DesktopApplicationClientFactory(EventBus eventBus) {
private AutoPlayClientFactoryDesktopImpl(EventBus eventBus) {
this(eventBus, new PlaceController(eventBus));
}
private DesktopApplicationClientFactory(EventBus eventBus, PlaceController placeController) {
private AutoPlayClientFactoryDesktopImpl(EventBus eventBus, PlaceController placeController) {
this(eventBus, placeController, new PlaceNavigatorImpl(placeController));
}
private DesktopApplicationClientFactory(EventBus eventBus, PlaceController placeController, PlaceNavigator navigator) {
super(new DesktopApplicationView(navigator), eventBus, placeController, navigator);
private AutoPlayClientFactoryDesktopImpl(EventBus eventBus, PlaceController placeController, PlaceNavigator navigator) {
super(new AutoPlayMainViewDesktopImpl(), eventBus, placeController, navigator);
}
@Override
@@ -0,0 +1,45 @@
package com.sap.sailing.gwt.autoplay.client.app;
import com.google.gwt.event.shared.SimpleEventBus;
import com.google.gwt.place.shared.PlaceController;
import com.google.web.bindery.event.shared.EventBus;
import com.sap.sailing.gwt.autoplay.client.place.player.DesktopPlayerView;
import com.sap.sailing.gwt.autoplay.client.place.player.PlayerView;
import com.sap.sailing.gwt.autoplay.client.place.start.DesktopStartView;
import com.sap.sailing.gwt.autoplay.client.place.start.StartView;
import com.sap.sse.gwt.client.mvp.ErrorView;
public class AutoPlayClientFactorySixtyInchImpl extends AutoPlayClientFactoryBase implements AutoPlayClientFactory {
public AutoPlayClientFactorySixtyInchImpl() {
this(new SimpleEventBus());
}
private AutoPlayClientFactorySixtyInchImpl(EventBus eventBus) {
this(eventBus, new PlaceController(eventBus));
}
private AutoPlayClientFactorySixtyInchImpl(EventBus eventBus, PlaceController placeController) {
this(eventBus, placeController, new PlaceNavigatorImpl(placeController));
}
private AutoPlayClientFactorySixtyInchImpl(EventBus eventBus, PlaceController placeController, PlaceNavigator navigator) {
super(new AutoPlayMainViewSixtyInchImpl(), eventBus, placeController, navigator);
}
@Override
public StartView createStartView() {
return new DesktopStartView(getPlaceNavigator(), getEventBus(), getUserService());
}
@Override
public PlayerView createPlayerView() {
return new DesktopPlayerView(getPlaceNavigator());
}
@Override
public ErrorView createErrorView(String errorMessage, Throwable errorReason) {
return null;
}
}
@@ -14,10 +14,10 @@ import com.sap.sse.gwt.client.ErrorReporter;
/**
* This is the top-level view of the autoplay application. Every time another presenter wants to reveal itself,
* {@link DesktopApplicationView} will add its content of the target inside the {@code mainContentPanel}.
* {@link AutoPlayMainViewDesktopImpl} will add its content of the target inside the {@code mainContentPanel}.
*/
public class DesktopApplicationView extends Composite implements ApplicationTopLevelView {
interface DesktopApplicationViewUiBinder extends UiBinder<Widget, DesktopApplicationView> {
public class AutoPlayMainViewDesktopImpl extends Composite implements ApplicationTopLevelView {
interface DesktopApplicationViewUiBinder extends UiBinder<Widget, AutoPlayMainViewDesktopImpl> {
}
private static DesktopApplicationViewUiBinder uiBinder = GWT.create(DesktopApplicationViewUiBinder.class);
@@ -27,7 +27,7 @@ public class DesktopApplicationView extends Composite implements ApplicationTopL
@UiField
SimpleLayoutPanel mainContentPanel;
public DesktopApplicationView(PlaceNavigator navigator) {
public AutoPlayMainViewDesktopImpl() {
initWidget(uiBinder.createAndBindUi(this));
RootLayoutPanel.get().add(this.asWidget());
@@ -0,0 +1,78 @@
package com.sap.sailing.gwt.autoplay.client.app;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.layout.client.Layout.AnimationCallback;
import com.google.gwt.layout.client.Layout.Layer;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.AcceptsOneWidget;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.LayoutPanel;
import com.google.gwt.user.client.ui.ResizeComposite;
import com.google.gwt.user.client.ui.Widget;
import com.sap.sailing.gwt.ui.client.StringMessages;
import com.sap.sse.gwt.client.DefaultErrorReporter;
import com.sap.sse.gwt.client.ErrorReporter;
public class AutoPlayMainViewSixtyInchImpl extends ResizeComposite
implements ApplicationTopLevelView, AcceptsOneWidget {
private static SixtyInchViewImplUiBinder uiBinder = GWT.create(SixtyInchViewImplUiBinder.class);
@UiField
protected LayoutPanel mainPanel;
private Widget currentWidget;
private static ErrorReporter errorReporter = new DefaultErrorReporter<StringMessages>(StringMessages.INSTANCE);
interface SixtyInchViewImplUiBinder extends UiBinder<Widget, AutoPlayMainViewSixtyInchImpl> {
}
public AutoPlayMainViewSixtyInchImpl() {
initWidget(uiBinder.createAndBindUi(this));
}
@Override
public void setWidget(IsWidget widgetToShow) {
if (widgetToShow == null) {
// we can't display a null widget
return;
}
if (currentWidget == null) {
// first widget, just show.
mainPanel.add(widgetToShow);
currentWidget = widgetToShow.asWidget();
} else {
final Widget widgetToDispose = currentWidget;
mainPanel.add(widgetToShow);
mainPanel.setWidgetLeftWidth(widgetToShow, 100, Unit.PCT, 100, Unit.PCT);
mainPanel.forceLayout();
mainPanel.setWidgetLeftWidth(widgetToShow, 0, Unit.PCT, 100, Unit.PCT);
mainPanel.animate(2000, new AnimationCallback() {
@Override
public void onAnimationComplete() {
if (widgetToDispose != null) {
mainPanel.remove(widgetToDispose);
}
}
@Override
public void onLayout(Layer layer, double progress) {
}
});
}
}
@Override
public AcceptsOneWidget getContent() {
return this;
}
@Override
public void showLoading(boolean visible) {
}
@Override
public ErrorReporter getErrorReporter() {
return errorReporter;
}
}
@@ -0,0 +1,13 @@
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui">
<ui:style>
.mainPanel {
height: 100%;
width: 100%;
}
</ui:style>
<g:LayoutPanel ui:field="mainPanel" styleName="{style.mainPanel}">
</g:LayoutPanel>
</ui:UiBinder>
@@ -13,7 +13,7 @@ import com.sap.sse.gwt.client.shared.perspective.PerspectiveLifecycleWithAllSett
public class PlaceNavigatorImpl implements PlaceNavigator {
private final PlaceController placeController;
protected PlaceNavigatorImpl(PlaceController placeController) {
public PlaceNavigatorImpl(PlaceController placeController) {
super();
this.placeController = placeController;
}
@@ -0,0 +1,41 @@
package com.sap.sailing.gwt.autoplay.client.place.sixtyinch;
import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceController;
import com.google.gwt.user.client.Timer;
import com.sap.sailing.gwt.autoplay.client.place.sixtyinch.slides.slide1.Slide1Place;
import com.sap.sailing.gwt.autoplay.client.place.sixtyinch.slides.slide2.Slide2Place;
public class SixtyInchOrchestrator {
private PlaceController placeController;
private Place[] simplePath = { new Slide1Place(), new Slide2Place() };
private int currentSlideNr = -1;
public SixtyInchOrchestrator(PlaceController placeController) {
this.placeController = placeController;
}
private Timer transitionTrigger = new Timer() {
@Override
public void run() {
triggerNextSlide();
}
};
public void start() {
transitionTrigger.run();
}
private void triggerNextSlide() {
currentSlideNr++;
if (currentSlideNr > simplePath.length - 1) {
currentSlideNr = 0;
}
placeController.goTo(simplePath[currentSlideNr]);
transitionTrigger.schedule(10000);
}
}
@@ -0,0 +1,9 @@
package com.sap.sailing.gwt.autoplay.client.place.sixtyinch.base;
import com.google.gwt.activity.shared.Activity;
import com.google.gwt.place.shared.Place;
public interface Slide<P extends Place> extends Activity {
}
@@ -0,0 +1,23 @@
package com.sap.sailing.gwt.autoplay.client.place.sixtyinch.base;
import com.google.gwt.activity.shared.AbstractActivity;
import com.google.gwt.place.shared.Place;
public abstract class SlideBase<P extends Place> extends AbstractActivity implements Slide<P> {
private SlideContext slideCtx;
private P place;
public SlideBase(P place, SlideContext slideCtx) {
this.place = place;
this.slideCtx = slideCtx;
}
protected SlideContext getSlideCtx() {
return slideCtx;
}
protected P getPlace() {
return place;
}
}
@@ -0,0 +1,5 @@
package com.sap.sailing.gwt.autoplay.client.place.sixtyinch.base;
public interface SlideContext {
}
@@ -0,0 +1,7 @@
package com.sap.sailing.gwt.autoplay.client.place.sixtyinch.slides.slide1;
import com.google.gwt.place.shared.Place;
public class Slide1Place extends Place {
}
@@ -0,0 +1,21 @@
package com.sap.sailing.gwt.autoplay.client.place.sixtyinch.slides.slide1;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.user.client.ui.AcceptsOneWidget;
import com.sap.sailing.gwt.autoplay.client.place.sixtyinch.base.SlideBase;
import com.sap.sailing.gwt.autoplay.client.place.sixtyinch.base.SlideContext;
public class Slide1PresenterImpl extends SlideBase<Slide1Place> implements Slide1View.Slide1Presenter {
private Slide1View view;
public Slide1PresenterImpl(Slide1Place place, SlideContext slideCtx) {
super(place, slideCtx);
}
@Override
public void start(AcceptsOneWidget panel, EventBus eventBus) {
view.startingWith(this);
}
}
@@ -0,0 +1,7 @@
package com.sap.sailing.gwt.autoplay.client.place.sixtyinch.slides.slide1;
public interface Slide1View {
void startingWith(Slide1Presenter p);
public interface Slide1Presenter {
}
}
@@ -0,0 +1,18 @@
package com.sap.sailing.gwt.autoplay.client.place.sixtyinch.slides.slide1;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.ui.ResizeComposite;
import com.google.gwt.user.client.ui.Widget;
public class Slide1ViewImpl extends ResizeComposite {
private static Slide1ViewImplUiBinder uiBinder = GWT.create(Slide1ViewImplUiBinder.class);
interface Slide1ViewImplUiBinder extends UiBinder<Widget, Slide1ViewImpl> {
}
public Slide1ViewImpl() {
initWidget(uiBinder.createAndBindUi(this));
}
}
@@ -0,0 +1,12 @@
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui">
<ui:style>
</ui:style>
<g:SimpleLayoutPanel>
<g:HTMLPanel>
<p>SLIDE 1</p>
</g:HTMLPanel>
</g:SimpleLayoutPanel>
</ui:UiBinder>
@@ -0,0 +1,7 @@
package com.sap.sailing.gwt.autoplay.client.place.sixtyinch.slides.slide2;
import com.google.gwt.place.shared.Place;
public class Slide2Place extends Place {
}
@@ -0,0 +1,21 @@
package com.sap.sailing.gwt.autoplay.client.place.sixtyinch.slides.slide2;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.user.client.ui.AcceptsOneWidget;
import com.sap.sailing.gwt.autoplay.client.place.sixtyinch.base.SlideBase;
import com.sap.sailing.gwt.autoplay.client.place.sixtyinch.base.SlideContext;
public class Slide2PresenterImpl extends SlideBase<Slide2Place> implements Slide2View.Slide1Presenter {
private Slide2View view;
public Slide2PresenterImpl(Slide2Place place, SlideContext slideCtx) {
super(place, slideCtx);
}
@Override
public void start(AcceptsOneWidget panel, EventBus eventBus) {
view.startingWith(this);
}
}
@@ -0,0 +1,7 @@
package com.sap.sailing.gwt.autoplay.client.place.sixtyinch.slides.slide2;
public interface Slide2View {
void startingWith(Slide1Presenter p);
public interface Slide1Presenter {
}
}
@@ -0,0 +1,18 @@
package com.sap.sailing.gwt.autoplay.client.place.sixtyinch.slides.slide2;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.ui.ResizeComposite;
import com.google.gwt.user.client.ui.Widget;
public class Slide2ViewImpl extends ResizeComposite {
private static Slide1ViewImplUiBinder uiBinder = GWT.create(Slide1ViewImplUiBinder.class);
interface Slide1ViewImplUiBinder extends UiBinder<Widget, Slide2ViewImpl> {
}
public Slide2ViewImpl() {
initWidget(uiBinder.createAndBindUi(this));
}
}
@@ -0,0 +1,12 @@
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui">
<ui:style>
</ui:style>
<g:SimpleLayoutPanel>
<g:HTMLPanel>
<p>SLIDE 1</p>
</g:HTMLPanel>
</g:SimpleLayoutPanel>
</ui:UiBinder>