string messages cleanup

This commit is contained in:
fmittag committed 2013-03-03 15:49:41 +01:00
1 parent 814b93c860
commit 41a564a631
5 files changed
+22 -7

No files matched your search

@@ -7,6 +7,7 @@ import com.google.gwt.cell.client.FieldUpdater;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.cellview.client.CellTable;
import com.google.gwt.user.cellview.client.TextColumn;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.CaptionPanel;
import com.google.gwt.user.client.ui.Composite;
@@ -162,7 +163,10 @@ public class RegattaDetailsComposite extends Composite {
public void update(int index, SeriesDTO series, String value) {
if (SeriesConfigImagesBarCell.ACTION_EDIT.equals(value)) {
editRacesOfRegattaSeries(regatta, series);
} else if (SeriesConfigImagesBarCell.ACTION_REMOVE.equals(value)) {
Window.alert("This function is not implemented yet. To delete a series you have to recreate the regatta!");
}
}
});
@@ -18,6 +18,7 @@ import com.google.gwt.user.cellview.client.ColumnSortEvent.ListHandler;
import com.google.gwt.user.cellview.client.TextColumn;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasVerticalAlignment;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Label;
@@ -38,12 +39,13 @@ import com.sap.sailing.gwt.ui.client.SailingServiceAsync;
import com.sap.sailing.gwt.ui.client.StringMessages;
import com.sap.sailing.gwt.ui.shared.RegattaDTO;
public class RegattaListComposite extends SimplePanel implements RegattaDisplayer {
public class RegattaListComposite extends Composite implements RegattaDisplayer {
private final SelectionModel<RegattaDTO> regattaSelectionModel;
private final CellTable<RegattaDTO> regattaTable;
private ListDataProvider<RegattaDTO> regattaListDataProvider;
private List<RegattaDTO> allRegattas;
private final SimplePanel mainPanel;
private final VerticalPanel panel;
private final Label noRegattasLabel;
@@ -73,12 +75,13 @@ public class RegattaListComposite extends SimplePanel implements RegattaDisplaye
this.errorReporter = errorReporter;
this.stringMessages = stringMessages;
mainPanel = new SimplePanel();
panel = new VerticalPanel();
setWidget(panel);
mainPanel.setWidget(panel);
HorizontalPanel filterPanel = new HorizontalPanel();
panel.add(filterPanel);
Label filterRegattasLabel = new Label(stringMessages.filterRacesByName() + ":");
Label filterRegattasLabel = new Label(stringMessages.filterRegattasByName() + ":");
filterRegattasLabel.setWordWrap(false);
filterPanel.setSpacing(5);
filterPanel.add(filterRegattasLabel);
@@ -92,7 +95,7 @@ public class RegattaListComposite extends SimplePanel implements RegattaDisplaye
});
filterPanel.add(filterRegattasTextbox);
noRegattasLabel = new Label(stringMessages.noRacesYet());
noRegattasLabel = new Label(stringMessages.noRegattasYet());
noRegattasLabel.setWordWrap(false);
panel.add(noRegattasLabel);
@@ -115,6 +118,8 @@ public class RegattaListComposite extends SimplePanel implements RegattaDisplaye
regattaTable.setSelectionModel(regattaSelectionModel);
panel.add(regattaTable);
initWidget(mainPanel);
}
private CellTable<RegattaDTO> createRegattaTable() {
@@ -508,4 +508,6 @@ public interface StringMessages extends Messages {
String totalDistanceTraveledTooltip();
String totalAverageSpeedOverGround();
String totalAverageSpeedOverGroundTooltip();
String filterRegattasByName();
String noRegattasYet();
}
@@ -25,7 +25,7 @@ timeDelay=Delay
timeDelayHelp=Leave empty to replay at arbitrary times; enter seconds (e.g., "60" for one minute or "0" for none) of delay before live data feed
speedInKnots=Speed (kn)
fromDeg=From (deg)
noRacesYet=No Races Yet
noRacesYet=There are no races yet.
total=\u03A3
carry=Accumulated
competitor=Competitor
@@ -509,4 +509,6 @@ histogram=Histogram
numberOfDataPoints=Number of data points
angleAndTotalNumberOfDataPoints=Angle: {0}; Total number of data-points: {1}
buoyZone=Buoy zone
radiusInMeters=Radius (m)
radiusInMeters=Radius (m)
filterRegattasByName=Filter regattas by name
noRegattasYet=There are no regattas yet.
@@ -25,7 +25,7 @@ timeDelay=Verzögerung
timeDelayHelp=Leer für Wiedergabe zu beliebigen Zeitpunkten; Verzögerung des Datenstroms in Sekunden eingeben (z.B. "60" für eine Minute oder "0" für keine)
speedInKnots=Geschwindigkeit (sm/h)
fromDeg=aus (Grad)
noRacesYet=Bisher keine Wettfahrten
noRacesYet=Es sind keine Wettfahrten vorhanden.
total=Gesamt
carry=übertr.
competitor=Wettkampfteilnehmner
@@ -510,3 +510,5 @@ numberOfDataPoints=Anzahl Datenpunkte
angleAndTotalNumberOfDataPoints=Winkel: {0}; Anzahl Datenpunkte: {1}
buoyZone=Bojenzone
radiusInMeters=Radius (m)
filterRegattasByName=Regatten nach Name filtern
noRegattasYet=Es sind keine Regatten vorhanden.