Crossfire JXClient, Trunk
|
Static Public Member Functions | |
static void | load (@NotNull final JXCSkin skin, @NotNull final JXCWindowRenderer windowRenderer) |
static void | save (@NotNull final JXCSkin skin, @NotNull final JXCWindowRenderer windowRenderer) |
Private Member Functions | |
DialogStateParser () | |
Static Private Member Functions | |
static void | saveDialog (@NotNull final Gui dialog, @NotNull final String type, @NotNull final Writer bw) throws IOException |
Static Private Attributes | |
static final Pattern | PATTERN = Pattern.compile(" ") |
Utility class to store or restore the dialog states to/from a file.
Definition at line 47 of file DialogStateParser.java.
|
private |
Private constructor to prevent instantiation.
Definition at line 58 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 66 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(), com.realtime.crossfire.jxclient.window.DialogStateParser.PATTERN, and com.realtime.crossfire.jxclient.gui.gui.Gui.setBounds().
Referenced by com.realtime.crossfire.jxclient.main.JXCWindow.JXCWindow().
|
static |
Saves the dialogs state to a file.
skin | the skin to update |
windowRenderer | the window renderer instance to attach to |
Definition at line 146 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 193 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 53 of file DialogStateParser.java.
Referenced by com.realtime.crossfire.jxclient.window.DialogStateParser.load().