Package com.openstego.desktop.util
Class LabelUtil
- java.lang.Object
-
- com.openstego.desktop.util.LabelUtil
-
public class LabelUtil extends Object
Localized label handler for OpenStego
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddNamespace(String namespace, String bundle)Method to add new namespace using resource bundlestatic LabelUtilgetInstance(String namespace)Method to get instance of LabelUtil based on the namespaceStringgetString(String key)Method to get label value for the given label keyStringgetString(String key, Object... parameters)Method to get label value for the given label key (using optional parameters)
-
-
-
Constructor Detail
-
LabelUtil
protected LabelUtil(String namespace)
Constructor is protected- Parameters:
namespace- Namespace for the label
-
-
Method Detail
-
addNamespace
public static void addNamespace(String namespace, String bundle)
Method to add new namespace using resource bundle- Parameters:
namespace- Namespace for the labelsbundle- Resource bundle name
-
getInstance
public static LabelUtil getInstance(String namespace)
Method to get instance of LabelUtil based on the namespace- Parameters:
namespace- Namespace for the labels- Returns:
- Instance of LabelUtil
-
getString
public String getString(String key)
Method to get label value for the given label key- Parameters:
key- Key for the label- Returns:
- Display value for the label
-
-