mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-28 14:57:12 +00:00
Initial wireframe structure
This commit is contained in:
1 parent
8fd9ae9519
commit
23bb3d38e3
24 files changed
+381
-49
No files matched your search
+3
-4
@@ -5,9 +5,8 @@ import com.google.gwt.place.shared.WithTokenizers;
|
||||
import com.sap.sailing.gwt.home.client.place.aboutus.AboutUsPlace;
|
||||
import com.sap.sailing.gwt.home.client.place.contact.ContactPlace;
|
||||
import com.sap.sailing.gwt.home.client.place.event.EventPlace;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.multiregatta.tabs.overview.EventOverviewPlace;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.tabs.leaderboard.EventLeaderboardPlace;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.tabs.overview.EventRegattaOverviewPlace;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.tabs.overview.multiregatta.MultiRegattaOverviewPlace;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.tabs.races.EventRacesPlace;
|
||||
import com.sap.sailing.gwt.home.client.place.events.EventsPlace;
|
||||
import com.sap.sailing.gwt.home.client.place.regatta.RegattaPlace;
|
||||
@@ -23,8 +22,8 @@ import com.sap.sailing.gwt.home.client.place.whatsnew.WhatsNewPlace;
|
||||
RegattaPlace.Tokenizer.class, SeriesPlace.Tokenizer.class,
|
||||
// Event tab places...
|
||||
com.sap.sailing.gwt.home.client.place.event2.EventDefaultPlace.Tokenizer.class,//
|
||||
EventOverviewPlace.Tokenizer.class,//
|
||||
EventRegattaOverviewPlace.Tokenizer.class,//
|
||||
MultiRegattaOverviewPlace.Tokenizer.class,//
|
||||
MultiRegattaOverviewPlace.Tokenizer.class,//
|
||||
EventRacesPlace.Tokenizer.class,
|
||||
EventLeaderboardPlace.Tokenizer.class
|
||||
|
||||
|
||||
+2
-2
@@ -7,10 +7,10 @@ import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||
import com.sap.sailing.gwt.home.client.place.event.EventClientFactory;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.multiregatta.AbstractMultiregattaEventPlace;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.multiregatta.EventMultiregattaActivity;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.multiregatta.tabs.overview.EventOverviewPlace;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.regatta.AbstractEventRegattaPlace;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.regatta.EventRegattaActivity;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.tabs.EventContext;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.tabs.overview.multiregatta.MultiRegattaOverviewPlace;
|
||||
import com.sap.sailing.gwt.ui.shared.EventDTO;
|
||||
import com.sap.sse.gwt.client.mvp.AbstractActivityProxy;
|
||||
|
||||
@@ -22,7 +22,7 @@ public class EventActivityProxy extends AbstractActivityProxy {
|
||||
|
||||
public EventActivityProxy(AbstractEventPlace place, EventClientFactory clientFactory) {
|
||||
if(place instanceof EventDefaultPlace) {
|
||||
this.place = new EventOverviewPlace(place.getCtx());
|
||||
this.place = new MultiRegattaOverviewPlace(place.getCtx());
|
||||
} else {
|
||||
this.place = place;
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
|
||||
xmlns:g="urn:import:com.google.gwt.user.client.ui"
|
||||
xmlns:c="urn:import:com.sap.sailing.gwt.common.client.controls.tabbar"
|
||||
xmlns:tabs="urn:import:com.sap.sailing.gwt.home.client.place.event2.multiregatta.tabs" xmlns:h="urn:import:com.sap.sailing.gwt.home.client.place.event2.header">
|
||||
xmlns:tabs="urn:import:com.sap.sailing.gwt.home.client.place.event2.tabs" xmlns:h="urn:import:com.sap.sailing.gwt.home.client.place.event2.header">
|
||||
<ui:with field="i18n" type="com.sap.sailing.gwt.ui.client.StringMessages" />
|
||||
<ui:style>
|
||||
.header {
|
||||
|
||||
+6
@@ -58,6 +58,12 @@
|
||||
<c:tabcontent title="Leaderboard">
|
||||
<tabs:leaderboard.EventLeaderboardWidgetAndActivity />
|
||||
</c:tabcontent>
|
||||
<c:tabcontent title="Schedule">
|
||||
<tabs:leaderboard.EventLeaderboardWidgetAndActivity />
|
||||
</c:tabcontent>
|
||||
<c:tabcontent title="Media">
|
||||
<tabs:leaderboard.EventLeaderboardWidgetAndActivity />
|
||||
</c:tabcontent>
|
||||
</c:TabPanel>
|
||||
</g:HTMLPanel>
|
||||
</ui:UiBinder>
|
||||
+2
-2
@@ -10,7 +10,7 @@ import com.google.gwt.user.client.ui.Label;
|
||||
import com.sap.sailing.domain.common.dto.LeaderboardDTO;
|
||||
import com.sap.sailing.gwt.common.client.controls.tabbar.TabActivity;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.tabs.EventContext;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.tabs.overview.EventRegattaOverviewPlace;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.tabs.overview.regatta.RegattaOverviewPlace;
|
||||
|
||||
/**
|
||||
* Created by pgtaboada on 25.11.14.
|
||||
@@ -45,7 +45,7 @@ public class EventLeaderboardWidgetAndActivity extends Composite implements TabA
|
||||
.getCtx()
|
||||
.getClientFactory()
|
||||
.getPlaceController()
|
||||
.goTo(new EventRegattaOverviewPlace(selectedPlace.getCtx()));
|
||||
.goTo(new RegattaOverviewPlace(selectedPlace.getCtx()));
|
||||
}
|
||||
}.schedule(3000);
|
||||
|
||||
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
package com.sap.sailing.gwt.home.client.place.event2.tabs.media;
|
||||
|
||||
import com.google.gwt.place.shared.PlaceTokenizer;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.regatta.AbstractEventRegattaPlace;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.tabs.EventContext;
|
||||
|
||||
public class MediaPlace extends AbstractEventRegattaPlace {
|
||||
public MediaPlace(String id, String regattaId) {
|
||||
super(id, regattaId);
|
||||
}
|
||||
|
||||
public MediaPlace(EventContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
public static class Tokenizer implements PlaceTokenizer<MediaPlace> {
|
||||
@Override
|
||||
public String getToken(MediaPlace place) {
|
||||
return place.getEventUuidAsString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public MediaPlace getPlace(String token) {
|
||||
// TODO
|
||||
return new MediaPlace(token, "");
|
||||
}
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.sap.sailing.gwt.home.client.place.event2.tabs.media;
|
||||
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.uibinder.client.UiBinder;
|
||||
import com.google.gwt.user.client.ui.AcceptsOneWidget;
|
||||
import com.google.gwt.user.client.ui.Composite;
|
||||
import com.google.gwt.user.client.ui.HTMLPanel;
|
||||
import com.sap.sailing.gwt.common.client.controls.tabbar.TabActivity;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.tabs.EventContext;
|
||||
|
||||
/**
|
||||
* Created by pgtaboada on 25.11.14.
|
||||
*/
|
||||
public class MediaWidgetAndActivity extends Composite implements TabActivity<MediaPlace, EventContext> {
|
||||
|
||||
public MediaWidgetAndActivity() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<MediaPlace> getPlaceClassForActivation() {
|
||||
return MediaPlace.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void start(MediaPlace myPlace, AcceptsOneWidget contentArea) {
|
||||
|
||||
initWidget(ourUiBinder.createAndBindUi(this));
|
||||
|
||||
contentArea.setWidget(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void stop() {
|
||||
|
||||
}
|
||||
|
||||
interface MyBinder extends UiBinder<HTMLPanel, MediaWidgetAndActivity> {
|
||||
}
|
||||
|
||||
private static MyBinder ourUiBinder = GWT.create(MyBinder.class);
|
||||
|
||||
@Override
|
||||
public MediaPlace placeToFire(EventContext ctx) {
|
||||
return new MediaPlace(ctx);
|
||||
}
|
||||
|
||||
}
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
|
||||
xmlns:g='urn:import:com.google.gwt.user.client.ui'>
|
||||
<g:HTMLPanel>
|
||||
<p>This is events tab</p>
|
||||
<p>This is MEDIA tab</p>
|
||||
</g:HTMLPanel>
|
||||
</ui:UiBinder>
|
||||
-28
@@ -1,28 +0,0 @@
|
||||
package com.sap.sailing.gwt.home.client.place.event2.tabs.overview;
|
||||
|
||||
import com.google.gwt.place.shared.PlaceTokenizer;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.regatta.AbstractEventRegattaPlace;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.tabs.EventContext;
|
||||
|
||||
public class EventRegattaOverviewPlace extends AbstractEventRegattaPlace {
|
||||
public EventRegattaOverviewPlace(String id, String regattaId) {
|
||||
super(id, regattaId);
|
||||
}
|
||||
|
||||
public EventRegattaOverviewPlace(EventContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
public static class Tokenizer implements PlaceTokenizer<EventRegattaOverviewPlace> {
|
||||
@Override
|
||||
public String getToken(EventRegattaOverviewPlace place) {
|
||||
return place.getEventUuidAsString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventRegattaOverviewPlace getPlace(String token) {
|
||||
// TODO
|
||||
return new EventRegattaOverviewPlace(token, "");
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.sap.sailing.gwt.home.client.place.event2.multiregatta.tabs.overview;
|
||||
package com.sap.sailing.gwt.home.client.place.event2.tabs.overview.event;
|
||||
|
||||
import com.google.gwt.place.shared.PlaceTokenizer;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.multiregatta.AbstractMultiregattaEventPlace;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.sap.sailing.gwt.home.client.place.event2.multiregatta.tabs.overview;
|
||||
package com.sap.sailing.gwt.home.client.place.event2.tabs.overview.event;
|
||||
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.uibinder.client.UiBinder;
|
||||
File renamed without changes.
+27
@@ -0,0 +1,27 @@
|
||||
package com.sap.sailing.gwt.home.client.place.event2.tabs.overview.multiregatta;
|
||||
|
||||
import com.google.gwt.place.shared.PlaceTokenizer;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.multiregatta.AbstractMultiregattaEventPlace;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.tabs.EventContext;
|
||||
|
||||
public class MultiRegattaOverviewPlace extends AbstractMultiregattaEventPlace {
|
||||
public MultiRegattaOverviewPlace(String id) {
|
||||
super(id);
|
||||
}
|
||||
|
||||
public MultiRegattaOverviewPlace(EventContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
public static class Tokenizer implements PlaceTokenizer<MultiRegattaOverviewPlace> {
|
||||
@Override
|
||||
public String getToken(MultiRegattaOverviewPlace place) {
|
||||
return place.getEventUuidAsString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public MultiRegattaOverviewPlace getPlace(String token) {
|
||||
return new MultiRegattaOverviewPlace(token);
|
||||
}
|
||||
}
|
||||
}
|
||||
+9
-9
@@ -1,4 +1,4 @@
|
||||
package com.sap.sailing.gwt.home.client.place.event2.tabs.overview;
|
||||
package com.sap.sailing.gwt.home.client.place.event2.tabs.overview.multiregatta;
|
||||
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.uibinder.client.UiBinder;
|
||||
@@ -11,19 +11,19 @@ import com.sap.sailing.gwt.home.client.place.event2.tabs.EventContext;
|
||||
/**
|
||||
* Created by pgtaboada on 25.11.14.
|
||||
*/
|
||||
public class EventOverviewWidgetAndActivity extends Composite implements TabActivity<EventRegattaOverviewPlace, EventContext> {
|
||||
public class MultiRegattaOverviewWidgetAndActivity extends Composite implements TabActivity<MultiRegattaOverviewPlace, EventContext> {
|
||||
|
||||
public EventOverviewWidgetAndActivity() {
|
||||
public MultiRegattaOverviewWidgetAndActivity() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<EventRegattaOverviewPlace> getPlaceClassForActivation() {
|
||||
return EventRegattaOverviewPlace.class;
|
||||
public Class<MultiRegattaOverviewPlace> getPlaceClassForActivation() {
|
||||
return MultiRegattaOverviewPlace.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void start(EventRegattaOverviewPlace myPlace, AcceptsOneWidget contentArea) {
|
||||
public void start(MultiRegattaOverviewPlace myPlace, AcceptsOneWidget contentArea) {
|
||||
|
||||
initWidget(ourUiBinder.createAndBindUi(this));
|
||||
|
||||
@@ -35,14 +35,14 @@ public class EventOverviewWidgetAndActivity extends Composite implements TabActi
|
||||
|
||||
}
|
||||
|
||||
interface MyBinder extends UiBinder<HTMLPanel, EventOverviewWidgetAndActivity> {
|
||||
interface MyBinder extends UiBinder<HTMLPanel, MultiRegattaOverviewWidgetAndActivity> {
|
||||
}
|
||||
|
||||
private static MyBinder ourUiBinder = GWT.create(MyBinder.class);
|
||||
|
||||
@Override
|
||||
public EventRegattaOverviewPlace placeToFire(EventContext ctx) {
|
||||
return new EventRegattaOverviewPlace(ctx);
|
||||
public MultiRegattaOverviewPlace placeToFire(EventContext ctx) {
|
||||
return new MultiRegattaOverviewPlace(ctx);
|
||||
}
|
||||
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
|
||||
xmlns:g='urn:import:com.google.gwt.user.client.ui'>
|
||||
<g:HTMLPanel>
|
||||
<p>This is multiregatta overview tab</p>
|
||||
</g:HTMLPanel>
|
||||
</ui:UiBinder>
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
package com.sap.sailing.gwt.home.client.place.event2.tabs.overview.regatta;
|
||||
|
||||
import com.google.gwt.place.shared.PlaceTokenizer;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.regatta.AbstractEventRegattaPlace;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.tabs.EventContext;
|
||||
|
||||
public class RegattaOverviewPlace extends AbstractEventRegattaPlace {
|
||||
public RegattaOverviewPlace(String id, String regattaId) {
|
||||
super(id, regattaId);
|
||||
}
|
||||
|
||||
public RegattaOverviewPlace(EventContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
public static class Tokenizer implements PlaceTokenizer<RegattaOverviewPlace> {
|
||||
@Override
|
||||
public String getToken(RegattaOverviewPlace place) {
|
||||
return place.getEventUuidAsString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public RegattaOverviewPlace getPlace(String token) {
|
||||
// TODO
|
||||
return new RegattaOverviewPlace(token, "");
|
||||
}
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.sap.sailing.gwt.home.client.place.event2.tabs.overview.regatta;
|
||||
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.uibinder.client.UiBinder;
|
||||
import com.google.gwt.user.client.ui.AcceptsOneWidget;
|
||||
import com.google.gwt.user.client.ui.Composite;
|
||||
import com.google.gwt.user.client.ui.HTMLPanel;
|
||||
import com.sap.sailing.gwt.common.client.controls.tabbar.TabActivity;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.tabs.EventContext;
|
||||
|
||||
/**
|
||||
* Created by pgtaboada on 25.11.14.
|
||||
*/
|
||||
public class RegattaOverviewWidgetAndActivity extends Composite implements TabActivity<RegattaOverviewPlace, EventContext> {
|
||||
|
||||
public RegattaOverviewWidgetAndActivity() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<RegattaOverviewPlace> getPlaceClassForActivation() {
|
||||
return RegattaOverviewPlace.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void start(RegattaOverviewPlace myPlace, AcceptsOneWidget contentArea) {
|
||||
|
||||
initWidget(ourUiBinder.createAndBindUi(this));
|
||||
|
||||
contentArea.setWidget(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void stop() {
|
||||
|
||||
}
|
||||
|
||||
interface MyBinder extends UiBinder<HTMLPanel, RegattaOverviewWidgetAndActivity> {
|
||||
}
|
||||
|
||||
private static MyBinder ourUiBinder = GWT.create(MyBinder.class);
|
||||
|
||||
@Override
|
||||
public RegattaOverviewPlace placeToFire(EventContext ctx) {
|
||||
return new RegattaOverviewPlace(ctx);
|
||||
}
|
||||
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
|
||||
xmlns:g='urn:import:com.google.gwt.user.client.ui'>
|
||||
<g:HTMLPanel>
|
||||
<p>This is regatta overview tab</p>
|
||||
</g:HTMLPanel>
|
||||
</ui:UiBinder>
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
package com.sap.sailing.gwt.home.client.place.event2.tabs.regattas;
|
||||
|
||||
import com.google.gwt.place.shared.PlaceTokenizer;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.regatta.AbstractEventRegattaPlace;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.tabs.EventContext;
|
||||
|
||||
public class RegattasPlace extends AbstractEventRegattaPlace {
|
||||
public RegattasPlace(String id, String regattaId) {
|
||||
super(id, regattaId);
|
||||
}
|
||||
|
||||
public RegattasPlace(EventContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
public static class Tokenizer implements PlaceTokenizer<RegattasPlace> {
|
||||
@Override
|
||||
public String getToken(RegattasPlace place) {
|
||||
return place.getEventUuidAsString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public RegattasPlace getPlace(String token) {
|
||||
// TODO
|
||||
return new RegattasPlace(token, "");
|
||||
}
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.sap.sailing.gwt.home.client.place.event2.tabs.regattas;
|
||||
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.uibinder.client.UiBinder;
|
||||
import com.google.gwt.user.client.ui.AcceptsOneWidget;
|
||||
import com.google.gwt.user.client.ui.Composite;
|
||||
import com.google.gwt.user.client.ui.HTMLPanel;
|
||||
import com.sap.sailing.gwt.common.client.controls.tabbar.TabActivity;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.tabs.EventContext;
|
||||
|
||||
/**
|
||||
* Created by pgtaboada on 25.11.14.
|
||||
*/
|
||||
public class RegattasWidgetAndActivity extends Composite implements TabActivity<RegattasPlace, EventContext> {
|
||||
|
||||
public RegattasWidgetAndActivity() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<RegattasPlace> getPlaceClassForActivation() {
|
||||
return RegattasPlace.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void start(RegattasPlace myPlace, AcceptsOneWidget contentArea) {
|
||||
|
||||
initWidget(ourUiBinder.createAndBindUi(this));
|
||||
|
||||
contentArea.setWidget(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void stop() {
|
||||
|
||||
}
|
||||
|
||||
interface MyBinder extends UiBinder<HTMLPanel, RegattasWidgetAndActivity> {
|
||||
}
|
||||
|
||||
private static MyBinder ourUiBinder = GWT.create(MyBinder.class);
|
||||
|
||||
@Override
|
||||
public RegattasPlace placeToFire(EventContext ctx) {
|
||||
return new RegattasPlace(ctx);
|
||||
}
|
||||
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
|
||||
xmlns:g='urn:import:com.google.gwt.user.client.ui'>
|
||||
<g:HTMLPanel>
|
||||
<p>Races...</p>
|
||||
</g:HTMLPanel>
|
||||
</ui:UiBinder>
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
package com.sap.sailing.gwt.home.client.place.event2.tabs.schedule;
|
||||
|
||||
import com.google.gwt.place.shared.PlaceTokenizer;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.regatta.AbstractEventRegattaPlace;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.tabs.EventContext;
|
||||
|
||||
public class SchedulePlace extends AbstractEventRegattaPlace {
|
||||
public SchedulePlace(String id, String regattaId) {
|
||||
super(id, regattaId);
|
||||
}
|
||||
|
||||
public SchedulePlace(EventContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
public static class Tokenizer implements PlaceTokenizer<SchedulePlace> {
|
||||
@Override
|
||||
public String getToken(SchedulePlace place) {
|
||||
return place.getEventUuidAsString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public SchedulePlace getPlace(String token) {
|
||||
// TODO
|
||||
return new SchedulePlace(token, "");
|
||||
}
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.sap.sailing.gwt.home.client.place.event2.tabs.schedule;
|
||||
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.uibinder.client.UiBinder;
|
||||
import com.google.gwt.user.client.ui.AcceptsOneWidget;
|
||||
import com.google.gwt.user.client.ui.Composite;
|
||||
import com.google.gwt.user.client.ui.HTMLPanel;
|
||||
import com.sap.sailing.gwt.common.client.controls.tabbar.TabActivity;
|
||||
import com.sap.sailing.gwt.home.client.place.event2.tabs.EventContext;
|
||||
|
||||
/**
|
||||
* Created by pgtaboada on 25.11.14.
|
||||
*/
|
||||
public class ScheduleWidgetAndActivity extends Composite implements TabActivity<SchedulePlace, EventContext> {
|
||||
|
||||
public ScheduleWidgetAndActivity() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<SchedulePlace> getPlaceClassForActivation() {
|
||||
return SchedulePlace.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void start(SchedulePlace myPlace, AcceptsOneWidget contentArea) {
|
||||
|
||||
initWidget(ourUiBinder.createAndBindUi(this));
|
||||
|
||||
contentArea.setWidget(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void stop() {
|
||||
|
||||
}
|
||||
|
||||
interface MyBinder extends UiBinder<HTMLPanel, ScheduleWidgetAndActivity> {
|
||||
}
|
||||
|
||||
private static MyBinder ourUiBinder = GWT.create(MyBinder.class);
|
||||
|
||||
@Override
|
||||
public SchedulePlace placeToFire(EventContext ctx) {
|
||||
return new SchedulePlace(ctx);
|
||||
}
|
||||
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
|
||||
xmlns:g='urn:import:com.google.gwt.user.client.ui'>
|
||||
<g:HTMLPanel>
|
||||
<p>This is schedule tab</p>
|
||||
</g:HTMLPanel>
|
||||
</ui:UiBinder>
|
||||
Reference in new issue
Block a user