vlcskineditor
Class Config

java.lang.Object
  extended by vlcskineditor.Config

public class Config
extends java.lang.Object

Class to manage the configuration


Constructor Summary
Config()
           
 
Method Summary
static java.lang.String get(java.lang.String key)
          Gets the configured value of a certain key
static int getInt(java.lang.String key)
          Gets the configured value of a certain key as an integer
static void load()
          Loads the configuration
static void save()
          Saves the configuration
static void set(java.lang.String key, java.lang.Object value)
          Configures a certain key
static void setMainInstance(Main m)
           
static void showOptions()
          Shows a dialog to edit the configuration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Config

public Config()
Method Detail

load

public static void load()
Loads the configuration


get

public static java.lang.String get(java.lang.String key)
Gets the configured value of a certain key

Parameters:
key - The key to look for
Returns:
The key's value

getInt

public static int getInt(java.lang.String key)
Gets the configured value of a certain key as an integer

Parameters:
key - The key to look for
Returns:
The key's value

set

public static void set(java.lang.String key,
                       java.lang.Object value)
Configures a certain key

Parameters:
key - The key to set
value - The key's new value

save

public static void save()
Saves the configuration


showOptions

public static void showOptions()
Shows a dialog to edit the configuration


setMainInstance

public static void setMainInstance(Main m)