JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d.beans
Class JCChart3dBeanBundle

java.lang.Object
  |
  +--com.klg.jclass.chart3d.beans.JCChart3dBeanBundle

public class JCChart3dBeanBundle
extends Object

JCChartBeanBundle contains locale-specific objects and helpers to get this information. When a program needs a locale-specific String it can load it from the resource bundle that is appropriate for the current user's locale. Those are located in the com.klg.jclass.chart\resources directory. In this way, program code can be written that is largely independent of the user's locale, isolating most of the locale-specific information in resource bundles.


Field Summary
static String ACTION
           
static String ALLOW_USER_CHANGES
           
static String ALT
           
static String APPLY
           
static String CLICK_TO_EDIT
           
static String CTRL
           
static String EDIT_DATA_TEXTAREA
           
static String EDIT_X_VALUES
           
static String EDIT_Y_VALUES
           
static String EDIT_Z_VALUES
           
static String FILE_LOCATION
           
static String LOAD_DATA_FROM_FILE
           
static String META
           
static String MODIFIER
           
static String NONE
           
static String SHIFT
           
static String TRIGGER_PROPERTIES
           
 
Constructor Summary
JCChart3dBeanBundle()
           
 
Method Summary
static void setBundleLocale(Locale l)
          Static function used to programatically change the default locale.
static String string(String key)
          Static function that retrives a String based on its key.
static String string(String key, MessageFormat formatter, Object[] args)
          Static function used to format a String based on its key.
static String string(String key, Object[] args)
          Static function used to format a String based on its key.
static String string(String key, Object[] args, double[] limits, String[] formats, int choiceVar)
          Static function used to format a String based on its key.
static String string(String language, String country, String key)
          Static function that localizes a String based on its key, language, and country.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLICK_TO_EDIT

public static final String CLICK_TO_EDIT
See Also:
Constant Field Values

LOAD_DATA_FROM_FILE

public static final String LOAD_DATA_FROM_FILE
See Also:
Constant Field Values

EDIT_DATA_TEXTAREA

public static final String EDIT_DATA_TEXTAREA
See Also:
Constant Field Values

EDIT_X_VALUES

public static final String EDIT_X_VALUES
See Also:
Constant Field Values

EDIT_Y_VALUES

public static final String EDIT_Y_VALUES
See Also:
Constant Field Values

EDIT_Z_VALUES

public static final String EDIT_Z_VALUES
See Also:
Constant Field Values

FILE_LOCATION

public static final String FILE_LOCATION
See Also:
Constant Field Values

TRIGGER_PROPERTIES

public static final String TRIGGER_PROPERTIES
See Also:
Constant Field Values

SHIFT

public static final String SHIFT
See Also:
Constant Field Values

CTRL

public static final String CTRL
See Also:
Constant Field Values

ALT

public static final String ALT
See Also:
Constant Field Values

META

public static final String META
See Also:
Constant Field Values

MODIFIER

public static final String MODIFIER
See Also:
Constant Field Values

ACTION

public static final String ACTION
See Also:
Constant Field Values

NONE

public static final String NONE
See Also:
Constant Field Values

ALLOW_USER_CHANGES

public static final String ALLOW_USER_CHANGES
See Also:
Constant Field Values

APPLY

public static final String APPLY
See Also:
Constant Field Values
Constructor Detail

JCChart3dBeanBundle

public JCChart3dBeanBundle()
Method Detail

string

public static String string(String language,
                            String country,
                            String key)
Static function that localizes a String based on its key, language, and country.

Parameters:
language - desired language
country - desired country
key - the key of the String that is to be retrived
Returns:

string

public static String string(String key)
Static function that retrives a String based on its key. In JDK 1.1 the default locale it is used.

Parameters:
key - the key of the String that is to be retrived
Returns:

string

public static String string(String key,
                            Object[] args)
Static function used to format a String based on its key. It produces concatenated messages in a language-neutral way.

Parameters:
key - the key of the String that is to be retrived
args - set of objects used in formatting
Returns:

string

public static String string(String key,
                            MessageFormat formatter,
                            Object[] args)
Static function used to format a String based on its key. It produces concatenated messages in a language-neutral way.

Parameters:
key - the key of the String that is to be retrived
formatter - a formatter provided by the user
args - set of objects used in formatting
Returns:

setBundleLocale

public static void setBundleLocale(Locale l)
Static function used to programatically change the default locale.

Parameters:
l - locale

string

public static String string(String key,
                            Object[] args,
                            double[] limits,
                            String[] formats,
                            int choiceVar)
Static function used to format a String based on its key. It produces concatenated messages in a language-neutral way. Allows a format to be attached to a range of numbers. It is generally used for handling plurals.
The choice is specified with an ascending list of doubles, where each item specifies a half-open interval up to the next item: X matches j if and only if limit[j] <= X < limit[j+1]

Parameters:
key - the key of the String that is to be retrived
args - set of objects used in formatting
limits - the list of doubles that specifies a half-open interval
formats - it is an array of choices: one choice for each interval defined by the limits array
choiceVar - It is used to identify which of the variables from the String contains the formatting information used in the choice formatting feature.
Note: There is a limitation of only one choice variable per String.
Returns:

Copyright © 2004 Quest Software Inc..
All rights reserved.