Crossfire JXClient, Trunk
Static Public Member Functions | Private Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
com.realtime.crossfire.jxclient.window.DialogStateParser Class Reference
Collaboration diagram for com.realtime.crossfire.jxclient.window.DialogStateParser:
Collaboration graph

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(" ")
 

Detailed Description

Utility class to store or restore the dialog states to/from a file.

Author
Andreas Kirschbaum

Definition at line 47 of file DialogStateParser.java.

Constructor & Destructor Documentation

◆ DialogStateParser()

com.realtime.crossfire.jxclient.window.DialogStateParser.DialogStateParser ( )
private

Private constructor to prevent instantiation.

Definition at line 58 of file DialogStateParser.java.

Member Function Documentation

◆ load()

static void com.realtime.crossfire.jxclient.window.DialogStateParser.load ( @NotNull final JXCSkin  skin,
@NotNull final JXCWindowRenderer  windowRenderer 
)
static

Loads the dialogs state from a file.

Parameters
skinthe skin to update
windowRendererthe 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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ save()

static void com.realtime.crossfire.jxclient.window.DialogStateParser.save ( @NotNull final JXCSkin  skin,
@NotNull final JXCWindowRenderer  windowRenderer 
)
static

Saves the dialogs state to a file.

Parameters
skinthe skin to update
windowRendererthe 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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveDialog()

static void com.realtime.crossfire.jxclient.window.DialogStateParser.saveDialog ( @NotNull final Gui  dialog,
@NotNull final String  type,
@NotNull final Writer  bw 
) throws IOException
staticprivate

Saves the state of one dialog.

Parameters
dialogthe dialog to save
typethe dialog state; either "open" or "close"
bwthe writer to use
Exceptions
IOExceptionif an I/O error occurs

Definition at line 193 of file DialogStateParser.java.

Referenced by com.realtime.crossfire.jxclient.window.DialogStateParser.save().

Here is the caller graph for this function:

Member Data Documentation

◆ PATTERN

final Pattern com.realtime.crossfire.jxclient.window.DialogStateParser.PATTERN = Pattern.compile(" ")
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().


The documentation for this class was generated from the following file: