fixed MaxPointsReason comparison error in RaceColumn.render, switching from string to enum

This commit is contained in:
Axel Uhl committed 2012-05-14 16:32:46 +02:00
1 parent 55eaa668af
commit 8c94b35693
3 files changed
+19 -1

No files matched your search

@@ -0,0 +1,13 @@
package com.sap.sailing.domain.base;
/**
* An event is a group of {@link Regatta regattas} carried out at a common venue within a common time frame. For
* example, Kiel Week is an event, and the International German Championship held, e.g., in Travemünde, is an event,
* too.
*
* @author Axel Uhl (D043530)
*
*/
public interface Event {
Iterable<Regatta> getRegattas();
}
@@ -0,0 +1,5 @@
package com.sap.sailing.domain.base;
public interface Round {
}
@@ -452,7 +452,7 @@ public class LeaderboardPanel extends FormPanel implements TimeListener, PlaySta
LeaderboardEntryDTO entry = object.fieldsByRaceName.get(getRaceColumnName());
if (entry != null) {
// don't show points if max points / penalty
if (entry.reasonForMaxPoints.equals("NONE")) {
if (entry.reasonForMaxPoints == null || entry.reasonForMaxPoints == MaxPointsReason.NONE) {
if (!entry.discarded) {
html.appendHtmlConstant("<span style=\"font-weight: bold;\">");
html.appendHtmlConstant(entry.totalPoints == 0 ? "" : ""+entry.totalPoints);