use of games.strategy.engine.lobby.client.ui.action.RemoveGameFromLobbyAction 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;
}
use of games.strategy.engine.lobby.client.ui.action.RemoveGameFromLobbyAction in project triplea by triplea-game.
the class TripleAMenuBar method createLobbyMenu.
private void createLobbyMenu(final InGameLobbyWatcherWrapper watcher) {
final JMenu lobby = new JMenu("Lobby");
lobby.setMnemonic(KeyEvent.VK_L);
add(lobby);
lobby.add(new EditGameCommentAction(watcher, frame));
lobby.add(new RemoveGameFromLobbyAction(watcher));
}
Aggregations