Search in sources :

Example 1 with SetPasswordAction

use of games.strategy.engine.framework.network.ui.SetPasswordAction in project triplea by triplea-game.

the class ServerSetupPanel method getUserActions.

@Override
public List<Action> getUserActions() {
    final List<Action> actions = new ArrayList<>();
    actions.add(new BootPlayerAction(this, model.getMessenger()));
    actions.add(new BanPlayerAction(this, model.getMessenger()));
    actions.add(new MutePlayerAction(this, model.getMessenger()));
    actions.add(new SetPasswordAction(this, lobbyWatcher, (ClientLoginValidator) model.getMessenger().getLoginValidator()));
    if (lobbyWatcher != null && lobbyWatcher.isActive()) {
        actions.add(new EditGameCommentAction(lobbyWatcher, ServerSetupPanel.this));
        actions.add(new RemoveGameFromLobbyAction(lobbyWatcher));
    }
    return actions;
}
Also used : SetPasswordAction(games.strategy.engine.framework.network.ui.SetPasswordAction) SetPasswordAction(games.strategy.engine.framework.network.ui.SetPasswordAction) BootPlayerAction(games.strategy.engine.framework.network.ui.BootPlayerAction) Action(javax.swing.Action) MutePlayerAction(games.strategy.engine.framework.network.ui.MutePlayerAction) EditGameCommentAction(games.strategy.engine.lobby.client.ui.action.EditGameCommentAction) RemoveGameFromLobbyAction(games.strategy.engine.lobby.client.ui.action.RemoveGameFromLobbyAction) BanPlayerAction(games.strategy.engine.framework.network.ui.BanPlayerAction) BanPlayerAction(games.strategy.engine.framework.network.ui.BanPlayerAction) EditGameCommentAction(games.strategy.engine.lobby.client.ui.action.EditGameCommentAction) MutePlayerAction(games.strategy.engine.framework.network.ui.MutePlayerAction) ArrayList(java.util.ArrayList) BootPlayerAction(games.strategy.engine.framework.network.ui.BootPlayerAction) ClientLoginValidator(games.strategy.engine.framework.startup.login.ClientLoginValidator) RemoveGameFromLobbyAction(games.strategy.engine.lobby.client.ui.action.RemoveGameFromLobbyAction)

Aggregations

BanPlayerAction (games.strategy.engine.framework.network.ui.BanPlayerAction)1 BootPlayerAction (games.strategy.engine.framework.network.ui.BootPlayerAction)1 MutePlayerAction (games.strategy.engine.framework.network.ui.MutePlayerAction)1 SetPasswordAction (games.strategy.engine.framework.network.ui.SetPasswordAction)1 ClientLoginValidator (games.strategy.engine.framework.startup.login.ClientLoginValidator)1 EditGameCommentAction (games.strategy.engine.lobby.client.ui.action.EditGameCommentAction)1 RemoveGameFromLobbyAction (games.strategy.engine.lobby.client.ui.action.RemoveGameFromLobbyAction)1 ArrayList (java.util.ArrayList)1 Action (javax.swing.Action)1