cz.zcu.fav.kiv.editor.controller.resource
Class ResourceController

java.lang.Object
  extended by cz.zcu.fav.kiv.editor.controller.resource.ResourceController

public class ResourceController
extends java.lang.Object

The ResourceController class contains methods for loading text resources.

Version:
1.0, 05/2007
Author:
Marta Vaclavikova

Method Summary
static void changeInstance()
          Changes the loaded resource bundle to the new bundle for actully chosen editor language.
static java.lang.String getMessage(java.lang.String key)
          Gets the text resource of the actual language for the input key.
static java.lang.String getMessage(java.lang.String key, java.lang.Object... args)
          Gets the text resource of the actual language for the input key and arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

changeInstance

public static void changeInstance()
Changes the loaded resource bundle to the new bundle for actully chosen editor language.


getMessage

public static java.lang.String getMessage(java.lang.String key)
Gets the text resource of the actual language for the input key.

Parameters:
key - the key of the text resource.
Returns:
the text resource for the input key.

getMessage

public static java.lang.String getMessage(java.lang.String key,
                                          java.lang.Object... args)
Gets the text resource of the actual language for the input key and arguments.

Parameters:
key - the key of the text resource.
args - the arguments of the text resource.
Returns:
the text resource for the input key and arguments.