fixed issue with CompetitorSelectionModel sharing between leaderboard and integrated overall leaderboard(s)

This commit is contained in:
Axel Uhl committed 2012-12-05 20:30:53 +01:00
1 parent 5cea7cfcd3
commit c97c5aa609
1 file changed
+3 -2
@@ -57,6 +57,7 @@ import com.sap.sailing.gwt.ui.actions.AsyncActionsExecutor;
import com.sap.sailing.gwt.ui.actions.GetLeaderboardByNameAction;
import com.sap.sailing.gwt.ui.client.Collator;
import com.sap.sailing.gwt.ui.client.CompetitorSelectionChangeListener;
import com.sap.sailing.gwt.ui.client.CompetitorSelectionModel;
import com.sap.sailing.gwt.ui.client.CompetitorSelectionProvider;
import com.sap.sailing.gwt.ui.client.ErrorReporter;
import com.sap.sailing.gwt.ui.client.FlagImageResolver;
@@ -448,7 +449,7 @@ public class LeaderboardPanel extends FormPanel implements TimeListener, PlaySta
getSailingService(), asyncActionsExecutor, LeaderboardSettingsFactory.getInstance().createNewDefaultSettings(
/* namesOfRaceColumnsToShow */ null, /* namesOfRacesToShow */ null, /* nameOfRaceToSort */ null,
/* autoExpandPreSelectedRace */ false, /* showOverallLeaderboardsOnSamePage */ false),
/* preSelectedRace */ null, competitorSelectionProvider,
/* preSelectedRace */ null, new CompetitorSelectionModel(/* hasMultiSelection */ true),
timer, overallLeaderboardName, errorReporter, stringMessages, userAgent, showRaceDetails,
/* optionalRaceTimesInfoProvider */ null, /* autoExpandLastRaceColumn */ false);
overallLeaderboardPanels.add(overallLeaderboardPanel);
@@ -1650,7 +1651,7 @@ public class LeaderboardPanel extends FormPanel implements TimeListener, PlaySta
scoreCorrectionCommentLabel.setText(leaderboard.getComment() != null ? leaderboard.getComment() : "");
if (leaderboard.getTimePointOfLastCorrectionsValidity() != null) {
Date lastCorrectionDate = leaderboard.getTimePointOfLastCorrectionsValidity();
String lastUpdate = dateFormatter.format(lastCorrectionDate) + " "
String lastUpdate = dateFormatter.format(lastCorrectionDate) + ", "
+ timeFormatter.format(lastCorrectionDate);
scoreCorrectionLastUpdateTimeLabel.setText(stringMessages.lastScoreUpdate() + ": " + lastUpdate);
} else {