站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

NbLocalizer (Editor Module) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor/3 1.32.0

org.netbeans.modules.editor
Class NbLocalizer

java.lang.Object
  extended by org.netbeans.modules.editor.NbLocalizer
All Implemented Interfaces:
LocaleSupport.Localizer

public class NbLocalizer
extends Object
implements LocaleSupport.Localizer

Locale support localizer that uses the bundle to get the localized string for the given key.


Constructor Summary
NbLocalizer(Class bundleClass)
          Construct new localizer that uses a bundle for the given class.
 
Method Summary
 String getString(String key)
          Get the localized string using the given key.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NbLocalizer

public NbLocalizer(Class bundleClass)
Construct new localizer that uses a bundle for the given class.

Parameters:
bundleClass - class for which the bundle is retrieved by NbBundle.getBundle()
Method Detail

getString

public String getString(String key)
Get the localized string using the given key.

Specified by:
getString in interface LocaleSupport.Localizer

toString

public String toString()
Overrides:
toString in class Object

org.netbeans.modules.editor/3 1.32.0

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.