Package com.barrybecker4.game.multiplayer.poker.online.ui

Source Code of com.barrybecker4.game.multiplayer.poker.online.ui.OnlinePokerManagerPanel

/** Copyright by Barry G. Becker, 2000-2011. Licensed under MIT License: http://www.opensource.org/licenses/MIT  */
package com.barrybecker4.game.multiplayer.poker.online.ui;

import com.barrybecker4.game.common.GameViewModel;
import com.barrybecker4.game.common.ui.dialogs.GameOptionsDialog;
import com.barrybecker4.game.common.ui.dialogs.GameStartListener;
import com.barrybecker4.game.multiplayer.common.online.ui.MultiPlayerOnlineGameTablesTable;
import com.barrybecker4.game.multiplayer.common.online.ui.MultiPlayerOnlineManagerPanel;
import com.barrybecker4.game.multiplayer.poker.ui.dialog.PokerOptionsDialog;
import com.barrybecker4.ui.table.TableButtonListener;

/**
* Manage online poker games.
* Player can join no more than one table at a time.
*
* @author Barry Becker
*/
public class OnlinePokerManagerPanel extends MultiPlayerOnlineManagerPanel {

    private static final long serialVersionUID = 1;

    public OnlinePokerManagerPanel(GameViewModel viewer, GameStartListener dlg) {
        super(viewer, dlg);
    }

    @Override
    protected MultiPlayerOnlineGameTablesTable createOnlineGamesTable(TableButtonListener tableButtonListener) {
        return new PokerOnlineGameTablesTable(tableButtonListener);
    }

    /**
     * You are free to set your own options for the table that you are creating.
     */
    @Override
    protected GameOptionsDialog createNewGameTableDialog() {
        return new PokerOptionsDialog(null, controller_);
    }
}
TOP

Related Classes of com.barrybecker4.game.multiplayer.poker.online.ui.OnlinePokerManagerPanel

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.