|
|
@ -117,11 +117,17 @@ public class TableCard extends Div implements ContentConfigurable { |
|
|
|
|
|
|
|
private Icon getPlaceDiffIcon(PlayerForTable playerForTable) { |
|
|
|
int placeDiff = playerForTable.getPlaceDiffToLastMatchday(); |
|
|
|
if (placeDiff < -1) return VaadinIcon.ANGLE_DOUBLE_DOWN.create(); |
|
|
|
if (placeDiff == -1) return VaadinIcon.ANGLE_DOWN.create(); |
|
|
|
if (placeDiff == 0) return VaadinIcon.MINUS.create(); |
|
|
|
if (placeDiff == 1) return VaadinIcon.ANGLE_UP.create(); |
|
|
|
return VaadinIcon.ANGLE_DOUBLE_UP.create(); |
|
|
|
if (placeDiff < 0) { |
|
|
|
Icon icon = VaadinIcon.CHEVRON_DOWN_SMALL.create(); |
|
|
|
icon.setColor("#ca342d"); |
|
|
|
return icon; |
|
|
|
} |
|
|
|
if (placeDiff > 0) { |
|
|
|
Icon icon = VaadinIcon.CHEVRON_UP_SMALL.create(); |
|
|
|
icon.setColor("#96bc4b"); |
|
|
|
return icon; |
|
|
|
} |
|
|
|
return VaadinIcon.MINUS.create(); |
|
|
|
} |
|
|
|
|
|
|
|
private HorizontalLayout getPlaceColumnItem(PlayerForTable playerForTable) { |
|
|
|