Crossfire JXClient, Trunk
R20561
|
Utility class to store or restore the dialog states to/from a file. More...
Static Public Member Functions | |
static void | load (@NotNull final JXCSkin skin, @NotNull final JXCWindowRenderer windowRenderer) |
Loads the dialogs state from a file. More... | |
static void | save (@NotNull final JXCSkin skin, @NotNull final JXCWindowRenderer windowRenderer) |
Saves the dialogs state to a file. More... | |
Private Member Functions | |
DialogStateParser () | |
Private constructor to prevent instantiation. More... | |
Static Private Member Functions | |
static void | saveDialog (@NotNull final Gui dialog, @NotNull final String type, @NotNull final Writer bw) throws IOException |
Saves the state of one dialog. More... | |
Static Private Attributes | |
static final Pattern | PATTERN = Pattern.compile(" ") |
The pattern to split fields in the save file. More... | |
Utility class to store or restore the dialog states to/from a file.
Definition at line 48 of file DialogStateParser.java.
|
private |
Private constructor to prevent instantiation.
Definition at line 59 of file DialogStateParser.java.
|
static |
Loads the dialogs state from a file.
skin | the skin to update |
windowRenderer | the window renderer instance to attach to |
Definition at line 67 of file DialogStateParser.java.
References com.realtime.crossfire.jxclient.settings.Filenames.getDialogsFile(), com.realtime.crossfire.jxclient.gui.gui.Gui.isAutoSize(), com.realtime.crossfire.jxclient.gui.gui.Gui.isSaveDialog(), and com.realtime.crossfire.jxclient.gui.gui.Gui.setPosition().
Referenced by com.realtime.crossfire.jxclient.main.JXCWindow.init().
|
static |
Saves the dialogs state to a file.
skin | the skin to update |
windowRenderer | the window renderer instance to attach to |
Definition at line 157 of file DialogStateParser.java.
References com.realtime.crossfire.jxclient.settings.Filenames.getDialogsFile(), and com.realtime.crossfire.jxclient.window.DialogStateParser.saveDialog().
Referenced by com.realtime.crossfire.jxclient.window.GuiManager.term().
|
staticprivate |
Saves the state of one dialog.
dialog | the dialog to save |
type | the dialog state; either "open" or "close" |
bw | the writer to use |
IOException | if an I/O error occurs |
Definition at line 204 of file DialogStateParser.java.
Referenced by com.realtime.crossfire.jxclient.window.DialogStateParser.save().
|
staticprivate |
The pattern to split fields in the save file.
Definition at line 54 of file DialogStateParser.java.