com.tensegrity.gui.component
Class AttributeEditorTranslatorPool

java.lang.Object
  extended bycom.tensegrity.gui.component.AttributeEditorTranslatorPool

public class AttributeEditorTranslatorPool
extends java.lang.Object

AttributeEditorTranslatorPool

Author:
BurkhardWick

Constructor Summary
AttributeEditorTranslatorPool()
          Constructor
 
Method Summary
 AttributeEditorTranslator getExtendedTranslator(AttributeEditorTranslator baseTranslator, java.lang.String[] nameTranslations, java.lang.String[] valueTranslations)
          Returns a translator using the given resources in addition to the resources of the given base translator.
 AttributeEditorTranslator getTranslator(java.lang.String[] nameTranslations, java.lang.String[] valueTranslations)
          Returns a translator using the given resources.
 AttributeEditorTranslator getTranslator(java.lang.String nameTranslations, java.lang.String valueTranslations)
          Returns a translator using the given resources.
 void setLocale(java.util.Locale locale)
          Sets the new locale that all registered translators should use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeEditorTranslatorPool

public AttributeEditorTranslatorPool()
Constructor

Method Detail

setLocale

public final void setLocale(java.util.Locale locale)
Sets the new locale that all registered translators should use.

Parameters:
locale - The new locale to use

getExtendedTranslator

public final AttributeEditorTranslator getExtendedTranslator(AttributeEditorTranslator baseTranslator,
                                                             java.lang.String[] nameTranslations,
                                                             java.lang.String[] valueTranslations)
Returns a translator using the given resources in addition to the resources of the given base translator. If the pool contains a matching translator it will be returned, otherwise a new instance is created.

Parameters:
baseTranslator - The translator that is used as base
nameTranslations - The base name for the resource bundle to translate names
valueTranslations - The base name for the resource bundle to translate values
Returns:
A translator using the given resources

getTranslator

public final AttributeEditorTranslator getTranslator(java.lang.String nameTranslations,
                                                     java.lang.String valueTranslations)
Returns a translator using the given resources. If the pool contains a matching translator it will be returned, otherwise a new instance is created.

Parameters:
nameTranslations - The base name for the resource bundle to translate names
valueTranslations - The base name for the resource bundle to translate values
Returns:
A translator using the given resources

getTranslator

public final AttributeEditorTranslator getTranslator(java.lang.String[] nameTranslations,
                                                     java.lang.String[] valueTranslations)
Returns a translator using the given resources. If the pool contains a matching translator it will be returned, otherwise a new instance is created.

Parameters:
nameTranslations - The base names for the resource bundle to translate names
valueTranslations - The base names for the resource bundle to translate values
Returns:
A translator using the given resources


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.