public interface StringResourceAccessor
This interface is used by the JGoodies Forms and the JGoodies Standard Dialog Library (JSDL) to access Strings from ResourceBundles and ResourceMaps (a class from JGoodies Application). The latter implements this interface directly. Since ResourceBundle does not implement this interface, a wrapper can be used that implements this interface and just delegates to the ResourceBundle to look up the String for a given resource key.
Note: This class is not part of the public JGoodies Common API. It's intended for implementation purposes only. The class's API may change at any time.
Modifier and Type | Method and Description |
---|---|
String |
getString(String key,
Object... args)
Looks up and returns a String associated with the given resource key.
|
String getString(String key, Object... args)
String.format
with the
given arguments.key
- the key in the resource bundleargs
- optional format arguments forwarded to String#format
String.format(String, Object...)
Copyright © 2014 JGoodies Software GmbH. All rights reserved.