server, refactor: added client side info about current table and parent table (tourney's sub-tables with matches);

This commit is contained in:
Oleg Agafonov 2024-08-11 19:29:42 +04:00
parent bd7aaa34ee
commit 7916af0e52
21 changed files with 315 additions and 161 deletions

View file

@ -15,6 +15,7 @@ import mage.client.plugins.impl.Plugins;
*/
public class DraftPane extends MagePane {
UUID tableId = null;
UUID draftId = null;
public DraftPane() {
@ -42,7 +43,8 @@ public class DraftPane extends MagePane {
draftPanel1.changeGUISize();
}
public void showDraft(UUID draftId) {
public void showDraft(UUID tableId, UUID draftId) {
this.tableId = tableId;
this.draftId = draftId;
this.setTitle("Draft - " + draftId);
this.draftPanel1.showDraft(draftId);
@ -58,6 +60,11 @@ public class DraftPane extends MagePane {
this.removeFrame();
}
@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