Crossfire JXClient, Trunk
CommandCallback.java
Go to the documentation of this file.
1 /*
2  * This file is part of JXClient, the Fullscreen Java Crossfire Client.
3  *
4  * JXClient is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * JXClient is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with JXClient; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17  *
18  * Copyright (C) 2005-2008 Yann Chachkoff
19  * Copyright (C) 2006-2017,2019-2023 Andreas Kirschbaum
20  * Copyright (C) 2010-2012,2014-2018,2020-2023 Nicolas Weeger
21  */
22 
23 package com.realtime.crossfire.jxclient.gui.textinput;
24 
26 import java.util.Collection;
27 import org.jetbrains.annotations.NotNull;
28 
33 public interface CommandCallback {
34 
38  void quitApplication();
39 
44  void openDialog(@NotNull String dialog);
45 
50  void toggleDialog(@NotNull String dialog);
51 
56  void closeDialog(@NotNull String dialog);
57 
64  @NotNull
65  CommandList getCommandList(@NotNull String args) throws NoSuchCommandException;
66 
71  @NotNull
72  Collection<String> getCommandListNames();
73 
79  void updatePlayerName(@NotNull String playerName);
80 
89  void activateCommandInput(@NotNull String newText);
90 
97  boolean createKeyBinding(boolean perCharacter, @NotNull CommandList commandList);
98 
105  boolean removeKeyBinding(boolean perCharacter);
106 
112  void accountLogin(@NotNull String login, @NotNull String password);
113 
119  void accountCreate(@NotNull String login, @NotNull String password);
120 
125  void accountPlayCharacter(@NotNull String name);
126 
133  void accountLink(int force, @NotNull String login, @NotNull String password);
134 
141  void accountCreateCharacter(@NotNull String login, @NotNull Collection<String> attributes);
142 
148  void accountPassword(@NotNull String currentPassword, @NotNull String newPassword);
149 
150 }
com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.updatePlayerName
void updatePlayerName(@NotNull String playerName)
com.realtime.crossfire.jxclient
com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.quitApplication
void quitApplication()
com.realtime.crossfire.jxclient.gui.commandlist.CommandList
Definition: CommandList.java:34
com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.accountLogin
void accountLogin(@NotNull String login, @NotNull String password)
com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.openDialog
void openDialog(@NotNull String dialog)
com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.removeKeyBinding
boolean removeKeyBinding(boolean perCharacter)
com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.activateCommandInput
void activateCommandInput(@NotNull String newText)
com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.createKeyBinding
boolean createKeyBinding(boolean perCharacter, @NotNull CommandList commandList)
com.realtime.crossfire.jxclient.gui.commandlist
Definition: CommandList.java:23
com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.accountLink
void accountLink(int force, @NotNull String login, @NotNull String password)
com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.accountPlayCharacter
void accountPlayCharacter(@NotNull String name)
com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.getCommandList
CommandList getCommandList(@NotNull String args)
com.realtime.crossfire.jxclient.gui.textinput.CommandCallback
Definition: CommandCallback.java:33
com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.closeDialog
void closeDialog(@NotNull String dialog)
com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.accountCreate
void accountCreate(@NotNull String login, @NotNull String password)
com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.getCommandListNames
Collection< String > getCommandListNames()
com.realtime.crossfire.jxclient.gui
com.realtime.crossfire.jxclient.gui.textinput.NoSuchCommandException
Definition: NoSuchCommandException.java:31
com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.accountPassword
void accountPassword(@NotNull String currentPassword, @NotNull String newPassword)
com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.toggleDialog
void toggleDialog(@NotNull String dialog)
com.realtime.crossfire
com.realtime
com
com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.accountCreateCharacter
void accountCreateCharacter(@NotNull String login, @NotNull Collection< String > attributes)