00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 package com.realtime.crossfire.jxclient.gui.textinput;
00023
00024 import com.realtime.crossfire.jxclient.gui.commandlist.CommandList;
00025 import com.realtime.crossfire.jxclient.gui.gui.Gui;
00026 import org.jetbrains.annotations.NotNull;
00027
00032 public interface CommandCallback {
00033
00037 void quitApplication();
00038
00043 void openDialog(@NotNull Gui dialog);
00044
00049 void toggleDialog(@NotNull Gui dialog);
00050
00055 void closeDialog(@NotNull Gui dialog);
00056
00063 @NotNull
00064 CommandList getCommandList(@NotNull String args) throws NoSuchCommandException;
00065
00071 void updatePlayerName(@NotNull String playerName);
00072
00081 void activateCommandInput(@NotNull String newText);
00082
00089 boolean createKeyBinding(boolean perCharacter, @NotNull CommandList commandList);
00090
00097 boolean removeKeyBinding(boolean perCharacter);
00098
00104 void accountLogin(@NotNull String login, @NotNull String password);
00105
00111 void accountCreate(@NotNull String login, @NotNull String password);
00112
00117 void accountPlayCharacter(@NotNull String name);
00118
00125 void accountLink(int force, @NotNull String login, @NotNull String password);
00126
00132 void accountCreateCharacter(@NotNull String login);
00133
00139 void accountPassword(@NotNull String currentPassword, @NotNull String newPassword);
00140 }