Crossfire JXClient, Trunk
|
Public Member Functions | |
void | activateCommandInput (@Nullable final String newText) |
void | addDialog (@NotNull final String name, @NotNull final Gui dialog) |
void | closeDialog (@NotNull final String name) |
void | closeKeybindDialog () |
void | closeQueryDialog () |
boolean | createKeyBinding (final boolean perCharacter, @NotNull final CommandList cmdList) |
EscAction | escPressed (final boolean connected) |
CommandList | getCommandList (@NotNull final String args) throws NoSuchCommandException |
Collection< String > | getCommandListNames () |
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) | |
void | hideAccountWindows () |
void | manageAccount () |
void | openDialog (@NotNull final String name) |
void | openQueryDialog (@NotNull final String prompt, final int queryType) |
boolean | openQuitDialog () |
void | playerReceived () |
boolean | removeKeyBinding (final boolean perCharacter) |
void | selectCharacter (@NotNull final String accountName, @NotNull final String characterName) |
void | setAccountName (@NotNull final String accountName) |
void | setOpaqueDialogBackground (final boolean opaque) |
void | setShowSentCommands (final boolean showSentCommands) |
void | setShowTimestamps (final boolean showTimestamps) |
void | setSkin (@NotNull final JXCSkin skin) |
void | showCharacters (final int count) |
void | term () |
void | toggleDialog (@NotNull final String name) |
void | unsetSkin () |
void | updatePlayerName (@NotNull final String playerName) |
void | updateWindowSize (final int width, final int height) |
Private Member Functions | |
GUIText | activateCommandInput () |
void | activateMetaserverGui () |
boolean | closeDialog (@NotNull final Gui dialog) |
void | closeDialogByName (@NotNull final String name) |
void | closeTransientDialogs (final boolean ignoreQueryDialog) |
boolean | openDialog (@NotNull final Gui dialog, final boolean autoCloseOnDeactivate) |
boolean | openDialogByName (@NotNull final String name) |
void | openKeybindDialog () |
void | setHideInput (final boolean hideInput) |
void | showGUIMain () |
void | showGUIMeta () |
void | showGUIStart () |
void | updateConnectLabel (@NotNull final ClientSocketState clientSocketState, @Nullable final String param) |
Private Attributes | |
final JXCConnection | connection |
final CrossfireDrawextinfoListener | crossfireDrawextinfoListener |
final CrossfireFailureListener | crossfireFailureListener |
boolean | currentQueryDialogIsNamePrompt |
Gui | dialogConnect |
AbstractLabel | dialogConnectLabel |
Gui | dialogDisconnect |
Gui | dialogQuit |
final Map< String, Gui > | dialogs = new HashMap<>() |
final GuiStateListener | guiStateListener |
Gui | keybindDialog |
final KeybindingsManager | keybindingsManager |
Gui | queryDialog |
final CrossfireServerConnection | server |
final Settings | settings |
JXCSkin | skin |
final TooltipManagerImpl | tooltipManager |
final JXCWindowRenderer | windowRenderer |
Maintains the application's main GUI state.
Definition at line 63 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.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.gui.misc.JXCWindowRenderer.setCurrentGui(), 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 862 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 890 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 789 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 435 of file GuiManager.java.
References com.realtime.crossfire.jxclient.window.GuiManager.dialogs.
Referenced by com.realtime.crossfire.jxclient.skin.skin.Dialogs.addDialog().
|
private |
Closes the given dialog. Does nothing if the dialog is not opened.
dialog | the dialog to close |
Definition at line 835 of file GuiManager.java.
References com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.closeDialog(), and com.realtime.crossfire.jxclient.window.GuiManager.windowRenderer.
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 822 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().
|
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 810 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.
ignoreQueryDialog | whether to not close the query dialog |
Definition at line 760 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 1024 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 518 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.EscAction.DISCONNECT, com.realtime.crossfire.jxclient.gui.keybindings.KeybindingsManager.escPressed(), com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getDialogBook(), com.realtime.crossfire.jxclient.window.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.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 1071 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().
Collection<String> com.realtime.crossfire.jxclient.window.GuiManager.getCommandListNames | ( | ) |
Returns all names of command lists.
Definition at line 1088 of file GuiManager.java.
References com.realtime.crossfire.jxclient.skin.skin.JXCSkin.getCommandListNames(), and com.realtime.crossfire.jxclient.window.GuiManager.skin.
Referenced by com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback.getCommandListNames().
void com.realtime.crossfire.jxclient.window.GuiManager.hideAccountWindows | ( | ) |
Hides all account-related windows.
Definition at line 481 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 453 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.
|
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.
void com.realtime.crossfire.jxclient.window.GuiManager.openDialog | ( | @NotNull final String | name | ) |
Opens a dialog by name. Raises the dialog if open. Does nothing if the dialog is undefined.
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 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 799 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 559 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.gui.gui.Gui.getFirstElement(), 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 494 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 442 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 1038 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 1112 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 1100 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 1124 of file GuiManager.java.
References com.realtime.crossfire.jxclient.gui.gui.Gui.getFirstElement(), 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.setOpaqueDialogBackground | ( | final boolean | opaque | ) |
Sets whether the dialog's background is opaque.
opaque | whether the background is opaque |
Definition at line 1136 of file GuiManager.java.
References com.realtime.crossfire.jxclient.window.GuiManager.dialogs.
Referenced by com.realtime.crossfire.jxclient.gui.gui.TranslucentDialogsCheckBoxOption.execute().
void com.realtime.crossfire.jxclient.window.GuiManager.setShowSentCommands | ( | final boolean | showSentCommands | ) |
Sets whether the commands sent to the server should be shown in the messages dialog.
showSentCommands | whether to show the commands |
Definition at line 1147 of file GuiManager.java.
References com.realtime.crossfire.jxclient.window.GuiManager.dialogs.
Referenced by com.realtime.crossfire.jxclient.gui.log.ShowSentCommandsCheckBoxOption.execute().
void com.realtime.crossfire.jxclient.window.GuiManager.setShowTimestamps | ( | final boolean | showTimestamps | ) |
Sets whether timestamps shown in the messages dialog.
showTimestamps | whether to show timestamps |
Definition at line 1157 of file GuiManager.java.
References com.realtime.crossfire.jxclient.window.GuiManager.dialogs.
Referenced by com.realtime.crossfire.jxclient.gui.log.ShowTimestampMessagesCheckBoxOption.execute().
void com.realtime.crossfire.jxclient.window.GuiManager.setSkin | ( | @NotNull final JXCSkin | skin | ) |
Sets a new skin.
skin | the new skin |
Definition at line 917 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.gui.gui.Gui.getFirstElement(), 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.JXCWindow().
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 466 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.gui.label.TooltipManagerImpl.reset(), 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 941 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.gui.label.TooltipManagerImpl.reset(), 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 932 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.gui.label.TooltipManagerImpl.reset(), 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 961 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.saveGlobalKeybindings(), 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 900 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.JXCWindow().
|
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 976 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 844 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 1051 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.JXCWindow().
|
private |
The JXCConnection to use.
Definition at line 146 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 164 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 126 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 114 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 121 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 107 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 100 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 158 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(), com.realtime.crossfire.jxclient.window.GuiManager.setOpaqueDialogBackground(), com.realtime.crossfire.jxclient.window.GuiManager.setShowSentCommands(), com.realtime.crossfire.jxclient.window.GuiManager.setShowTimestamps(), and com.realtime.crossfire.jxclient.window.GuiManager.toggleDialog().
|
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 87 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 93 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 81 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 152 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 140 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 69 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.getCommandListNames(), 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 134 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 75 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().