mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-07 19:42:17 +00:00
added placeholder for a WindPanel
This commit is contained in:
1 parent
0fe2cc4366
commit
d3af3b5845
5 files changed
+27
-4
No files matched your search
@@ -4,12 +4,11 @@ Axel
|
||||
- The "Remove" button has different meanings: stop tracking a race if it's currently being
|
||||
tracked. But nothing will be removed unless it's the last race in an event. When "removing"
|
||||
an entire event, all races will have their trackers stopped, eventually removing the event.
|
||||
At least enrich race display by a note / icon that shows whether the race is still being tracked.
|
||||
|
||||
- Finish a first draft version of a GWT admin UI
|
||||
|
||||
* add event / race; stop race (store previous configurations in Mongo); stepwise completion
|
||||
of assembled text fields from individual inputs as defaults; keep text if manually overwritten
|
||||
* sort races by event / boat class / time
|
||||
* Wind tracking, manual wind entry
|
||||
* configure one or more leaderboards from a selection of races, adjustable delay per leaderboard
|
||||
* each leaderboard has its own URL
|
||||
* store net / total points separately in Mongo, making them overridable in editable copy of leaderboard
|
||||
|
||||
@@ -44,6 +44,9 @@ public class AdminConsole implements EntryPoint, ErrorReporter {
|
||||
EventManagementPanel eventManagementPanel = new EventManagementPanel(sailingService, this);
|
||||
eventManagementPanel.setSize("90%", "90%");
|
||||
tabPanel.add(eventManagementPanel, stringConstants.tracTracEvents(), false);
|
||||
WindPanel windPanel = new WindPanel(sailingService, this);
|
||||
windPanel.setSize("90%", "90%");
|
||||
tabPanel.add(windPanel, stringConstants.wind(), false);
|
||||
tabPanel.selectTab(0);
|
||||
|
||||
}
|
||||
|
||||
@@ -9,4 +9,6 @@ public interface StringConstants extends Constants {
|
||||
String tracTracEvents();
|
||||
String trackedBefore();
|
||||
String listRaces();
|
||||
String wind();
|
||||
String windPanelLabel();
|
||||
}
|
||||
+3
-1
@@ -3,4 +3,6 @@ kielWeel2011=Kiel Week 2011
|
||||
stgAccount=STG Account
|
||||
tracTracEvents=TracTrac Events
|
||||
trackedBefore=Tracked Before
|
||||
listRaces=List Races
|
||||
listRaces=List Races
|
||||
wind=Wind
|
||||
windPanelLabel=This is the Wind Panel which so far is completely empty.
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.sap.sailing.gwt.ui.client;
|
||||
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.user.client.ui.FormPanel;
|
||||
import com.google.gwt.user.client.ui.Label;
|
||||
|
||||
public class WindPanel extends FormPanel {
|
||||
private final SailingServiceAsync sailingService;
|
||||
private final ErrorReporter errorReporter;
|
||||
|
||||
public WindPanel(final SailingServiceAsync sailingService, ErrorReporter errorReporter) {
|
||||
this.sailingService = sailingService;
|
||||
this.errorReporter = errorReporter;
|
||||
StringConstants stringConstants = GWT.create(StringConstants.class);
|
||||
this.setWidget(new Label(stringConstants.windPanelLabel()));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user