com.webcodepro.applecommander.util
Class TextBundle

java.lang.Object
  extended by com.webcodepro.applecommander.util.TextBundle
Direct Known Subclasses:
CompilerBundle, StorageBundle, UiBundle

public class TextBundle
extends java.lang.Object

Manage the user-interface specific ResourceBundle. Initally, 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.

Author:
Rob Greene

Constructor Summary
protected TextBundle()
          Do not allow other classes to instantiate this class.
 
Method Summary
 java.lang.String format(java.lang.String name, int value1)
          Format the given resource name with one integer.
 java.lang.String format(java.lang.String name, int value1, int value2)
          Format the given resource name with two integers.
 java.lang.String format(java.lang.String name, int value1, int value2, int value3)
          Format the given resource name with three integers.
 java.lang.String format(java.lang.String name, java.lang.Object[] values)
          Format the given resource name with multiple values.
 java.lang.String format(java.lang.String name, java.lang.String value)
          Format the given resource name with a single String value.
 java.lang.String format(java.lang.String name, java.lang.String value1, int value2)
          Format the given resource name with two integers.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextBundle

protected TextBundle()
Do not allow other classes to instantiate this class.

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.String value)
Format the given resource name with a single String value.


format

public java.lang.String format(java.lang.String name,
                               java.lang.Object[] values)
Format the given resource name with multiple values.


format

public java.lang.String format(java.lang.String name,
                               int value1)
Format the given resource name with one integer.


format

public java.lang.String format(java.lang.String name,
                               int value1,
                               int value2)
Format the given resource name with two integers.


format

public java.lang.String format(java.lang.String name,
                               int value1,
                               int value2,
                               int value3)
Format the given resource name with three integers.


format

public java.lang.String format(java.lang.String name,
                               java.lang.String value1,
                               int value2)
Format the given resource name with two integers.