Stellent
HowToComponents
JavaDoc

intradoc.shared
Class LocaleLoader

java.lang.Object
  |
  +--intradoc.shared.LocaleLoader

public class LocaleLoader
extends java.lang.Object


Constructor Summary
LocaleLoader()
           
 
Method Summary
static void configureUserLocale(DataBinder binder, ExecutionContext cxt)
          This method configures an ExecutionContext for a user's localization settings.
static void determineSystemGuiConfig()
           
static void doStaticLocalization(ExecutionContext cxt)
          This method localizes text in intradoc.gui and intradoc.shared.gui packages.
static DataResultSet getResultSet(DataBinder binder, java.lang.String name)
          Utility method
static void loadLocaleConfig(java.util.Hashtable strings, java.util.Hashtable dateFormats, DataBinder binder)
          Common locale initialization code for the server and client applets.
static void loadTimeZones(DataResultSet timezones)
           
static void localizeResultSet(java.lang.String key, DataResultSet rset, ExecutionContext cxt)
          This method localizes tables that are serialized from the server.
static void readStringsFromBinder(java.util.Hashtable strings, DataBinder binder)
          This method reads a ResultSet of localization strings from a binder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocaleLoader

public LocaleLoader()
Method Detail

loadLocaleConfig

public static void loadLocaleConfig(java.util.Hashtable strings,
                                    java.util.Hashtable dateFormats,
                                    DataBinder binder)
                             throws DataException,
                                    ServiceException
Common locale initialization code for the server and client applets.

DataException
ServiceException

loadTimeZones

public static void loadTimeZones(DataResultSet timezones)

determineSystemGuiConfig

public static void determineSystemGuiConfig()

readStringsFromBinder

public static void readStringsFromBinder(java.util.Hashtable strings,
                                         DataBinder binder)
                                  throws DataException
This method reads a ResultSet of localization strings from a binder. This binder should be prepared with the data from the LOAD_USER_LOCALIZATION service.

DataException

configureUserLocale

public static void configureUserLocale(DataBinder binder,
                                       ExecutionContext cxt)
                                throws ServiceException
This method configures an ExecutionContext for a user's localization settings. It should be called with a DataBinder that has data from the LOAD_USER_LOCALIZATION service.

ServiceException

doStaticLocalization

public static void doStaticLocalization(ExecutionContext cxt)
This method localizes text in intradoc.gui and intradoc.shared.gui packages. It should be used by applet and standalone code after the localization is completed loaded.


localizeResultSet

public static void localizeResultSet(java.lang.String key,
                                     DataResultSet rset,
                                     ExecutionContext cxt)
This method localizes tables that are serialized from the server.


getResultSet

public static DataResultSet getResultSet(DataBinder binder,
                                         java.lang.String name)
                                  throws ServiceException
Utility method

ServiceException


(c) 1996-2005  All rights reserved.  Stellent, Inc.