--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/javacommons/utils/javasrc/com/nokia/mj/impl/rt/ui/RuntimeUiTexts.java Tue Apr 27 16:30:29 2010 +0300
@@ -0,0 +1,70 @@
+/*
+* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+*
+*/
+
+package com.nokia.mj.impl.rt.ui;
+
+import com.nokia.mj.impl.utils.ResourceLoader;
+
+/**
+ * Class defining RuntimeUi texts.
+ *
+ * @author Nokia Corporation
+ * @version 1.0
+ */
+public class RuntimeUiTexts
+{
+ /*** ----------------------------- PUBLIC ------------------------------ */
+
+ public static final String OK = "secur_prompt_ok";
+ public static final String DETAILS_QUERY = "secur_error_details_message";
+
+ /**
+ * Method for retrieving a text string with given id and no parameters.
+ *
+ * @param aTextId id for the text string
+ * @return The corresponding text
+ */
+ public static String get(String aTextId)
+ {
+ return get(aTextId, (Object[])null);
+ }
+
+ /**
+ * Method for retrieving a text string with given id and parameters.
+ *
+ * @param aTextId id for the text string
+ * @param aTextParameters parameters to be filled into the text
+ * @return The corresponding text including the provided parameters
+ */
+ public static String get(String aTextId, Object[] aTextParameters)
+ {
+ if (iRes == null)
+ {
+ iRes = ResourceLoader.getInstance("javausermessages", "qtn_java_");
+ }
+ return iRes.format(aTextId, aTextParameters);
+ }
+
+ /*** ---------------------------- PROTECTED --------------------------- */
+ /*** ----------------------------- PACKAGE ---------------------------- */
+ /*** ----------------------------- PRIVATE ---------------------------- */
+
+ /** ResourceLoader for fetching localised texts. */
+ private static ResourceLoader iRes = null;
+
+ /*** ----------------------------- NATIVE ----------------------------- */
+}