bibliothek.gui.dock.support.util
Class Resources

java.lang.Object
  extended by bibliothek.gui.dock.support.util.Resources

@Todo(compatibility=BREAK_MAJOR,
      priority=MAJOR,
      target=VERSION_1_1_0,
      description="Find a mechanism that allows clients to easily change the text of any element, perhaps with an UIManager")
public class Resources
extends Object

A set of resources available through the whole framework

Author:
Benjamin Sigg

Constructor Summary
Resources()
           
 
Method Summary
static ResourceBundle getBundle()
          Gets localized texts.
static Icon getIcon(String key)
          Searches an icon that was stored with the given key.
static String getString(String key)
          Gets a localized text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Resources

public Resources()
Method Detail

getBundle

public static ResourceBundle getBundle()
Gets localized texts.

Returns:
the text

getString

public static String getString(String key)
Gets a localized text.

Parameters:
key - the key for the text
Returns:
the text

getIcon

public static Icon getIcon(String key)
Searches an icon that was stored with the given key. The keys can be found in the file bibliothek/gui/dock/icons/icons.ini.

Parameters:
key - the name of an icon
Returns:
the icon or null