net.sf.vex
Class Babelizer

java.lang.Object
  |
  +--net.sf.vex.Babelizer

public class Babelizer
extends java.lang.Object

Configures the language-specific settings of various swing components based on settings in a resource bundle.


Constructor Summary
Babelizer(java.lang.String bundleName)
          Class constructor.
 
Method Summary
 javax.swing.Action configureAction(javax.swing.Action action, java.lang.String id)
          Configure the given action from the resource bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Babelizer

public Babelizer(java.lang.String bundleName)
Class constructor.

Parameters:
bundleName - Name of the resource bundle containing the resources.
Method Detail

configureAction

public javax.swing.Action configureAction(javax.swing.Action action,
                                          java.lang.String id)
Configure the given action from the resource bundle. For a given id the following keys are recognized.
 action.id.Name
 action.id.ShortDescription
 action.id.LongDescription
 action.id.MnemonicKey
 action.id.AcceleratorKey
 action.id.Icon
 

Parameters:
action - Action to configure.
id - ID to use to find resources.
Returns: