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 java.lang.Object

A set of resources available through the whole framework

Author:
Benjamin Sigg

Constructor Summary
Resources()
           
 
Method Summary
static java.util.ResourceBundle getBundle()
          Gets localized texts.
static javax.swing.Icon getIcon(java.lang.String key)
          Searches an icon that was stored with the given key.
static java.lang.String getString(java.lang.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 java.util.ResourceBundle getBundle()
Gets localized texts.

Returns:
the text

getString

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

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

getIcon

public static javax.swing.Icon getIcon(java.lang.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