com.tensegrity.skeleton
Class Skeleton

java.lang.Object
  extended bycom.tensegrity.skeleton.Skeleton

public class Skeleton
extends java.lang.Object

A Skeleton class basically used as reference class for resource loading/handling.

Version:
$Id: Skeleton.java,v 1.7 2006/05/30 14:57:48 BurkhardWick Exp $
Author:
GillesIachelini

Method Summary
static java.lang.Object[] internalGetLocaleData()
          Internal getter method for the data given to the setLocale method
static void setLocale(java.lang.String prefFileName, java.lang.String defaultPrefFileName, java.lang.Class loadClass)
          This method reads a preference file and reads the language related entry (if there is one).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setLocale

public static void setLocale(java.lang.String prefFileName,
                             java.lang.String defaultPrefFileName,
                             java.lang.Class loadClass)
                      throws ReadException
This method reads a preference file and reads the language related entry (if there is one). After reading this entry the method sets the proper locale. It is necessary that users call this method as early as possible (at least before the first AWT related component is created).

Parameters:
prefFileName - the name of the preferences file of your application.
defaultPrefFileName - the name of the default preferences file.
loadClass - a class to relatively load the preferences file from.
Throws:
ReadException - thrown if the PreferenceFactory.createPreferences(String, Class, String) throws such an exception.

internalGetLocaleData

public static java.lang.Object[] internalGetLocaleData()
Internal getter method for the data given to the setLocale method

Returns:
the data passed to the setLocale method


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.