Crossfire JXClient, Trunk
R20561
|
Maintains the application's main GUI state. More...
Classes | |
enum | EscAction |
Action after ESC has been pressed. More... | |
Public Member Functions | |
void | activateCommandInput (@Nullable final String newText) |
Activates the command input text field. More... | |
void | addDialog (@NotNull final String name, @NotNull final Gui dialog) |
Adds a dialog for name based lookup. More... | |
void | closeDialog (@NotNull final String name) |
Closes the given dialog. More... | |
boolean | closeDialog (@NotNull final Gui dialog) |
Closes the given dialog. More... | |
void | closeKeybindDialog () |
Closes the keybinding dialog. More... | |
void | closeQueryDialog () |
Closes the "query" dialog. More... | |
boolean | createKeyBinding (final boolean perCharacter, @NotNull final CommandList cmdList) |
Adds a key binding. More... | |
EscAction | escPressed (final boolean connected) |
The ESC key has been pressed. More... | |
CommandList | getCommandList (@NotNull final String args) throws NoSuchCommandException |
Returns a named command list. More... | |
GuiManager (@NotNull final GuiStateManager guiStateManager, @NotNull final TooltipManagerImpl tooltipManager, @NotNull final Settings settings, @NotNull final CrossfireServerConnection server, @NotNull final JXCWindowRenderer windowRenderer, @NotNull final GuiFactory guiFactory, @NotNull final KeybindingsManager keybindingsManager, @NotNull final JXCConnection connection) | |
Creates a new instance. More... | |
void | hideAccountWindows () |
Hides all account-related windows. More... | |
void | manageAccount () |
Displays the main account dialog, to let the player login or create a new account. More... | |
void | openDialog (@NotNull final String name) |
Opens a dialog by name. More... | |
void | openQueryDialog (@NotNull final String prompt, final int queryType) |
Opens the "query" dialog. More... | |
boolean | openQuitDialog () |
Opens the "quit" dialog. More... | |
void | playerReceived () |
A "player" protocol command has been received. More... | |
boolean | removeKeyBinding (final boolean perCharacter) |
Removes a key binding. More... | |
void | selectCharacter (@NotNull final String accountName, @NotNull final String characterName) |
Updates the selected character name in an account. More... | |
void | setAccountName (@NotNull final String accountName) |
Updates the current account name. More... | |
void | setSkin (@NotNull final JXCSkin skin) |
Sets a new skin. More... | |
void | showCharacters (final int count) |
Displays the window with the characters for an account. More... | |
void | term () |
Terminates the GUI. More... | |
void | toggleDialog (@NotNull final String name) |
Toggles a dialog. More... | |
void | unsetSkin () |
Unsets the current skin. More... | |
void | updatePlayerName (@NotNull final String playerName) |
Sets the current player name. More... | |
void | updateWindowSize (final int width, final int height) |
Sets a new window size. More... | |
Private Member Functions | |
GUIText | activateCommandInput () |
Activates the command input text field. More... | |
void | activateMetaserverGui () |
Called when the server selection GUI becomes active. More... | |
void | closeDialogByName (@NotNull final String name) |
Closes a dialog by name. More... | |
void | closeTransientDialogs () |
Closes all transient dialogs: disconnect, quit, connect, query, and book dialogs. More... | |
boolean | openDialog (@NotNull final Gui dialog, final boolean autoCloseOnDeactivate) |
Opens a dialog. More... | |
boolean | openDialogByName (@NotNull final String name) |
Opens a dialog by name. More... | |
void | openKeybindDialog () |
Opens the keybinding dialog. More... | |
void | setHideInput (final boolean hideInput) |
Enables or disables hidden text in the first input field of the queryDialog. More... | |
void | showGUIMain () |
Displays the "main" GUI. More... | |
void | showGUIMeta () |
Displays the "server selection" GUI. More... | |
void | showGUIStart () |
Displays the "start" GUI. More... | |
void | updateConnectLabel (@NotNull final ClientSocketState clientSocketState, @Nullable final String param) |
Updates the "message" field of the connect dialog. More... | |
Maintains the application's main GUI state.
Definition at line 60 of file GuiManager.java.
com.realtime.crossfire.jxclient.window.GuiManager.GuiManager | ( | @NotNull final GuiStateManager | guiStateManager, |
@NotNull final TooltipManagerImpl | tooltipManager, | ||
@NotNull final Settings | settings, | ||
@NotNull final CrossfireServerConnection | server, | ||
@NotNull final JXCWindowRenderer | windowRenderer, | ||
@NotNull final GuiFactory | guiFactory, | ||
@NotNull final KeybindingsManager | keybindingsManager, | ||
@NotNull final JXCConnection | connection | ||
) |
Creates a new instance.
guiStateManager | the gui state manager to watch |
tooltipManager | the tooltip manager to update |
settings | the settings to use |
server | the crossfire server connection to monitor |
windowRenderer | the window renderer to use |
guiFactory | the gui factory for creating gui instances |
keybindingsManager | the keybindings manager to use |
connection | the connection to use |
Definition at line 417 of file GuiManager.java.
References com.realtime.crossfire.jxclient.window.GuiManager.connection, com.realtime.crossfire.jxclient.window.GuiManager.guiFactory, com.realtime.crossfire.jxclient.window.GuiManager.guiStateListener, com.realtime.crossfire.jxclient.window.GuiManager.keybindDialog, com.realtime.crossfire.jxclient.window.GuiManager.keybindingsManager, com.realtime.crossfire.jxclient.window.GuiManager.queryDialog, com.realtime.crossfire.jxclient.window.GuiManager.server, com.realtime.crossfire.jxclient.window.GuiManager.settings, com.realtime.crossfire.jxclient.window.GuiManager.tooltipManager, and com.realtime.crossfire.jxclient.window.GuiManager.windowRenderer.
|
private |
Activates the command input text field.
If the skin defined more than one input field, the first matching one is selected.
If neither the main gui nor any visible dialog has an input text field, invisible GUIs are checked as well. If one is found, it is made visible.
Definition at line 859 of file GuiManager.java.
References com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.activateCommandInput(), com.realtime.crossfire.jxclient.window.GuiManager.openDialog(), com.realtime.crossfire.jxclient.window.GuiManager.skin, and com.realtime.crossfire.jxclient.window.GuiManager.windowRenderer.
Referenced by com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.activateCommandInput(), and com.realtime.crossfire.jxclient.window.GuiManager.activateCommandInput().
void com.realtime.crossfire.jxclient.window.GuiManager.activateCommandInput | ( | @Nullable final String | newText | ) |
Activates the command input text field.
If the skin defines more than one input field, the first matching one is selected.
If neither the main gui nor any visible dialog has an input text field, invisible GUIs are checked as well. If one is found, it is made visible.
newText | the new command text if non- null |
Definition at line 887 of file GuiManager.java.
References com.realtime.crossfire.jxclient.window.GuiManager.activateCommandInput(), and com.realtime.crossfire.jxclient.gui.textinput.GUIText.setText().
|
private |
Called when the server selection GUI becomes active.
Selects the last used server entry.
Definition at line 786 of file GuiManager.java.
References com.realtime.crossfire.jxclient.settings.Settings.getString(), com.realtime.crossfire.jxclient.settings.SettingsEntries.SERVER, com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.setSelectedHostname(), com.realtime.crossfire.jxclient.window.GuiManager.settings, and com.realtime.crossfire.jxclient.window.GuiManager.windowRenderer.
void com.realtime.crossfire.jxclient.window.GuiManager.addDialog | ( | @NotNull final String | name, |
@NotNull final Gui | dialog | ||
) |
Adds a dialog for name based lookup.
name | the name of the dialog |
dialog | the dialog |
Definition at line 436 of file GuiManager.java.
References com.realtime.crossfire.jxclient.window.GuiManager.dialogs.
Referenced by com.realtime.crossfire.jxclient.skin.skin.Dialogs.addDialog().
void com.realtime.crossfire.jxclient.window.GuiManager.closeDialog | ( | @NotNull final String | name | ) |
Closes the given dialog.
Does nothing if the dialog is not opened.
name | the name of the dialog |
Definition at line 819 of file GuiManager.java.
References com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.closeDialog(), com.realtime.crossfire.jxclient.window.GuiManager.dialogs, and com.realtime.crossfire.jxclient.window.GuiManager.windowRenderer.
Referenced by com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.closeDialog(), com.realtime.crossfire.jxclient.window.GuiManager.closeDialogByName(), com.realtime.crossfire.jxclient.window.GuiManager.closeKeybindDialog(), com.realtime.crossfire.jxclient.window.GuiManager.closeQueryDialog(), com.realtime.crossfire.jxclient.window.GuiManager.closeTransientDialogs(), com.realtime.crossfire.jxclient.window.GuiManager.escPressed(), com.realtime.crossfire.jxclient.window.GuiManager.manageAccount(), and com.realtime.crossfire.jxclient.window.GuiManager.openQuitDialog().
boolean com.realtime.crossfire.jxclient.window.GuiManager.closeDialog | ( | @NotNull final Gui | dialog | ) |
Closes the given dialog.
Does nothing if the dialog is not opened.
dialog | the dialog to close |
Definition at line 832 of file GuiManager.java.
References com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.closeDialog(), and com.realtime.crossfire.jxclient.window.GuiManager.windowRenderer.
|
private |
Closes a dialog by name.
name | the dialog name |
Definition at line 740 of file GuiManager.java.
References com.realtime.crossfire.jxclient.window.GuiManager.closeDialog(), com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getDialog(), and com.realtime.crossfire.jxclient.window.GuiManager.skin.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.hideAccountWindows(), and com.realtime.crossfire.jxclient.window.GuiManager.openQueryDialog().
void com.realtime.crossfire.jxclient.window.GuiManager.closeKeybindDialog | ( | ) |
Closes the keybinding dialog.
Does nothing if the dialog is not opened.
Definition at line 807 of file GuiManager.java.
References com.realtime.crossfire.jxclient.window.GuiManager.closeDialog(), and com.realtime.crossfire.jxclient.window.GuiManager.keybindDialog.
Referenced by com.realtime.crossfire.jxclient.main.DefaultKeyHandler.keyReleased(), and com.realtime.crossfire.jxclient.window.GuiManager.openQuitDialog().
void com.realtime.crossfire.jxclient.window.GuiManager.closeQueryDialog | ( | ) |
Closes the "query" dialog.
Does nothing if the dialog is not open.
Definition at line 706 of file GuiManager.java.
References com.realtime.crossfire.jxclient.window.GuiManager.closeDialog(), and com.realtime.crossfire.jxclient.window.GuiManager.queryDialog.
|
private |
Closes all transient dialogs: disconnect, quit, connect, query, and book dialogs.
Definition at line 759 of file GuiManager.java.
References com.realtime.crossfire.jxclient.window.GuiManager.closeDialog(), com.realtime.crossfire.jxclient.window.GuiManager.dialogConnect, com.realtime.crossfire.jxclient.window.GuiManager.dialogDisconnect, com.realtime.crossfire.jxclient.window.GuiManager.dialogQuit, com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getDialogBook(), com.realtime.crossfire.jxclient.window.GuiManager.queryDialog, and com.realtime.crossfire.jxclient.window.GuiManager.skin.
boolean com.realtime.crossfire.jxclient.window.GuiManager.createKeyBinding | ( | final boolean | perCharacter, |
@NotNull final CommandList | cmdList | ||
) |
Adds a key binding.
perCharacter | whether a per-character key binding should be added |
cmdList | the command list to execute on key press |
Definition at line 1026 of file GuiManager.java.
References com.realtime.crossfire.jxclient.gui.keybindings.KeybindingsManager.createKeyBinding(), com.realtime.crossfire.jxclient.window.GuiManager.keybindingsManager, and com.realtime.crossfire.jxclient.window.GuiManager.openKeybindDialog().
Referenced by com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.createKeyBinding().
EscAction com.realtime.crossfire.jxclient.window.GuiManager.escPressed | ( | final boolean | connected | ) |
The ESC key has been pressed.
connected | whether a connection to the server is active |
Definition at line 519 of file GuiManager.java.
References com.realtime.crossfire.jxclient.window.GuiManager.closeDialog(), com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.deactivateCommandInput(), com.realtime.crossfire.jxclient.window.GuiManager.dialogDisconnect, com.realtime.crossfire.jxclient.window.GuiManager.dialogQuit, com.realtime.crossfire.jxclient.window.GuiManager.EscAction.DISCONNECT, com.realtime.crossfire.jxclient.gui.keybindings.KeybindingsManager.escPressed(), com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getDialogBook(), com.realtime.crossfire.jxclient.window.GuiManager.EscAction.IGNORE, com.realtime.crossfire.jxclient.window.GuiManager.keybindDialog, com.realtime.crossfire.jxclient.window.GuiManager.keybindingsManager, com.realtime.crossfire.jxclient.window.GuiManager.openDialog(), com.realtime.crossfire.jxclient.window.GuiManager.EscAction.QUIT, com.realtime.crossfire.jxclient.window.GuiManager.skin, and com.realtime.crossfire.jxclient.window.GuiManager.windowRenderer.
Referenced by com.realtime.crossfire.jxclient.main.DefaultKeyHandler.escPressed().
CommandList com.realtime.crossfire.jxclient.window.GuiManager.getCommandList | ( | @NotNull final String | args | ) | throws NoSuchCommandException |
Returns a named command list.
args | the name of the command list |
NoSuchCommandException | if the command list does not exist |
Definition at line 1073 of file GuiManager.java.
References com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getCommandList(), and com.realtime.crossfire.jxclient.window.GuiManager.skin.
Referenced by com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.getCommandList().
void com.realtime.crossfire.jxclient.window.GuiManager.hideAccountWindows | ( | ) |
Hides all account-related windows.
Definition at line 482 of file GuiManager.java.
References com.realtime.crossfire.jxclient.window.GuiManager.closeDialogByName().
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.manageAccount(), and com.realtime.crossfire.jxclient.window.GuiManager.showCharacters().
void com.realtime.crossfire.jxclient.window.GuiManager.manageAccount | ( | ) |
Displays the main account dialog, to let the player login or create a new account.
Definition at line 454 of file GuiManager.java.
References com.realtime.crossfire.jxclient.gui.gui.RendererGuiState.ACCOUNT, com.realtime.crossfire.jxclient.window.GuiManager.closeDialog(), com.realtime.crossfire.jxclient.window.GuiManager.dialogConnect, com.realtime.crossfire.jxclient.window.GuiManager.hideAccountWindows(), com.realtime.crossfire.jxclient.window.GuiManager.openDialogByName(), com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.setGuiState(), and com.realtime.crossfire.jxclient.window.GuiManager.windowRenderer.
void com.realtime.crossfire.jxclient.window.GuiManager.openDialog | ( | @NotNull final String | name | ) |
Opens a dialog by name.
Raises the dialog if open.
name | the name of the dialog |
Definition at line 600 of file GuiManager.java.
References com.realtime.crossfire.jxclient.window.GuiManager.dialogs.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.activateCommandInput(), com.realtime.crossfire.jxclient.window.GuiManager.escPressed(), com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.openDialog(), com.realtime.crossfire.jxclient.window.GuiManager.openDialogByName(), com.realtime.crossfire.jxclient.window.GuiManager.openKeybindDialog(), com.realtime.crossfire.jxclient.window.GuiManager.openQueryDialog(), and com.realtime.crossfire.jxclient.window.GuiManager.openQuitDialog().
|
private |
Opens a dialog.
Raises the dialog if it is open.
dialog | the dialog to show |
autoCloseOnDeactivate | whether the dialog should auto-close when it becomes inactive; ignored if the dialog is already open |
Definition at line 615 of file GuiManager.java.
References com.realtime.crossfire.jxclient.window.GuiManager.connection, com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.getAccountName(), com.realtime.crossfire.jxclient.window.JXCConnection.getHostname(), com.realtime.crossfire.jxclient.settings.SettingsEntries.getLoginAccountSettingsEntry(), com.realtime.crossfire.jxclient.settings.Settings.getString(), com.realtime.crossfire.jxclient.util.SwingUtilities2.invokeAndWait(), com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.openDialog(), com.realtime.crossfire.jxclient.window.GuiManager.queryDialog, com.realtime.crossfire.jxclient.window.GuiManager.server, com.realtime.crossfire.jxclient.gui.gui.ActivatableGUIElement.setActive(), com.realtime.crossfire.jxclient.gui.list.GUICharacterList.setCharacter(), com.realtime.crossfire.jxclient.window.GuiManager.setHideInput(), com.realtime.crossfire.jxclient.gui.label.AbstractLabel.setText(), com.realtime.crossfire.jxclient.gui.textinput.GUIText.setText(), com.realtime.crossfire.jxclient.window.GuiManager.settings, and com.realtime.crossfire.jxclient.window.GuiManager.windowRenderer.
|
private |
Opens a dialog by name.
name | the dialog name |
Definition at line 719 of file GuiManager.java.
References com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getDialog(), com.realtime.crossfire.jxclient.window.GuiManager.openDialog(), and com.realtime.crossfire.jxclient.window.GuiManager.skin.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.manageAccount(), com.realtime.crossfire.jxclient.window.GuiManager.openQueryDialog(), com.realtime.crossfire.jxclient.window.GuiManager.playerReceived(), and com.realtime.crossfire.jxclient.window.GuiManager.showCharacters().
|
private |
Opens the keybinding dialog.
Does nothing if the dialog is opened.
Definition at line 796 of file GuiManager.java.
References com.realtime.crossfire.jxclient.window.GuiManager.keybindDialog, and com.realtime.crossfire.jxclient.window.GuiManager.openDialog().
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.createKeyBinding(), and com.realtime.crossfire.jxclient.window.GuiManager.removeKeyBinding().
void com.realtime.crossfire.jxclient.window.GuiManager.openQueryDialog | ( | @NotNull final String | prompt, |
final int | queryType | ||
) |
Opens the "query" dialog.
prompt | the query prompt |
queryType | the query type |
Definition at line 560 of file GuiManager.java.
References com.realtime.crossfire.jxclient.window.GuiManager.closeDialogByName(), com.realtime.crossfire.jxclient.window.GuiManager.connection, com.realtime.crossfire.jxclient.window.GuiManager.currentQueryDialogIsNamePrompt, com.realtime.crossfire.jxclient.window.JXCConnection.getHostname(), com.realtime.crossfire.jxclient.settings.SettingsEntries.getPlayerSettingsEntry(), com.realtime.crossfire.jxclient.settings.Settings.getString(), com.realtime.crossfire.jxclient.server.crossfire.CrossfireQueryListener.HIDE_INPUT, com.realtime.crossfire.jxclient.gui.gui.RendererGuiState.NEW_CHAR, com.realtime.crossfire.jxclient.window.GuiManager.openDialog(), com.realtime.crossfire.jxclient.window.GuiManager.openDialogByName(), com.realtime.crossfire.jxclient.window.GuiManager.queryDialog, com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.setGuiState(), com.realtime.crossfire.jxclient.window.GuiManager.setHideInput(), com.realtime.crossfire.jxclient.gui.textinput.GUIText.setText(), com.realtime.crossfire.jxclient.window.GuiManager.settings, and com.realtime.crossfire.jxclient.window.GuiManager.windowRenderer.
boolean com.realtime.crossfire.jxclient.window.GuiManager.openQuitDialog | ( | ) |
Opens the "quit" dialog.
Does nothing if the dialog is open.
Definition at line 495 of file GuiManager.java.
References com.realtime.crossfire.jxclient.window.GuiManager.closeDialog(), com.realtime.crossfire.jxclient.window.GuiManager.closeKeybindDialog(), com.realtime.crossfire.jxclient.window.GuiManager.dialogDisconnect, com.realtime.crossfire.jxclient.window.GuiManager.dialogQuit, com.realtime.crossfire.jxclient.window.GuiManager.keybindingsManager, com.realtime.crossfire.jxclient.window.GuiManager.openDialog(), and com.realtime.crossfire.jxclient.gui.keybindings.KeybindingsManager.windowClosing().
void com.realtime.crossfire.jxclient.window.GuiManager.playerReceived | ( | ) |
A "player" protocol command has been received.
Definition at line 443 of file GuiManager.java.
References com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.getGuiState(), com.realtime.crossfire.jxclient.gui.gui.RendererGuiState.NEW_CHAR, com.realtime.crossfire.jxclient.window.GuiManager.openDialogByName(), com.realtime.crossfire.jxclient.gui.gui.RendererGuiState.PLAYING, com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.setGuiState(), and com.realtime.crossfire.jxclient.window.GuiManager.windowRenderer.
boolean com.realtime.crossfire.jxclient.window.GuiManager.removeKeyBinding | ( | final boolean | perCharacter | ) |
Removes a key binding.
perCharacter | whether a per-character key binding should be removed |
Definition at line 1040 of file GuiManager.java.
References com.realtime.crossfire.jxclient.window.GuiManager.keybindingsManager, com.realtime.crossfire.jxclient.window.GuiManager.openKeybindDialog(), and com.realtime.crossfire.jxclient.gui.keybindings.KeybindingsManager.removeKeyBinding().
Referenced by com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.removeKeyBinding().
void com.realtime.crossfire.jxclient.window.GuiManager.selectCharacter | ( | @NotNull final String | accountName, |
@NotNull final String | characterName | ||
) |
Updates the selected character name in an account.
accountName | the account name |
characterName | the character name |
Definition at line 1101 of file GuiManager.java.
References com.realtime.crossfire.jxclient.window.GuiManager.connection, com.realtime.crossfire.jxclient.window.JXCConnection.getHostname(), com.realtime.crossfire.jxclient.settings.SettingsEntries.getLoginAccountSettingsEntry(), com.realtime.crossfire.jxclient.settings.Settings.putString(), and com.realtime.crossfire.jxclient.window.GuiManager.settings.
void com.realtime.crossfire.jxclient.window.GuiManager.setAccountName | ( | @NotNull final String | accountName | ) |
Updates the current account name.
accountName | the current account name |
Definition at line 1089 of file GuiManager.java.
References com.realtime.crossfire.jxclient.window.GuiManager.connection, com.realtime.crossfire.jxclient.window.JXCConnection.getHostname(), com.realtime.crossfire.jxclient.settings.SettingsEntries.getLoginAccountSettingsEntry(), com.realtime.crossfire.jxclient.settings.Settings.putString(), and com.realtime.crossfire.jxclient.window.GuiManager.settings.
|
private |
Enables or disables hidden text in the first input field of the queryDialog.
hideInput | if set, hide input; else show input |
Definition at line 1113 of file GuiManager.java.
References com.realtime.crossfire.jxclient.window.GuiManager.queryDialog, and com.realtime.crossfire.jxclient.gui.textinput.GUIText.setHideInput().
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.openDialog(), com.realtime.crossfire.jxclient.window.GuiManager.openQueryDialog(), and com.realtime.crossfire.jxclient.window.GuiManager.toggleDialog().
void com.realtime.crossfire.jxclient.window.GuiManager.setSkin | ( | @NotNull final JXCSkin | skin | ) |
Sets a new skin.
skin | the new skin |
Definition at line 915 of file GuiManager.java.
References com.realtime.crossfire.jxclient.skin.skin.JXCSkin.attach(), com.realtime.crossfire.jxclient.window.GuiManager.dialogConnect, com.realtime.crossfire.jxclient.window.GuiManager.dialogConnectLabel, com.realtime.crossfire.jxclient.window.GuiManager.dialogDisconnect, com.realtime.crossfire.jxclient.window.GuiManager.dialogQuit, com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getDialogConnect(), com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getDialogDisconnect(), com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getDialogKeyBind(), com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getDialogQuery(), com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getDialogQuit(), com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getTooltipLabel(), com.realtime.crossfire.jxclient.window.GuiManager.keybindDialog, com.realtime.crossfire.jxclient.window.GuiManager.queryDialog, com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.setTooltip(), com.realtime.crossfire.jxclient.window.GuiManager.skin, com.realtime.crossfire.jxclient.window.GuiManager.tooltipManager, and com.realtime.crossfire.jxclient.window.GuiManager.windowRenderer.
Referenced by com.realtime.crossfire.jxclient.main.JXCWindow.init().
void com.realtime.crossfire.jxclient.window.GuiManager.showCharacters | ( | final int | count | ) |
Displays the window with the characters for an account.
count | how many characters the account has. |
Definition at line 467 of file GuiManager.java.
References com.realtime.crossfire.jxclient.gui.gui.RendererGuiState.ACCOUNT, com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.getGuiState(), com.realtime.crossfire.jxclient.window.GuiManager.hideAccountWindows(), com.realtime.crossfire.jxclient.window.GuiManager.openDialogByName(), com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.setGuiState(), and com.realtime.crossfire.jxclient.window.GuiManager.windowRenderer.
|
private |
Displays the "main" GUI.
Definition at line 952 of file GuiManager.java.
References com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.clearGUI(), com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getMainInterface(), com.realtime.crossfire.jxclient.window.GuiManager.guiFactory, com.realtime.crossfire.jxclient.skin.skin.GuiFactory.newGui(), com.realtime.crossfire.jxclient.gui.label.TooltipManagerImpl.reset(), com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.setCurrentGui(), com.realtime.crossfire.jxclient.window.GuiManager.skin, com.realtime.crossfire.jxclient.window.GuiManager.tooltipManager, and com.realtime.crossfire.jxclient.window.GuiManager.windowRenderer.
|
private |
Displays the "server selection" GUI.
Definition at line 940 of file GuiManager.java.
References com.realtime.crossfire.jxclient.gui.gui.Gui.activateDefaultElement(), com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.clearGUI(), com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getMetaInterface(), com.realtime.crossfire.jxclient.window.GuiManager.guiFactory, com.realtime.crossfire.jxclient.skin.skin.GuiFactory.newGui(), com.realtime.crossfire.jxclient.gui.label.TooltipManagerImpl.reset(), com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.setCurrentGui(), com.realtime.crossfire.jxclient.window.GuiManager.skin, com.realtime.crossfire.jxclient.window.GuiManager.tooltipManager, and com.realtime.crossfire.jxclient.window.GuiManager.windowRenderer.
|
private |
Displays the "start" GUI.
Definition at line 930 of file GuiManager.java.
References com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.clearGUI(), com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getStartInterface(), com.realtime.crossfire.jxclient.window.GuiManager.guiFactory, com.realtime.crossfire.jxclient.skin.skin.GuiFactory.newGui(), com.realtime.crossfire.jxclient.gui.label.TooltipManagerImpl.reset(), com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.setCurrentGui(), com.realtime.crossfire.jxclient.window.GuiManager.skin, com.realtime.crossfire.jxclient.window.GuiManager.tooltipManager, and com.realtime.crossfire.jxclient.window.GuiManager.windowRenderer.
void com.realtime.crossfire.jxclient.window.GuiManager.term | ( | ) |
Terminates the GUI.
Stops display updates and saves the display state.
Definition at line 963 of file GuiManager.java.
References com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.endRendering(), com.realtime.crossfire.jxclient.window.GuiManager.keybindingsManager, com.realtime.crossfire.jxclient.window.DialogStateParser.save(), com.realtime.crossfire.jxclient.gui.keybindings.KeybindingsManager.saveKeybindings(), com.realtime.crossfire.jxclient.window.GuiManager.skin, and com.realtime.crossfire.jxclient.window.GuiManager.windowRenderer.
Referenced by com.realtime.crossfire.jxclient.main.JXCWindow.term().
void com.realtime.crossfire.jxclient.window.GuiManager.toggleDialog | ( | @NotNull final String | name | ) |
Toggles a dialog.
name | the name of the dialog |
Definition at line 696 of file GuiManager.java.
References com.realtime.crossfire.jxclient.window.GuiManager.dialogs, com.realtime.crossfire.jxclient.window.GuiManager.queryDialog, com.realtime.crossfire.jxclient.window.GuiManager.setHideInput(), com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.toggleDialog(), and com.realtime.crossfire.jxclient.window.GuiManager.windowRenderer.
Referenced by com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.toggleDialog().
void com.realtime.crossfire.jxclient.window.GuiManager.unsetSkin | ( | ) |
Unsets the current skin.
Definition at line 897 of file GuiManager.java.
References com.realtime.crossfire.jxclient.skin.skin.JXCSkin.detach(), com.realtime.crossfire.jxclient.window.GuiManager.dialogDisconnect, com.realtime.crossfire.jxclient.window.GuiManager.dialogQuit, com.realtime.crossfire.jxclient.window.GuiManager.keybindDialog, com.realtime.crossfire.jxclient.window.GuiManager.queryDialog, com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.setTooltip(), com.realtime.crossfire.jxclient.window.GuiManager.skin, and com.realtime.crossfire.jxclient.window.GuiManager.windowRenderer.
Referenced by com.realtime.crossfire.jxclient.main.JXCWindow.init().
|
private |
Updates the "message" field of the connect dialog.
Does nothing if the dialog is not open, does not exist, or if the dialog does not define a "message" field.
clientSocketState | the client socket state |
param | a parameter to display |
Definition at line 978 of file GuiManager.java.
References com.realtime.crossfire.jxclient.window.GuiManager.dialogConnectLabel, and com.realtime.crossfire.jxclient.gui.label.AbstractLabel.setText().
void com.realtime.crossfire.jxclient.window.GuiManager.updatePlayerName | ( | @NotNull final String | playerName | ) |
Sets the current player name.
Does nothing if not currently in the character name prompt.
playerName | the player name |
Definition at line 841 of file GuiManager.java.
References com.realtime.crossfire.jxclient.window.GuiManager.connection, com.realtime.crossfire.jxclient.window.GuiManager.currentQueryDialogIsNamePrompt, com.realtime.crossfire.jxclient.window.JXCConnection.getHostname(), com.realtime.crossfire.jxclient.settings.SettingsEntries.getPlayerSettingsEntry(), com.realtime.crossfire.jxclient.settings.Settings.putString(), and com.realtime.crossfire.jxclient.window.GuiManager.settings.
Referenced by com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.updatePlayerName().
void com.realtime.crossfire.jxclient.window.GuiManager.updateWindowSize | ( | final int | width, |
final int | height | ||
) |
Sets a new window size.
width | the new window width |
height | the new window height |
Definition at line 1053 of file GuiManager.java.
References com.realtime.crossfire.jxclient.util.SwingUtilities2.invokeAndWait(), com.realtime.crossfire.jxclient.gui.label.TooltipManagerImpl.setScreenSize(), com.realtime.crossfire.jxclient.skin.skin.JXCSkin.setScreenSize(), com.realtime.crossfire.jxclient.window.GuiManager.skin, and com.realtime.crossfire.jxclient.window.GuiManager.tooltipManager.
Referenced by com.realtime.crossfire.jxclient.main.JXCWindow.init().
|
private |
The JXCConnection to use.
Definition at line 147 of file GuiManager.java.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.GuiManager(), com.realtime.crossfire.jxclient.window.GuiManager.openDialog(), com.realtime.crossfire.jxclient.window.GuiManager.openQueryDialog(), com.realtime.crossfire.jxclient.window.GuiManager.selectCharacter(), com.realtime.crossfire.jxclient.window.GuiManager.setAccountName(), and com.realtime.crossfire.jxclient.window.GuiManager.updatePlayerName().
|
private |
The CrossfireDrawextinfoListener attached to server.
Definition at line 165 of file GuiManager.java.
|
private |
The CrossfireFailureListener registered to receive failure messages.
Definition at line 250 of file GuiManager.java.
|
private |
Whether the currently shown query dialog is the character name prompt.
Definition at line 129 of file GuiManager.java.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.openQueryDialog(), and com.realtime.crossfire.jxclient.window.GuiManager.updatePlayerName().
|
private |
The "connect in progress" dialog.
Set to
if the skin does not define this dialog.
Definition at line 117 of file GuiManager.java.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.closeTransientDialogs(), com.realtime.crossfire.jxclient.window.GuiManager.manageAccount(), and com.realtime.crossfire.jxclient.window.GuiManager.setSkin().
|
private |
The "message" field within dialogConnect.
Set to
if the dialog does not define a "message" label.
Definition at line 124 of file GuiManager.java.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.setSkin(), and com.realtime.crossfire.jxclient.window.GuiManager.updateConnectLabel().
|
private |
The "really disconnect?" dialog.
Set to
if the skin does not define this dialog.
Definition at line 110 of file GuiManager.java.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.closeTransientDialogs(), com.realtime.crossfire.jxclient.window.GuiManager.escPressed(), com.realtime.crossfire.jxclient.window.GuiManager.openQuitDialog(), com.realtime.crossfire.jxclient.window.GuiManager.setSkin(), and com.realtime.crossfire.jxclient.window.GuiManager.unsetSkin().
|
private |
The "really quit?" dialog.
Set to
if the skin does not define this dialog.
Definition at line 103 of file GuiManager.java.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.closeTransientDialogs(), com.realtime.crossfire.jxclient.window.GuiManager.escPressed(), com.realtime.crossfire.jxclient.window.GuiManager.openQuitDialog(), com.realtime.crossfire.jxclient.window.GuiManager.setSkin(), and com.realtime.crossfire.jxclient.window.GuiManager.unsetSkin().
|
private |
Maps dialog name to dialog instance.
Definition at line 159 of file GuiManager.java.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.addDialog(), com.realtime.crossfire.jxclient.window.GuiManager.closeDialog(), com.realtime.crossfire.jxclient.window.GuiManager.openDialog(), and com.realtime.crossfire.jxclient.window.GuiManager.toggleDialog().
|
private |
The GuiFactory for creating Gui instances.
Definition at line 78 of file GuiManager.java.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.GuiManager(), com.realtime.crossfire.jxclient.window.GuiManager.showGUIMain(), com.realtime.crossfire.jxclient.window.GuiManager.showGUIMeta(), and com.realtime.crossfire.jxclient.window.GuiManager.showGUIStart().
|
private |
The GuiStateListener for detecting established or dropped connections.
Definition at line 341 of file GuiManager.java.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.GuiManager().
|
private |
The keybindings dialog.
Definition at line 90 of file GuiManager.java.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.closeKeybindDialog(), com.realtime.crossfire.jxclient.window.GuiManager.escPressed(), com.realtime.crossfire.jxclient.window.GuiManager.GuiManager(), com.realtime.crossfire.jxclient.window.GuiManager.openKeybindDialog(), com.realtime.crossfire.jxclient.window.GuiManager.setSkin(), and com.realtime.crossfire.jxclient.window.GuiManager.unsetSkin().
|
private |
The key bindings manager for this window.
Definition at line 96 of file GuiManager.java.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.createKeyBinding(), com.realtime.crossfire.jxclient.window.GuiManager.escPressed(), com.realtime.crossfire.jxclient.window.GuiManager.GuiManager(), com.realtime.crossfire.jxclient.window.GuiManager.openQuitDialog(), com.realtime.crossfire.jxclient.window.GuiManager.removeKeyBinding(), and com.realtime.crossfire.jxclient.window.GuiManager.term().
|
private |
The query dialog.
Definition at line 84 of file GuiManager.java.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.closeQueryDialog(), com.realtime.crossfire.jxclient.window.GuiManager.closeTransientDialogs(), com.realtime.crossfire.jxclient.window.GuiManager.GuiManager(), com.realtime.crossfire.jxclient.window.GuiManager.openDialog(), com.realtime.crossfire.jxclient.window.GuiManager.openQueryDialog(), com.realtime.crossfire.jxclient.window.GuiManager.setHideInput(), com.realtime.crossfire.jxclient.window.GuiManager.setSkin(), com.realtime.crossfire.jxclient.window.GuiManager.toggleDialog(), and com.realtime.crossfire.jxclient.window.GuiManager.unsetSkin().
|
private |
The CrossfireServerConnection instance to monitor.
Definition at line 153 of file GuiManager.java.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.GuiManager(), and com.realtime.crossfire.jxclient.window.GuiManager.openDialog().
|
private |
The Settings to use.
Definition at line 141 of file GuiManager.java.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.activateMetaserverGui(), com.realtime.crossfire.jxclient.window.GuiManager.GuiManager(), com.realtime.crossfire.jxclient.window.GuiManager.openDialog(), com.realtime.crossfire.jxclient.window.GuiManager.openQueryDialog(), com.realtime.crossfire.jxclient.window.GuiManager.selectCharacter(), com.realtime.crossfire.jxclient.window.GuiManager.setAccountName(), and com.realtime.crossfire.jxclient.window.GuiManager.updatePlayerName().
|
private |
The currently active skin.
Set to
if no skin is set.
Definition at line 66 of file GuiManager.java.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.activateCommandInput(), com.realtime.crossfire.jxclient.window.GuiManager.closeDialogByName(), com.realtime.crossfire.jxclient.window.GuiManager.closeTransientDialogs(), com.realtime.crossfire.jxclient.window.GuiManager.escPressed(), com.realtime.crossfire.jxclient.window.GuiManager.getCommandList(), com.realtime.crossfire.jxclient.window.GuiManager.openDialogByName(), com.realtime.crossfire.jxclient.window.GuiManager.setSkin(), com.realtime.crossfire.jxclient.window.GuiManager.showGUIMain(), com.realtime.crossfire.jxclient.window.GuiManager.showGUIMeta(), com.realtime.crossfire.jxclient.window.GuiManager.showGUIStart(), com.realtime.crossfire.jxclient.window.GuiManager.term(), com.realtime.crossfire.jxclient.window.GuiManager.unsetSkin(), and com.realtime.crossfire.jxclient.window.GuiManager.updateWindowSize().
|
private |
The TooltipManager for this window.
Definition at line 135 of file GuiManager.java.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.GuiManager(), com.realtime.crossfire.jxclient.window.GuiManager.setSkin(), com.realtime.crossfire.jxclient.window.GuiManager.showGUIMain(), com.realtime.crossfire.jxclient.window.GuiManager.showGUIMeta(), com.realtime.crossfire.jxclient.window.GuiManager.showGUIStart(), and com.realtime.crossfire.jxclient.window.GuiManager.updateWindowSize().
|
private |
The JXCWindowRenderer used to paint the gui.
Definition at line 72 of file GuiManager.java.
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.activateCommandInput(), com.realtime.crossfire.jxclient.window.GuiManager.activateMetaserverGui(), com.realtime.crossfire.jxclient.window.GuiManager.closeDialog(), com.realtime.crossfire.jxclient.window.GuiManager.escPressed(), com.realtime.crossfire.jxclient.window.GuiManager.GuiManager(), com.realtime.crossfire.jxclient.window.GuiManager.manageAccount(), com.realtime.crossfire.jxclient.window.GuiManager.openDialog(), com.realtime.crossfire.jxclient.window.GuiManager.openQueryDialog(), com.realtime.crossfire.jxclient.window.GuiManager.playerReceived(), com.realtime.crossfire.jxclient.window.GuiManager.setSkin(), com.realtime.crossfire.jxclient.window.GuiManager.showCharacters(), com.realtime.crossfire.jxclient.window.GuiManager.showGUIMain(), com.realtime.crossfire.jxclient.window.GuiManager.showGUIMeta(), com.realtime.crossfire.jxclient.window.GuiManager.showGUIStart(), com.realtime.crossfire.jxclient.window.GuiManager.term(), com.realtime.crossfire.jxclient.window.GuiManager.toggleDialog(), and com.realtime.crossfire.jxclient.window.GuiManager.unsetSkin().