public void fill(TeamStats teamStats, String teamName) { if (teamStats == null) { this.setText(""); // this.headerLabel.update(); matchPlayersTable.fill(null); } else { if (teamName == null) { this.setText(String.valueOf(teamStats.getTeamId())); // this.headerLabel.update(); } else { this.setText(teamName); // this.headerLabel.update(); } matchPlayersTable.fill(teamStats.getPlayersStats()); } }
public void sort(SVComparator<PlayerStats> comparator) { if (alPlayersStats != null) { Collections.sort(alPlayersStats, comparator); fill(alPlayersStats); } }