Package org.swtpra1
Class TournamentView
- java.lang.Object
-
- org.swtpra1.TournamentView
-
public class TournamentView extends java.lang.Object
Showcases all players and how each of them performed.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.JPanel
getPanel()
Returns the JPanel representing this view.void
setGames(Game[] games)
Gets an array of games, evaluates their results and displays the leaderboard in ordered fashion.void
update()
Polls the currently running games and parses the information into the leaderboard.
-
-
-
Method Detail
-
update
public void update()
Polls the currently running games and parses the information into the leaderboard.
-
setGames
public void setGames(Game[] games)
Gets an array of games, evaluates their results and displays the leaderboard in ordered fashion.- Parameters:
games
- array of Games (unordered)
-
getPanel
public javax.swing.JPanel getPanel()
Returns the JPanel representing this view.- Returns:
- JPanel object
-
-