Crossfire JXClient, Trunk  R20561
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-2011 Andreas Kirschbaum.
20  */
21 
22 package com.realtime.crossfire.jxclient.gui.textinput;
23 
25 import org.jetbrains.annotations.NotNull;
26 
31 public interface CommandCallback {
32 
36  void quitApplication();
37 
42  void openDialog(@NotNull String dialog);
43 
48  void toggleDialog(@NotNull String dialog);
49 
54  void closeDialog(@NotNull String dialog);
55 
62  @NotNull
63  CommandList getCommandList(@NotNull String args) throws NoSuchCommandException;
64 
70  void updatePlayerName(@NotNull String playerName);
71 
80  void activateCommandInput(@NotNull String newText);
81 
88  boolean createKeyBinding(boolean perCharacter, @NotNull CommandList commandList);
89 
96  boolean removeKeyBinding(boolean perCharacter);
97 
103  void accountLogin(@NotNull String login, @NotNull String password);
104 
110  void accountCreate(@NotNull String login, @NotNull String password);
111 
116  void accountPlayCharacter(@NotNull String name);
117 
124  void accountLink(int force, @NotNull String login, @NotNull String password);
125 
131  void accountCreateCharacter(@NotNull String login);
132 
138  void accountPassword(@NotNull String currentPassword, @NotNull String newPassword);
139 
140 }
boolean removeKeyBinding(boolean perCharacter)
Removes a key binding.
void activateCommandInput(@NotNull String newText)
Activates the command input text field.
void openDialog(@NotNull String dialog)
Opens a dialog.
void accountPlayCharacter(@NotNull String name)
Plays a character from the current account.
boolean createKeyBinding(boolean perCharacter, @NotNull CommandList commandList)
Adds a key binding.
CommandList getCommandList(@NotNull String args)
Returns a command list.
void updatePlayerName(@NotNull String playerName)
Sets the current player name.
void accountLink(int force, @NotNull String login, @NotNull String password)
Links a character to the current account.
void accountLogin(@NotNull String login, @NotNull String password)
Login to an account.
void accountCreateCharacter(@NotNull String login)
Creates a character.
Interface that defines callback functions needed by commands.
void toggleDialog(@NotNull String dialog)
Toggles a dialog.
void accountPassword(@NotNull String currentPassword, @NotNull String newPassword)
Change the account password.
void accountCreate(@NotNull String login, @NotNull String password)
Creates an account.
void closeDialog(@NotNull String dialog)
Closes a dialog.