Mp3dings 
20100427

net.sourceforge.mp3dings
Class Globals

java.lang.Object
  extended by net.sourceforge.mp3dings.Globals

public final class Globals
extends Object

Provides static constants for the application.


Field Summary
static String BUILDID
           
static String CANCEL
           
static int COLOR_FILTERED
           
static int COLOR_MAIN_BG
           
static int COLOR_PANEL_BG
           
static int COLOR_TAB_BG
           
static int COLOR_TOOLB_BG
           
static int COLOR_UNFILTERED
           
static Insets INSETS_0
           
static Insets INSETS_0505
           
static Insets INSETS_5
           
static ResourceBundle LR
           
static Font MONOSPACE_0_12
           
static String OK
           
static Font SANS_BOLD_12
           
static Font SERIF_0_10
           
static Font SERIF_0_12
           
static String VERSION
           
 
Method Summary
static Integer asInteger(int i)
           
static Color getColor(int id)
           
static String getDir(String which)
           
static int[] getJavaVersion()
           
static int getKey(String s)
           
static Integer getKeyObject(String s)
           
static String getMessage(String key, int arg)
           
static String getMessage(String key, Object arg)
           
static String getMessage(String key, Object[] args)
           
static Object getNullFor(Class c)
           
static Object getObject(String key)
           
static Preferences getPrefNode()
           
static String getString(String s)
           
static String[] getStringArray(String s)
           
static void logStackTrace(Logger logger, Level level, Throwable ex)
           
static void logStackTrace(Logger logger, Throwable ex)
           
static boolean resourceExists(String s)
           
static void setColors(int[] rgb)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OK

public static final String OK

CANCEL

public static final String CANCEL

VERSION

public static final String VERSION
See Also:
Constant Field Values

LR

public static ResourceBundle LR

BUILDID

public static String BUILDID

COLOR_MAIN_BG

public static final int COLOR_MAIN_BG
See Also:
Constant Field Values

COLOR_TAB_BG

public static final int COLOR_TAB_BG
See Also:
Constant Field Values

COLOR_TOOLB_BG

public static final int COLOR_TOOLB_BG
See Also:
Constant Field Values

COLOR_PANEL_BG

public static final int COLOR_PANEL_BG
See Also:
Constant Field Values

COLOR_FILTERED

public static final int COLOR_FILTERED
See Also:
Constant Field Values

COLOR_UNFILTERED

public static final int COLOR_UNFILTERED
See Also:
Constant Field Values

SERIF_0_10

public static final Font SERIF_0_10

SERIF_0_12

public static final Font SERIF_0_12

MONOSPACE_0_12

public static final Font MONOSPACE_0_12

SANS_BOLD_12

public static final Font SANS_BOLD_12

INSETS_0505

public static final Insets INSETS_0505

INSETS_0

public static final Insets INSETS_0

INSETS_5

public static final Insets INSETS_5
Method Detail

getDir

public static String getDir(String which)

getColor

public static Color getColor(int id)

logStackTrace

public static void logStackTrace(Logger logger,
                                 Level level,
                                 Throwable ex)

logStackTrace

public static void logStackTrace(Logger logger,
                                 Throwable ex)

setColors

public static void setColors(int[] rgb)

getMessage

public static String getMessage(String key,
                                Object arg)

getMessage

public static String getMessage(String key,
                                int arg)

getMessage

public static String getMessage(String key,
                                Object[] args)

getPrefNode

public static Preferences getPrefNode()

asInteger

public static Integer asInteger(int i)

resourceExists

public static boolean resourceExists(String s)

getString

public static String getString(String s)

getJavaVersion

public static int[] getJavaVersion()

getStringArray

public static String[] getStringArray(String s)

getKey

public static int getKey(String s)

getKeyObject

public static Integer getKeyObject(String s)

getObject

public static Object getObject(String key)

getNullFor

public static Object getNullFor(Class c)

Mp3dings 
20100427