Crossfire JXClient, Trunk  R20561
com.realtime.crossfire.jxclient.window.ShortcutsLoader Class Reference

Manages shortcuts. More...

+ Collaboration diagram for com.realtime.crossfire.jxclient.window.ShortcutsLoader:

Static Public Member Functions

static void loadShortcuts (@NotNull final Shortcuts shortcuts, @NotNull final CharSequence hostname, @NotNull final CharSequence character)
 Load shortcut info from the backing file. More...
 
static void saveShortcuts (@NotNull final Shortcuts shortcuts)
 Save all shortcut info to the backing file. More...
 

Private Member Functions

 ShortcutsLoader ()
 Private constructor to prevent instantiation. More...
 

Static Private Member Functions

static void loadShortcuts (@NotNull final Shortcuts shortcuts, @NotNull final BufferedReader br) throws IOException
 Load shortcut info. More...
 

Detailed Description

Manages shortcuts.

Author
Andreas Kirschbaum

Definition at line 44 of file ShortcutsLoader.java.

Constructor & Destructor Documentation

◆ ShortcutsLoader()

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

Private constructor to prevent instantiation.

Definition at line 49 of file ShortcutsLoader.java.

Member Function Documentation

◆ loadShortcuts() [1/2]

static void com.realtime.crossfire.jxclient.window.ShortcutsLoader.loadShortcuts ( @NotNull final Shortcuts  shortcuts,
@NotNull final CharSequence  hostname,
@NotNull final CharSequence  character 
)
static

Load shortcut info from the backing file.

Parameters
shortcutsthe shortcuts instance to update
hostnamethe current hostname
characterthe current character name

Definition at line 58 of file ShortcutsLoader.java.

References com.realtime.crossfire.jxclient.settings.Filenames.getShortcutsFile().

Referenced by com.realtime.crossfire.jxclient.window.JXCConnection.setCharacter().

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

◆ loadShortcuts() [2/2]

static void com.realtime.crossfire.jxclient.window.ShortcutsLoader.loadShortcuts ( @NotNull final Shortcuts  shortcuts,
@NotNull final BufferedReader  br 
) throws IOException
staticprivate

Load shortcut info.

Parameters
shortcutsthe shortcuts instance to update
brthe buffered reader to read from
Exceptions
IOExceptionif an I/O error occurs

Definition at line 101 of file ShortcutsLoader.java.

◆ saveShortcuts()

static void com.realtime.crossfire.jxclient.window.ShortcutsLoader.saveShortcuts ( @NotNull final Shortcuts  shortcuts)
static

Save all shortcut info to the backing file.

Parameters
shortcutsthe shortcuts instance to save

Definition at line 131 of file ShortcutsLoader.java.

References com.realtime.crossfire.jxclient.shortcuts.ShortcutCommand.getCommand(), com.realtime.crossfire.jxclient.spells.Spell.getName(), com.realtime.crossfire.jxclient.shortcuts.ShortcutSpell.getSpell(), and com.realtime.crossfire.jxclient.shortcuts.ShortcutSpell.isCast().

Referenced by com.realtime.crossfire.jxclient.window.JXCConnection.setCharacter().

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

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