public class Messages extends Object
Constructor and Description |
---|
Messages(String bundle)
Creates a new Messages object which accesses the given resource bundle.
|
public Messages(String bundle)
bundle
- Base name of the bundle.public String getString(String key)
key
- Key for a string in the resource bundle.public String getString(String key, Object... data)
key
- Key for a string in the resource bundle.data
- Data to insert in the message.MessageFormat
Copyright © 2001-2013 the JGloss developers. All Rights Reserved.