@Override @Cacheable(CacheNames.ACHIEVEMENTS) public Image getUnlockedIcon(AchievementDefinition achievementDefinition) { if (Strings.isNullOrEmpty(achievementDefinition.getUnlockedIconUrl())) { return new Image(themeService.getThemeFile(ThemeService.DEFAULT_ACHIEVEMENT_IMAGE), true); } return new Image(achievementDefinition.getUnlockedIconUrl(), true); }
public void setGameStatus(GameStatus gameStatus) { switch (gameStatus) { case PLAYING: statusImageView.setImage( new Image(themeService.getThemeFile(ThemeService.PLAYING_STATUS_IMAGE))); break; case HOST: statusImageView.setImage( new Image(themeService.getThemeFile(ThemeService.HOSTING_STATUS_IMAGE))); break; case LOBBY: statusImageView.setImage( new Image(themeService.getThemeFile(ThemeService.LOBBY_STATUS_IMAGE))); break; default: statusImageView.setImage(null); } statusImageView.setVisible(true); }