コード例 #1
0
 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());
   }
 }
コード例 #2
0
 public void sort(SVComparator<PlayerStats> comparator) {
   if (alPlayersStats != null) {
     Collections.sort(alPlayersStats, comparator);
     fill(alPlayersStats);
   }
 }