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