|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.option.AbstractGuiFactory
y.option.ResourceBundleGuiFactory
public class ResourceBundleGuiFactory
Simple default implementation of GuiFactory which takes the String values from a list of ResourceBundles.
| Constructor Summary | |
|---|---|
ResourceBundleGuiFactory()
|
|
| Method Summary | |
|---|---|
void |
addBundle(ResourceBundle rb)
Adds a ResourceBundle to the list of bundles that are checked
for localized strings. |
void |
addBundle(String baseName)
Adds a ResourceBundle to the list of bundles that are checked
for localized strings. |
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 |
|---|
public ResourceBundleGuiFactory()
| Method Detail |
|---|
public void addBundle(String baseName)
throws MissingResourceException
ResourceBundle to the list of bundles that are checked
for localized strings.
addBundle(ResourceBundle).
MissingResourceException - if no resource bundle for the specified
base name can be foundbaseName - the base name of the resource bundle to add,
a fully qualified class namepublic void addBundle(ResourceBundle rb)
ResourceBundle to the list of bundles that are checked
for localized strings.
rb - the resource bundle to addpublic String getString(String key)
key - the key
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||