y.option
Class ResourceBundleGuiFactory
java.lang.Object
|
+--y.option.AbstractGuiFactory
|
+--y.option.ResourceBundleGuiFactory
- All Implemented Interfaces:
- GuiFactory
- public class ResourceBundleGuiFactory
- extends AbstractGuiFactory
Simple defaut implementation of GuiFactory which takes the String values
from a list of ResourceBundles
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceBundleGuiFactory
public ResourceBundleGuiFactory()
addBundle
public void addBundle(String baseName)
throws MissingResourceException
MissingResourceException
addBundle
public void addBundle(ResourceBundle rb)
getString
public String getString(String key)
- Localize a string
- Parameters:
key
- the key
- Returns:
- the localized value