Class TextBundle
- java.lang.Object
-
- com.webcodepro.applecommander.util.TextBundle
-
- Direct Known Subclasses:
CompilerBundle
,StorageBundle
,UiBundle
public class TextBundle extends java.lang.Object
Manage the user-interface specific ResourceBundle. Initially, this is to actually clean up the text. Ultimately, it should allow AppleCommander to be translated into other languages.Note that TextBundle serves as a generic resource for the util package. Other groupings are used and will have their own subclasses for TextBundle.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TextBundle()
Do not allow other classes to instantiate this class.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
format(java.lang.String name, java.lang.Object... values)
Format the given resource name with multiple values.java.lang.String
get(java.lang.String name)
Retrieve a value for the given resource name.static TextBundle
getInstance()
Get the singleton instance of the UiBundle.protected void
initialize()
Initialize the UiBundle.
-
-
-
Method Detail
-
getInstance
public static TextBundle getInstance()
Get the singleton instance of the UiBundle.
-
initialize
protected void initialize()
Initialize the UiBundle.
-
get
public java.lang.String get(java.lang.String name)
Retrieve a value for the given resource name.
-
format
public java.lang.String format(java.lang.String name, java.lang.Object... values)
Format the given resource name with multiple values.
-
-