bibliothek.gui.dock.util
Class TextManager

java.lang.Object
  extended by bibliothek.gui.dock.util.UIProperties<String,TextValue,TextBridge>
      extended by bibliothek.gui.dock.util.TextManager

public class TextManager
extends UIProperties<String,TextValue,TextBridge>

A map of String-String pairs used by various objects. Each String can be stored with different priorities and can be replaced at any time. Clients should not access the entries directly, they should create a TextValue and register it in order to receive updates when necessary.

Author:
Benjamin Sigg

Field Summary
static Path TEXT_EXTENSION
          Name of an ExtensionName to load additional ResourceBundles
static String TEXT_EXTENSION_LOCALE
          Key for a Locale that is associated with TEXT_EXTENSION
 
Constructor Summary
TextManager(DockController controller)
          Creates a new TextManager.
 
Method Summary
 List<ResourceBundle> loadExtensionBundles(Locale locale)
          This method loads additional ResourceBundles from Extensions using the name TEXT_EXTENSION.
 
Methods inherited from class bibliothek.gui.dock.util.UIProperties
add, clear, get, get, getBridge, getBridgeFor, getController, getScheme, isObserved, isObserved, isStored, lockUpdate, publish, put, remove, setScheme, unlockUpdate, unpublish, unpublish
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEXT_EXTENSION

public static final Path TEXT_EXTENSION
Name of an ExtensionName to load additional ResourceBundles


TEXT_EXTENSION_LOCALE

public static final String TEXT_EXTENSION_LOCALE
Key for a Locale that is associated with TEXT_EXTENSION

See Also:
Constant Field Values
Constructor Detail

TextManager

public TextManager(DockController controller)
Creates a new TextManager.

Parameters:
controller - the owner of this manager
Method Detail

loadExtensionBundles

public List<ResourceBundle> loadExtensionBundles(Locale locale)
This method loads additional ResourceBundles from Extensions using the name TEXT_EXTENSION.

Parameters:
locale - the requested language
Returns:
the loaded bundles, may be empty