java.lang.Objectcom.realtime.crossfire.jxclient.window.DialogStateParser
public class DialogStateParser
Utility class to store or restore the dialog states to/from a file.
| Field Summary | |
|---|---|
private static java.util.regex.Pattern |
PATTERN
The pattern to split fields in the save file. |
| Constructor Summary | |
|---|---|
private |
DialogStateParser()
Private constructor to prevent instantiation. |
| Method Summary | |
|---|---|
static void |
load(JXCSkin skin,
JXCWindowRenderer windowRenderer)
Load the dialogs state from a file. |
static void |
save(JXCSkin skin,
JXCWindowRenderer windowRenderer)
Save the dialogs state to a file. |
private static void |
saveDialog(Gui dialog,
java.lang.String type,
java.io.Writer bw)
Save the state of one dialog. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@NotNull private static final java.util.regex.Pattern PATTERN
| Constructor Detail |
|---|
private DialogStateParser()
| Method Detail |
|---|
public static void load(@NotNull
JXCSkin skin,
@NotNull
JXCWindowRenderer windowRenderer)
skin - the skin to updatewindowRenderer - the window renderer instance to attach to
public static void save(@NotNull
JXCSkin skin,
@NotNull
JXCWindowRenderer windowRenderer)
skin - the skin to updatewindowRenderer - the window renderer instance to attach to
private static void saveDialog(@NotNull
Gui dialog,
@NotNull
java.lang.String type,
@NotNull
java.io.Writer bw)
throws java.io.IOException
dialog - The dialog to save.type - The dialog state; either "open" or "close".bw - The writer to use.
java.io.IOException - If an I/O error occurs.