com.stimulsoft.base.settings
Class StiSettings

java.lang.Object
  extended by com.stimulsoft.base.settings.StiSettings

public class StiSettings
extends Object

Operate with settings. Copyright Stimulsoft


Field Summary
static String MAIN_NODE
          Main Stimulsoft node path.
 
Method Summary
static void flush()
          Flush settings
static Object Get(String string, String string2, Object office2007blue)
           
static boolean GetBool(String string, String string2)
           
static boolean GetBool(String string, String string2, boolean b)
           
static Boolean getBoolValue(String category, String key, Boolean defValue)
           
static double GetDouble(String string, String string2, double d)
           
static Double getDoubleValue(String category, String key, Double defValue)
           
static int GetInt(String string, String string2)
           
static Integer getIntValue(String category, String key, Integer defValue)
           
static String GetStr(String string, String string2)
           
static String getStringValue(String category, String key, String defValue)
           
static void Load()
           
static void Save()
           
static void Set(String string, String string2, boolean value)
           
static void Set(String string, String string2, double value)
           
static void Set(String string, String string2, int value)
           
static void Set(String string, String string2, Object value)
           
static void Set(String string, String string2, String value)
           
static void setBoolValue(String category, String key, Boolean value)
          Set settings Boolean value
static void setDoubleValue(String category, String key, Double value)
          Set settings Double value
static void setIntValue(String category, String key, Integer value)
          Set settings Integer value
static void setStringValue(String category, String key, String value)
          Set settings String value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAIN_NODE

public static final String MAIN_NODE
Main Stimulsoft node path.

See Also:
Constant Field Values
Method Detail

getDoubleValue

public static Double getDoubleValue(String category,
                                    String key,
                                    Double defValue)
Parameters:
category -
key -
defValue -
Returns:
Settings Double value

getStringValue

public static String getStringValue(String category,
                                    String key,
                                    String defValue)
Parameters:
category -
key -
defValue -
Returns:
Settings String value

getIntValue

public static Integer getIntValue(String category,
                                  String key,
                                  Integer defValue)
Parameters:
category -
key -
defValue -
Returns:
Settings Integer value

getBoolValue

public static Boolean getBoolValue(String category,
                                   String key,
                                   Boolean defValue)
Parameters:
category -
key -
defValue -
Returns:
Settings Boolean value

setStringValue

public static void setStringValue(String category,
                                  String key,
                                  String value)
Set settings String value

Parameters:
category -
key -
value -

setIntValue

public static void setIntValue(String category,
                               String key,
                               Integer value)
Set settings Integer value

Parameters:
category -
key -
value -

setBoolValue

public static void setBoolValue(String category,
                                String key,
                                Boolean value)
Set settings Boolean value

Parameters:
category -
key -
value -

setDoubleValue

public static void setDoubleValue(String category,
                                  String key,
                                  Double value)
Set settings Double value

Parameters:
category -
key -
value -

flush

public static void flush()
Flush settings


GetBool

public static boolean GetBool(String string,
                              String string2)

Load

public static void Load()

Set

public static void Set(String string,
                       String string2,
                       boolean value)

Save

public static void Save()

GetInt

public static int GetInt(String string,
                         String string2)

Set

public static void Set(String string,
                       String string2,
                       int value)

Set

public static void Set(String string,
                       String string2,
                       String value)

GetStr

public static String GetStr(String string,
                            String string2)

GetDouble

public static double GetDouble(String string,
                               String string2,
                               double d)

Set

public static void Set(String string,
                       String string2,
                       double value)

GetBool

public static boolean GetBool(String string,
                              String string2,
                              boolean b)

Set

public static void Set(String string,
                       String string2,
                       Object value)

Get

public static Object Get(String string,
                         String string2,
                         Object office2007blue)


Copyright © 2017 Stimulsoft. All Rights Reserved.