org.severe.jripples.core
Class JRipplesConfigurationsManager

java.lang.Object
  extended by org.severe.jripples.core.JRipplesConfigurationsManager

public class JRipplesConfigurationsManager
extends java.lang.Object

A class that provides a number of utilities for management of the JRipples states, where the state is a combination of JRipples EIG state and state of the active modules.

Author:
Maksym Petrenko

Field Summary
static java.lang.String CONFIGURATIONS_DIALOG_LOAD_MODE
          constant indicating that JRipples states dialog should be displayed in Load mode
to be used with displayDialog(String)
static java.lang.String CONFIGURATIONS_DIALOG_MANAGE_MODE
          constant indicating that JRipples states dialog should be displayed in Manage mode
to be used with displayDialog(String)
static java.lang.String CONFIGURATIONS_DIALOG_SAVE_MODE
          constant indicating that JRipples states dialog should be displayed in Save mode
to be used with displayDialog(String)
 
Constructor Summary
JRipplesConfigurationsManager()
           
 
Method Summary
static void displayDialog(java.lang.String mode)
          Opens JRipples states dialog to either load, save, or manage JRipples states, where the state is a combination of JRipples EIG state and state of the active modules.
static void loadConfigurationFromFile(java.lang.String confName)
          Loads a saved JRipples state (that is, EIG and active modules).
static void saveCurrentConfiguration(java.lang.String conf_name)
          Saves current JRipples state under the given name, where the state is a combination of JRipples EIG state and state of the active modules
static void saveCurrentConfiguration(java.lang.String conf_name, java.lang.String conf_info)
          Saves current JRipples state under the given name and description, where the state is a combination of JRipples EIG state and state of the active modules
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIGURATIONS_DIALOG_SAVE_MODE

public static final java.lang.String CONFIGURATIONS_DIALOG_SAVE_MODE
constant indicating that JRipples states dialog should be displayed in Save mode
to be used with displayDialog(String)

See Also:
Constant Field Values

CONFIGURATIONS_DIALOG_LOAD_MODE

public static final java.lang.String CONFIGURATIONS_DIALOG_LOAD_MODE
constant indicating that JRipples states dialog should be displayed in Load mode
to be used with displayDialog(String)

See Also:
Constant Field Values

CONFIGURATIONS_DIALOG_MANAGE_MODE

public static final java.lang.String CONFIGURATIONS_DIALOG_MANAGE_MODE
constant indicating that JRipples states dialog should be displayed in Manage mode
to be used with displayDialog(String)

See Also:
Constant Field Values
Constructor Detail

JRipplesConfigurationsManager

public JRipplesConfigurationsManager()
Method Detail

displayDialog

public static void displayDialog(java.lang.String mode)
Opens JRipples states dialog to either load, save, or manage JRipples states, where the state is a combination of JRipples EIG state and state of the active modules.

Parameters:
mode - mode, in which JRipples states dialog should be displayed.
Can be one of the following:

loadConfigurationFromFile

public static void loadConfigurationFromFile(java.lang.String confName)
Loads a saved JRipples state (that is, EIG and active modules).

Parameters:
confName - name of the saved state to load

saveCurrentConfiguration

public static void saveCurrentConfiguration(java.lang.String conf_name)
Saves current JRipples state under the given name, where the state is a combination of JRipples EIG state and state of the active modules

Parameters:
conf_name - name to save the current configuration under

saveCurrentConfiguration

public static void saveCurrentConfiguration(java.lang.String conf_name,
                                            java.lang.String conf_info)
Saves current JRipples state under the given name and description, where the state is a combination of JRipples EIG state and state of the active modules

Parameters:
conf_name - name to save the current configuration under
conf_info - description to save the current configuration under