forked from External/mage
server, refactor: added client side info about current table and parent table (tourney's sub-tables with matches);
This commit is contained in:
parent
bd7aaa34ee
commit
7916af0e52
21 changed files with 315 additions and 161 deletions
|
|
@ -10,13 +10,15 @@ import mage.client.MagePane;
|
|||
*/
|
||||
public class TournamentPane extends MagePane {
|
||||
|
||||
UUID tableId = null;
|
||||
UUID tournamentId = null;
|
||||
|
||||
public TournamentPane() {
|
||||
initComponents();
|
||||
}
|
||||
|
||||
public void showTournament(UUID tournamentId) {
|
||||
public void showTournament(UUID tableId, UUID tournamentId) {
|
||||
this.tableId = tableId;
|
||||
this.tournamentId = tournamentId;
|
||||
this.setTitle("Tournament " + tournamentId);
|
||||
this.tournamentPanel.showTournament(tournamentId);
|
||||
|
|
@ -45,6 +47,11 @@ public class TournamentPane extends MagePane {
|
|||
return tournamentPanel.getTournamentId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UUID getSortTableId() {
|
||||
return tableId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method is called from within the constructor to initialize the form.
|
||||
* WARNING: Do NOT modify this code. The content of this method is always
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue