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


Constructor Summary
ResourceBundleGuiFactory()
           
 
Method Summary
 void addBundle(ResourceBundle rb)
           
 void addBundle(String baseName)
           
 String getString(String key)
          Localize a string
 
Methods inherited from class y.option.AbstractGuiFactory
createButton, createHelpAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceBundleGuiFactory

public ResourceBundleGuiFactory()
Method Detail

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

© Copyright 2000-2003,
yWorks GmbH.
All rights reserved.

2003